Manually Clear Charge
Manually clear the charge after its creation. This endpoint also allows for (multiple) partial clearing, by providing an amount that is different from the original amount.
Please note that there are currently no restrictions on the amount or the number of times you can clear a charge; this is the responsibility of the client.
This endpoint supports clearing charges for up to 6 months after their creation. When trying to clear a charge older than that, it will return an HTTP 409 error with type /silverflow/problems/charge/too-old.
Requires charges:Clear 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
{
"amount": 900,
"reference": "MyRef",
"enhancedData": {
"taxAmount": 300,
"customerCode": "REF12345",
"destinationAddress": {
"countryCode": {
"alpha3": "NLD"
},
"postalCode": "1234BC"
},
"discountAmount": 50,
"orderDate": "2026-05-01",
"shippingAddress": {
"postalCode": "1234BC"
},
"timeOfPurchase": "1402"
}
}Response
The resulting clearing action.
Example response
{
"key": "act-1e1dA2fgs1YTUhlhyPOp",
"chargeKey": "chg-1e1dAHhgstYTUhlphPzZ",
"reference": "MyRef",
"amount": {
"value": 2599,
"currency": "EUR"
},
"enhancedData": {
"taxAmount": 300,
"customerCode": "REF12345",
"destinationAddress": {
"countryCode": {
"alpha3": "NLD",
"alpha2": "NL",
"numeric": "528"
},
"postalCode": "1234BC"
},
"discountAmount": 50,
"orderDate": "2026-05-01",
"shippingAddress": {
"postalCode": "1234BC"
},
"timeOfPurchase": "1402"
},
"version": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.