Reverse Charge
Performs a reversal of a charge. This means that the authorization will be reversed. If no request body is provided, the full current charge amount will be reversed (taking into account reversals and increments).
Note that there are currently no restrictions on the amount you can reverse in relation to previous clearings; this is the responsibility of the client.
Diners and ATM Charge 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 the charges:Reverse permission.
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
Uniquely identifies a charge.
Uniquely identifies a charge.
Headers
This key is used to deduplicate requests that are retried. For more information see the section on Idempotency.
Request body
Example request
{
"replacementAmount": 2599,
"reference": "MyRef"
}Response
The resulting reversal action.
Example response
{
"key": "act-1e1dA2fgs1YTUhlhyPOp",
"chargeKey": "chg-1e1dAHhgstYTUhlphPzZ",
"reference": "MyRef",
"replacementAmount": {
"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.