order transaction receipt can't be written through API calls

order transaction receipt can't be written through API calls

Csaba_R
Shopify Partner
4 0 0

Hello everyone,

I'm trying to import externally captured manual payment transactions to associated orders in Shopify.

I would use the receipt field to store the external data like the manual capture method name, amount, timestamp etc..

For the REST API the receipt field is marked as read-only, therefore I can't input any data into it.

REST API Doc: https://shopify.dev/api/admin-rest/2022-07/resources/transaction

 

For GraphQL it looks like the field is available as receiptJson.

But I can't find any mutation that allows this field to be written (like orderUpdate mutation).

GraphQL Doc: https://shopify.dev/api/admin-graphql/2022-07/objects/OrderTransaction#field-ordertransaction-receip...

 

Is there any way to write the receipt or receiptJson field for external transactions created through API?
Or is this field only available to write for transactions created by Shopify Payment?

 

Thanks for any advise!

Reply 1 (1)

Hidden_
Shopify Partner
2 0 2

Can u help me how to add receipt or receiptjson at first place