Tags:
- Admin GraphQL API
Discouraging use of receiptJson on OrderTransaction in the GraphQL Admin API
receiptJson on OrderTransaction in the GraphQL Admin APIWe’re discouraging use of . You should stop relying on in production apps.
is gateway-defined, inconsistently shaped, and may change without notice. Because its structure isn’t stable or typed, changes can lead to unexpected app failures.
What’s changing
should be treated as unstable, gateway-specific data.- The field remains available, but Shopify does not guarantee a consistent schema or long-term compatibility for its contents.
- Changes to the shape or keys inside
may occur without being treated as a breaking API change.
Why this is changing
is not a reliable integration surface:
- Different payment gateways format it differently.
- The same gateway can change its structure across versions or configurations.
- Apps that parse it can break unexpectedly, impacting merchants.
We want to reduce production incidents caused by treating as a stable contract.
What you need to do
We recommend removing dependencies on as soon as possible:
- Don’t add new dependencies on
. - Migrate existing logic to stable, typed fields on
and related objects wherever possible. - If you require provider-specific details that aren’t available as typed fields, fetch them directly from the payment provider (when applicable) and store only the minimal data your system needs.
Documentation
object: https://shopify.dev/api/admin-graphql/latest/objects/OrderTransaction- API versioning and compatibility: https://shopify.dev/docs/api/usage/versioning
Was this section helpful?