Reservations
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.
post/reservations
Request
- Base URLhttps://scx-sbx.api.jtl-software.com
- AuthOAuth 2Client credentialsToken URLhttps://vouchers.api.jtl-software.com/oauth/tokenScopesuse
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"amount": "10.53",
"currency": "EUR",
"code": "test",
"pin": "test"
}Response
OK
Example response
{
"id": "da39a3ee5eb28b7392ef5",
"voucher_id": "da39a3ee4528b7392ef5",
"client_id": "cff8784e5eb28b9b04860",
"amount": "10.53",
"valid_until": "2017-07-21T17:32:28+00:00",
"created_at": "2017-07-21T17:32:28+00:00",
"updated_at": "2017-07-21T17:32:28+00:00"
}Changes
No recorded changes to this operation across all 1 revision of this API.