Set the reservation for a specific voucher
This call temporary reserves an amount on a specific voucher, that can later be charged. A reservation expires after 30 minutes or in case a new one is requested for this voucher.
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 reservation 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"
A code that must be entered during the ordering process to receive the savings indidcated on the assiciated voucher.
255"test"
An additional security feature on printed vouchers
255"test"
Response
OK
Primary identification key - will be used in voucher-reservation calls
"da39a3ee5eb28b7392ef5"
Voucher primary identification key (see voucher -> id)
"da39a3ee4528b7392ef5"
Defines if this voucher is a taxable multi purpose voucher
false
The tax rate for this voucher (only needed when taxable is true, can also be null)
null
Client primary identification key (see client -> id)
"cff8784e5eb28b9b04860"
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"
valid_until - datetime in RFC3339 format, see https://tools.ietf.org/html/rfc3339
"2017-07-21T17:32:28+00:00"
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"