Gift Card Adjustment Linked Orders

leee
Shopify Partner
2 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
1442 236 492

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