1 type: object
2 description: The details of the gift card to create.
3 x-schemaName: AdminCreateGiftCardParams
4 required:
5 - code
6 - value
7 - currency_code
8 - expires_at
9 - reference_id
10 - reference
11 - line_item_id
12 - customer_id
13 - metadata
14 properties:
15 code:
16 type: string
17 title: code
18 description: The gift card's code.
19 value:
20 type: number
21 title: value
22 description: The gift card's amount.
23 example: 20
24 currency_code:
25 type: string
26 title: currency_code
27 description: The gift card's currency code.
28 example: usd
29 expires_at:
30 type: string
31 title: expires_at
32 description: The date the gift card expires at.
33 reference_id:
34 type: string
35 title: reference_id
36 description: The gift card's reference ID.
37 reference:
38 type: string
39 title: reference
40 description: The gift card's reference.
41 line_item_id:
42 type: string
43 title: line_item_id
44 description: The ID of the line item associated with the gift card.
45 customer_id:
46 type: string
47 title: customer_id
48 description: The ID of the customer associated with the gift card.
49 metadata:
50 type: object
51 description: The gift card's metadata, can hold custom key-value pairs.
52 externalDocs:
53 url: https://docs.medusajs.com/api/admin#manage-metadata
54 description: Learn how to manage metadata