ordertransaction documentation lacks non-deprecated receipt field

Highlighted
Excursionist
19 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
Highlighted
Excursionist
19 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
Highlighted
Shopify Staff
Shopify Staff
1002 130 145

Hey @True_Primal_LLC,

 

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

0 Likes
Highlighted
Excursionist
19 0 9

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

0 Likes
Highlighted
Excursionist
19 0 9

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

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1002 130 145

Hey @True_Primal_LLC,

 

No update yet.

0 Likes
Highlighted
Excursionist
19 0 9

This may have gotten even worse now. The latest version of the doc has removed any mention of the only field that had any real information to it: https://help.shopify.com/en/api/graphql-admin-api/reference/object/ordertransaction?api[version]=202...

 

With the receipt field gone - has that information on fees moved somewhere else?

0 Likes
Highlighted
Excursionist
19 0 9

Looks like maybe a transient web issue was preventing me from seeing the deprecated field list a few days ago.

 

But I see 2020-04 and 2020-01 (current) both still have the original problem. Any status update on that?

0 Likes
Highlighted
Excursionist
19 0 9

FWIW, this is still broken in the https://shopify.dev/docs/admin-api/graphql/reference/object/ordertransaction?api[version]=2020-04 latest. The real core of the information is all in "receipt" which is listed as a deprecated field.

0 Likes
Highlighted
Excursionist
19 0 9

Appears to be still broken on the ordertransaction call - any update on that information being available, perhaps in some other call?

0 Likes