Referencia de APIAccounting / Gift Card
Create Gift Card
← Back to full API reference
POST
/v1/gift-cardAuth required- Requires organization permissions for this resource.
- Validated by Zod schema: postGiftCard.
Request details
Body fields
| Field | Required | Description |
|---|---|---|
| amount | Yes | Type: number |
| currency | Yes | Enum-like validator generated by zodFromObj |
| divisionId | Yes | Type: number |
| code | No | Type: string |
| expiresAt | No | Type: string |
| notes | No | Type: string |
| paymentMethod | Yes | Type: enumExample: CASH |
| accountId | Yes | Type: number |
| buyerBeneficiaryId | Yes | Type: number |
| reference | No | Type: string |
| date | No | Type: string |
Default payloads
Path params
json
{}Query
json
{}Body
json
{
"amount": 1,
"currency": "string",
"divisionId": 1,
"paymentMethod": "CASH",
"accountId": 1,
"buyerBeneficiaryId": 1
}Sample response
json
{
"giftCard": "<giftCard>",
"recordId": "<recordId>"
}