why is customer nullable on SubscriptionContract?

Solved
jacob_ply
New Member
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)

Accepted Solutions
diegolippel
Shopify Staff
Shopify Staff
12 3 4

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.

View solution in original post

Reply 1 (1)
diegolippel
Shopify Staff
Shopify Staff
12 3 4

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.