post https://api.zenoti.com/v1/invoices/giftcards
You must specify appropriate details for the request body parameters, and this API generates an invoice by booking the gift cards and returns a unique invoice ID as the response.
Request Details
Name | Type | Description |
---|---|---|
center_id | guid | Unique identifier of the center. |
guest_id | guid | Unique identifier of the guest. |
giftcards | array | Array of gift card objects. |
giftcards[i].template_id | guid | Unique identifier of the center. |
giftcards[i].schedule_time | datetime | Schedule date of the occasion. The gift card will be sent on this date and time). |
giftcards[i].occassion | object | Contains details of the gift card occasion. |
giftcards[i].occassion.id | guid | Unique identifier of the occasion. |
giftcards[i].occassion.image_id | guid | Unique identifier of the image associated with the specified occasion. |
giftcards[i].occassion.message | string | This occasion message (such as "Happy Birthday") will be sent via email. |
giftcards[i].recepient | object | Contains details of the gift card recepient. |
giftcards[i].recepient.name | string | Name of the recepient. |
giftcards[i].recepient.email | string | Email of the recepient. |
Response Details
Name | Type | Description |
---|---|---|
invoice_id | guid | Unique identifier of the invoice. |