1 /**
2 * @oas [get] /admin/gift-cards/{id}
3 * operationId: GetGiftCardsId
4 * summary: Get a Gift Card
5 * description: Retrieve a gift card by its ID. You can expand the gift card's relations or select the fields that should be returned.
6 * x-authenticated: true
7 * parameters:
8 * - name: id
9 * in: path
10 * description: The gift card's ID.
11 * required: true
12 * schema:
13 * type: string
14 * security:
15 * - api_token: []
16 * - cookie_auth: []
17 * - jwt_token: []
18 * x-codeSamples:
19 * - lang: Shell
20 * label: cURL
21 * source: |-
22 * curl '{backend_url}/admin/gift-cards/{id}' \
23 * -H 'Authorization: Bearer {jwt_token}'
24 * tags:
25 * - Gift Cards
26 * responses:
27 * "200":
28 * description: OK
29 * content:
30 * application/json:
31 * schema:
32 * $ref: "#/components/schemas/AdminGiftCardResponse"
33 * "400":
34 * $ref: "#/components/responses/400_error"
35 * "401":
36 * $ref: "#/components/responses/unauthorized"
37 * "404":
38 * $ref: "#/components/responses/not_found_error"
39 * "409":
40 * $ref: "#/components/responses/invalid_state_error"
41 * "422":
42 * $ref: "#/components/responses/invalid_request_error"
43 * "500":
44 * $ref: "#/components/responses/500_error"
45 * x-badges:
46 * - text: Loyalty Plugin
47 * description: |
48 * This API route is only available through the [Loyalty Plugin](https://docs.medusajs.com/resources/commerce-modules/loyalty).
49 *
50 */
51