Charge Actions
Refund Charge
Performs a refund of a charge.
It is only possible to refund charges with the following type.intent:
- purchase
- reservation
- funding
Diners support is <a class="experimental-tag-link" href="https://docs.silverflow.com/guides/api-lifecycle#tag/EXPERIMENTAL-Tag"><span class="tag experimental-tag">EXPERIMENTAL</span></a>.
Requires charges:Refund permission.
For more information, see the guide page.
post/charges/{chargeKey}/refund
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
{
"refundAmount": 2599,
"reference": "MyRef",
"dynamicDescriptor": {
"merchantName": "Acme Inc.",
"merchantCity": "Amsterdam"
}
}Response
The resulting refund action.
Example response
{
"key": "act-1e1dA2fgs1YTUhlhyPOp",
"chargeKey": "chg-1e1dAHhgstYTUhlphPzZ",
"refundChargeKey": "chg-1e1dAHhgstYTUhlphPzZ",
"reference": "MyRef",
"amount": {
"value": 2599,
"currency": "EUR"
},
"authorizationResponse": {
"responseCode": "00",
"responseCodeDescription": "Approved"
},
"version": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.