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 Model
| Json Property | Data Type | Description |
|---|---|---|
| center_id | Guid | Unique ID of the center |
| guest_id | Guid | Unique ID of the guest |
| online_guest_id | Guid? (nullable) | Unique online ID of the guest |
| giftcards | List<GiftCardInfo> | List of gift card objects |
giftcards object (GiftCardInfo)
| Json Property | Data Type | Description |
|---|---|---|
| template_id | Guid | Unique ID of the gift card |
| schedule_time | DateTime? (nullable) | Scheduled time of the occasion |
| occassion | GiftCardOccasionInfo | Gift card occasion object |
| recepient | GiftCardRecepient | Gift card recipient details |
occassion object (GiftCardOccasionInfo)
| Json Property | Data Type | Description |
|---|---|---|
| id | Guid | Unique ID of the occasion |
| image_id | Guid | Unique ID of the image |
| message | string | Message associated with the occasion |
recepient object (GiftCardRecepient)
| Json Property | Data Type | Description |
|---|---|---|
| name | string | Name of the recipient |
string | Email ID of the recipient |
Response Model
| Json Property | Data Type | Description |
|---|---|---|
| invoice_id | Guid | Unique identifier of the invoice |
| invoice_number | string | Invoice number of the invoice (optional, may be null) |
| error | ApiErrorModel | Error details (optional, null when the request succeeds) |
ApiErrorModel
| Json Property | Data Type | Description |
|---|---|---|
| code | int | Error code |
| message | string | Error message |
