Charge Actions
Offline-Refund Charge
Performs an offline-refund of an authorized charge. This refund will be cleared without issuer authorization.
For American Express and Diners, this endpoint supports refunding charges for up to 6 months after their creation. When trying to refund a charge older than that, it will return an HTTP 409 error with type /silverflow/problems/charge/invalid-operation.
Requires charges:OfflineRefund permission.
post/charges/{chargeKey}/offlineRefund
Request
- Base URLhttps://eu-west-1.api.silverflow.com/v1
- Auth
- HTTP basic
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
chargeKeystring required
Uniquely identifies a charge.
Example:chg-1e1dAHhgstYTUhlphPzZ
Uniquely identifies a charge.
Headers
Idempotency-Keystring
This key is used to deduplicate requests that are retried. For more information see the section on Idempotency.
Example:28gKCluIEKp8jVboUyr2
Request body
Example request
{
"amount": 2599,
"reference": "MyRef",
"dynamicDescriptor": {
"merchantName": "Acme Inc.",
"merchantCity": "Amsterdam"
},
"initialRefundReferences": {
"initialTraceId": "MCGATSGHX1112"
}
}Response
The resulting offline refund action
Example response
{
"key": "act-1e1dA2fgs1YTUhlhyPOp",
"chargeKey": "chg-1e1dAHhgstYTUhlphPzZ",
"reference": "MyRef",
"amount": {
"value": 2599,
"currency": "EUR"
},
"initialRefundReferences": {
"initialTraceId": "MCGATSGHX1112"
},
"version": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.