Recharge a voucher
Use this call to recharge a voucher. This can be used for example for customer cards. Please note that this call is not used for cancelations of previously charges.
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.
Body
Voucher recharge request body
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"
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"
Order or invoice number of the transaction for this recharge
"ORDER-62642"
The vouchers code you want to recharge (not necessary if id is set)
255"test"
The vouchers id you want to recharge (not necessary if code is set)
255"4ZH83T0ACUUC14CW"
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 "recharge"
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"