ordertransaction documentation lacks non-deprecated receipt field

Excursionist
12 0 9

According to https://help.shopify.com/en/api/graphql-admin-api/reference/object/ordertransaction the only way to get the actual core information is from a deprecated field called "receipt". The documentation says instead to use "receiptJson". However "receiptJson" is not documented on that page, and does not appear to actually exist. Requesting "receiptJson" from the API errors out. (Requesting "receipt" works fine, although the field itself is bizarre - it appears to be sort of close to JSON, but not quite - and there's no documentation on how to parse it.)

 

Can someone correct the documentation on "receipt"? Or explain some trick to somehow get "receiptJson"?

0 Likes
Excursionist
12 0 9

The "receipt" field returns a string like the following:

 

{"paid_amount"=>"54.99"}

 

Does anyone recognize that format?  It looks vaguely similar to JSON, but isn't.  Not sure what the parse rules could be.  (One would hope "receiptJson" is actual JSON, but since that field doesn't exist, who knows.)

0 Likes
Shopify Staff
Shopify Staff
240 32 37

Hey @True_Primal_LLC,

 

Thanks for reporting this, we're looking into it.

0 Likes
Excursionist
12 0 9

Any ideas what's going on with the missing "receiptJson", or what the "receipt" string is formatted in?

0 Likes
Excursionist
12 0 9

The "2020-01 release candidate" still has this issue. Any status update?

0 Likes
Shopify Staff
Shopify Staff
240 32 37

Hey @True_Primal_LLC,

 

No update yet.

0 Likes