There have been cases where the originOrder included in the Subscription Contract is NULL

There have been cases where the originOrder included in the Subscription Contract is NULL.

Did you have any system failures around December 12th?

Hey Kmatsubara,

Thank you for your question!

Were the contracts you are referring to generated using the Checkout or were they created through the Subscription Contract APIs?

Thanks

It was created through a normal checkout flow.

Show More

I am having the same issue I am creating a subscription contract draft through API and committing the draft. I see the contract created in shopify but it has a null originOrder. Any ideas?

Thanks Kmatsubara

A contract should be created with an order when placed through the checkout.

Could you send the shop id(s) and contract id(s) where this happened, please?

gid://shopify/SubscriptionContract/2338521242

gid://shopify/SubscriptionContract/2312896666
There are several others.
The store is here.
gid://partners/Shop/36230529157

How about after that?

Hi @ptt-kmatsubara

Sorry for the time between replies! I just got back from some vacation time. I’ll look into the IDs you provided tomorrow and get back to you as soon as I can.

Megan

@czilla95 Contracts created through the API do not have an originOrder; that is expected.

@ptt-kmatsubara It looks like the two contracts you specified both have an origin type of “draft” not “order”. That seems like they were created through the API (from an app called 定期購買)

Those type of contracts do not have an originOrder.

What information can I refer to to determine the type of draft or order?

https://shopify.dev/api/admin-graphql/2021-10/objects/subscriptioncontract#fields

Also, this contract was a recognition created from this order.

“gid://shopify/SubscriptionContract/2338521242”

“gid://shopify/Order/4273407819930”