Disable gift card
POST https://{handle}.myshopline.com/admin/openapi/v20260301/gift_cards/:gift_card_id/disable.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .Path Parameters
- gift_card_id string requiredGift card idExample:
30157043359245339231360282
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Status Codes
- 200
- 401
- 429
For the complete list of codes and messages, see Http status code.
Response Headers
traceId
A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
gift_cardobject
Gift card informationcreated_at stringGift card creation timeExample:2023-08-16T23:59:59+08:00expires_on stringExpiration date for present gift card, “null” means never expiredExample:2023-08-16T23:59:59+08:00line_item_id stringAssociated order itemsExample:18060183094426803997483534id stringGift card idExample:30157043359245339231360282currency stringGift card par currencyExample:CNYuser_id stringAdministrator account id on the admin interface for users to create gift cardsExample:4214250478balance stringGift card balanceExample:200customer_id stringClient id for customers assigned to present gift cardExample:4200113946note stringNote information for present gift cardExample:This is a noteorder_id stringAssociated order idExample:24060486231247568944830202api_client_id stringCall party idExample:36d2bc4e97af056677b61c529d9e3a3f7396040ddisabled_at stringGift card disable timeExample:2023-08-16T23:59:59+08:00updated_at stringGift card update timeExample:2023-08-16T23:59:59+08:00initial_value stringInitial face value of gift cardExample:200last_characters stringThe last four characters from codeExample:d246
API Explorer
Debugger
Examples
Was this article helpful to you?