ordertransaction documentation lacks non-deprecated receipt field

Highlighted
Excursionist
26 0 11

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
26 0 11

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
1041 140 170

Hey @True_Primal_LLC,

 

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

Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes
Highlighted
Excursionist
26 0 11

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

0 Likes
Highlighted
Excursionist
26 0 11

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

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 170

Hey @True_Primal_LLC,

 

No update yet.

Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes
Highlighted
Excursionist
26 0 11

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
26 0 11

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
26 0 11

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
26 0 11

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

0 Likes