AdminGiftCardsResource
admin/gift-cards.AdminGiftCardsResource
Methods
create
create(payload
, customHeaders?
): ResponsePromise
<AdminGiftCardsRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminGiftCardsRes
>
Description
Creates a gift card
delete
delete(id
, customHeaders?
): ResponsePromise
<DeleteResponse
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<DeleteResponse
>
Description
Deletes a gift card
list
list(query?
, customHeaders?
): ResponsePromise
<AdminGiftCardsListRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminGiftCardsListRes
>
Description
Lists gift cards
retrieve
retrieve(id
, customHeaders?
): ResponsePromise
<AdminGiftCardsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminGiftCardsRes
>
Description
Deletes a gift card
update
update(id
, payload
, customHeaders?
): ResponsePromise
<AdminGiftCardsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminGiftCardsRes
>
Description
Updates a gift card
Was this section helpful?