Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.
Solved

why is customer nullable on SubscriptionContract?

jacob_ply
Visitor
3 0 3

I noticed that the GraphQL schema for SubscriptionContract lists the customer field as nullable. Is there a scenario where a contract would exist without an associated customer?

Accepted Solution (1)

diegolippel
Shopify Staff
19 4 6

This is an accepted solution.

Hi,

There are scenarios where a customer can be deleted by the merchant, or their data may be redacted.

The contract itself has a link to a customer, but the data might no longer be available.

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Reply 1 (1)

diegolippel
Shopify Staff
19 4 6

This is an accepted solution.

Hi,

There are scenarios where a customer can be deleted by the merchant, or their data may be redacted.

The contract itself has a link to a customer, but the data might no longer be available.

To learn more visit the Shopify Help Center or the Community Blog.