Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

why is customer nullable on SubscriptionContract?

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.