Refund a specific voucher charge
This call is used to (partial) refund a specific charge that was previously done on a voucher (for example if a customer returns goods to the store).
Authorizations
This API uses OAuth 2 with Client Credentials Flow (see: https://www.oauth.com/oauth2-servers/access-tokens/client-credentials).
You can request only a subset of specific scopes for your client, however the available scopes for each client are defined through the client groups in the UI.
Within your token request, you can also send the optional parameter client_type (string with a max length of 32 chars). This value is only used for internal statistics.
Path Parameters
Body
Voucher refund request body
Amount in the currency of this voucher. Must be send as string in the following pattern:
- Greater or equal than 0.01
- Less than the Charge Amount
- Up to five digits before the decimal point
- The decimal point (.)
- Exactly two digits after the decimal point
4 - 9^\d+\.\d{2}$"10.53"
The three-character ISO-4217 currency code - https://en.wikipedia.org/wiki/ISO_4217#Active_codes (must match the currency of the voucher)
3"EUR"
Response
OK
Primary identification key - will be used in voucher-charge calls
"cff8784e5eb28b9b04860"
Voucher primary identification key (see voucher -> id)
"cff8784e34b28b9b04860"
Client primary identification key (see client -> id)
"cff8784e5eb28b81ca02a"
Type of this charge. Can either be "charge", "recharge" or "refund"
charge, recharge, refund "refund"
Amount in the currency of this voucher. Must be send as string in the following pattern:
- Up to five digits before the decimal point
- The decimal point (.)
- Exactly two digits after the decimal point
4 - 9^\d+\.\d{2}$"10.53"
Order or invoice number of the transaction
"ORDER-62642"
created_at - datetime in RFC3339 format, see https://tools.ietf.org/html/rfc3339
"2017-07-21T17:32:28+00:00"
updated_at - datetime in RFC3339 format, see https://tools.ietf.org/html/rfc3339
"2017-07-21T17:32:28+00:00"