why is customer nullable on SubscriptionContract?

Solved
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
Shopify Staff
17 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
Shopify Staff
17 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.