MyBeezBox API (v2)
Download OpenAPI specification:Download
MyBeezBox API v2 supports gift lookup by code and reservation creation, updates, cancellation and completion.
Useful links
- Authentication – learn how to access this API.
- General documentation of MyBeezBox service
Get gift details and current reservation eligibility by code
Returns a voucher or partner giftcard's details and eligibility in one response. Only ordinary vouchers and partner giftcards are supported. Network giftcards, network vouchers and workshop vouchers are not supported. The caller supplies only the code; prefixes are lookup hints, not product types. The establishment is authorized using the token and X-Partner-Domain header. Recognized but unusable gifts return 200 with valid=true and redeemable=false. The error.code values are already_used, expired, not_redeemable, and invalid_code. This read-only result creates no hold; reservation must recheck eligibility.
Authorizations:
path Parameters
| code required | string |
header Parameters
| X-Partner-Domain required | string Examples:
Site domain of the partner whose data is requested. |
Responses
Response samples
- 200
- 401
- 404
{- "code": "q7m4k2p9vx",
- "product_type": "voucher",
- "valid": true,
- "redeemable": true,
- "status": "paid",
- "expiration": "2030-12-31T23:59:59Z",
- "value": "100.00",
- "remaining_value": "100.00",
- "splitable": false,
- "currency": "EUR",
- "consuming_partner": {
- "uuid": "0dbab4c0-e8dd-4f65-b874-7922d3cf16bb",
- "domain": "restaurant.example.com",
- "name": "Example Restaurant"
}, - "error": null,
- "product": {
- "name": {
- "fr": "Menu pour deux",
- "en": "Menu for two"
}, - "offer_description": {
- "fr": "Menu trois plats",
- "en": "Three-course menu"
}, - "use_restrictions": {
- "fr": "Sur réservation",
- "en": "Reservation required"
}, - "number_of_people": 2,
- "number_of_nights": null
}, - "options": [ ],
- "extension": {
- "can_be_extended": false,
- "duration_days": null,
- "price": null,
- "url": null
}
}Create a gift reservation
Supports ordinary vouchers and partner giftcards only. Network giftcards, network vouchers and workshop vouchers are not supported. Create a reservation with status=reserved, without consuming the gift. The gift becomes using: a voucher must be paid, while an activated giftcard may be paid or using and must have a positive remaining balance. The gift must not be expired or already reserved. A reservation date is required and may be after gift expiration. Giftcards accept an optional amount; the default reserves the remaining balance, and partial amounts require splitable=true. Only one reserved reservation is allowed per gift; the external reference is unique within the establishment. The caller needs the product's usage permission. Exact retries return the original 201 response. The response includes an automatically generated summary in the partner's default language. For giftcards, the amount paid in the summary is the reserved amount.
Authorizations:
path Parameters
| code required | string |
header Parameters
| Idempotency-Key required | string <uuid> Unique UUID per operation. Exact retries replay the original response; changed requests return 409. |
| X-Partner-Domain required | string Examples:
Site domain of the partner whose data is requested. |
Request Body schema: required
| reservation_date required | string <date-time> |
| amount | string <decimal> ^-?\d{0,8}(?:\.\d{0,2})?$ |
| external_reference required | string <= 255 characters ^[^/]+$ Partner-unique booking reference, used in reservation URLs. A prefixed UUID such as bkg-550e8400-e29b-41d4-a716-446655440000 is recommended. Must not contain '/'. |
Responses
Request samples
- Payload
{- "external_reference": "bkg-550e8400-e29b-41d4-a716-446655440000",
- "reservation_date": "2030-10-01T19:30:00Z",
- "amount": "20.00"
}Response samples
- 201
{- "code": "q7m4k2p9vx",
- "product_type": "voucher",
- "external_reference": "bkg-6ba7b810-9dad-41d1-80b4-00c04fd430c8",
- "reservation_date": "2030-10-13T21:00:00+02:00",
- "reserved_amount": null,
- "status": "reserved",
- "gift_status": "using",
- "remaining_value": null,
- "currency": "EUR",
- "summary": "Bon cadeau « Menu du chef » (Menu en sept assiettes). Code cadeau q7m4k2p9vx, valable jusqu’au 13-10-2031, pour 2 personnes. https://test.dashboard.com/vouchers/999999999"
}Update a gift reservation
Supports ordinary vouchers and partner giftcards only. Network giftcards, network vouchers and workshop vouchers are not supported. Change the reservation date or reserved giftcard amount while the reservation is reserved and the gift is using and has not expired. Omitted fields retain their values; reservation_date cannot be null. Rescheduling is possible after the original date, but a new date must be in the future. This endpoint does not accept status. Use the complete or cancel endpoint to finish the reservation. Every operation rechecks product permissions, including retries.
Authorizations:
path Parameters
| code required | string |
| external_reference required | string |
header Parameters
| Idempotency-Key required | string <uuid> Unique UUID per operation. Exact retries replay the original response; changed requests return 409. |
| X-Partner-Domain required | string Examples:
Site domain of the partner whose data is requested. |
Request Body schema:
| reservation_date | string <date-time> |
| amount | string <decimal> ^-?\d{0,8}(?:\.\d{0,2})?$ |
Responses
Request samples
- Payload
{- "reservation_date": "2030-10-02T19:30:00Z"
}Response samples
- 200
{- "code": "string",
- "product_type": "voucher",
- "external_reference": "string",
- "reservation_date": "2019-08-24T14:15:22Z",
- "reserved_amount": "string",
- "status": "reserved",
- "gift_status": "string",
- "remaining_value": "string",
- "currency": "string",
- "summary": "string"
}Cancel a gift reservation
Supports ordinary vouchers and partner giftcards only. Network giftcards, network vouchers and workshop vouchers are not supported. Cancel a reserved reservation while the gift is using, releasing it without consuming it. Cancellation is allowed after the reservation date and after gift expiration. An expired voucher or giftcard remains expired. Otherwise, a voucher returns to paid. A giftcard returns to paid if it has no other active usage, otherwise it remains using. Cancellation does not extend gift validity. The reservation becomes cancelled and cannot be changed again. Send an empty body. Every request rechecks product permissions, including retries.
Authorizations:
path Parameters
| code required | string |
| external_reference required | string |
header Parameters
| Idempotency-Key required | string <uuid> Unique UUID per operation. Exact retries replay the original response; changed requests return 409. |
| X-Partner-Domain required | string Examples:
Site domain of the partner whose data is requested. |
Responses
Response samples
- 200
{- "code": "GCk4m2p9qv",
- "product_type": "giftcard",
- "external_reference": "bkg-550e8400-e29b-41d4-a716-446655440000",
- "reservation_date": "2030-10-01T19:30:00Z",
- "reserved_amount": "20.00",
- "status": "cancelled",
- "gift_status": "paid",
- "remaining_value": "50.00",
- "currency": "EUR",
- "summary": "Chèque cadeau, solde initial de 50,00 €. Montant payé : 20,00 €. Code cadeau GCk4m2p9qv, valable jusqu’au 31-12-2030. https://test.dashboard.com/giftcards/999999999"
}Complete a gift reservation
Supports ordinary vouchers and partner giftcards only. Network giftcards, network vouchers and workshop vouchers are not supported. Complete a reserved reservation once its reservation date has arrived. The gift must still be using, but completion is allowed after gift expiration. A voucher is marked used and its usage date is the scheduled reservation date. A giftcard usage is created for the reserved amount, reducing its balance; a partially used giftcard may remain using. The reservation becomes used and cannot be changed again. Send an empty body. Exact retries replay the original response without consuming the gift again. Every request rechecks product permissions, including retries.
Authorizations:
path Parameters
| code required | string |
| external_reference required | string |
header Parameters
| Idempotency-Key required | string <uuid> Unique UUID per operation. Exact retries replay the original response; changed requests return 409. |
| X-Partner-Domain required | string Examples:
Site domain of the partner whose data is requested. |
Responses
Response samples
- 200
{- "code": "GCk4m2p9qv",
- "product_type": "giftcard",
- "external_reference": "bkg-550e8400-e29b-41d4-a716-446655440000",
- "reservation_date": "2030-10-01T19:30:00Z",
- "reserved_amount": "20.00",
- "status": "used",
- "gift_status": "using",
- "remaining_value": "30.00",
- "currency": "EUR",
- "summary": "Chèque cadeau, solde initial de 50,00 €. Montant payé : 20,00 €. Code cadeau GCk4m2p9qv, valable jusqu’au 31-12-2030. https://test.dashboard.com/giftcards/999999999"
}