Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Gift Card Adjustment Linked Orders

Gift Card Adjustment Linked Orders

leee
Shopify Partner
5 0 0

I am using this api https://shopify.dev/api/admin-rest/2022-10/resources/gift-card-adjustment#post-gift-cards-gift-card-..., I found that there is order_transaction_id in the api parameters, I want to know how to associate it with the order 

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 530

Hey @leee,

Taking a closer look at the order_transaction_id field description for the Gift Card Adjustment resource, this field cannot be written manually. For the field to update, it requires an applicable order_transaction to occur that is associated with an adjustment, and will update automatically. 

order_transaction_id
A unique numeric identifier of the order transaction that issued the adjustment (if it was caused by an application of a gift card to an order).



I hope this helps clarify the expected results - Cheers!


Lastly, don't ever hesitate to provide direct feedback on both API and development documentation if you feel something is missing or that additional clarification is required - most of the pages include a dedicated feedback tool:

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog