Regarding data inconsistencies in contract and order information

ptt-kmatsubara
Shopify Partner
66 0 4

The following contract ID is associated as the origin of the order, but the corresponding order ID does not exist in the billingAttempts information on the contract side.

I think it's a data problem on Shopify, but do you know the cause?

 

orderId : gid://shopify/Order/3680121487549

contractId : gid://shopify/SubscriptionContract/3354525850

 

Replies 2 (2)

Brian_S
Shopify Partner
157 19 39

Only billing attempts that you create for the sub will show in billingAttempts. The origin order shows in the originOrder field on the sub

Brian Singer
CTO & Cofounder of Subscription Service - Awtomic
ptt-kmatsubara
Shopify Partner
66 0 4

I know that the originOrder from which it was created exists separately.

 

The problem this time is not originOrder or not.
The problem is that there is no Order in the BillingAttempt information even though the payment was made through the SubscriptionAPI.

 

https://shopify.dev/docs/api/admin-graphql/2023-04/mutations/subscriptionBillingAttemptCreate
We suspect that there is a hidden bug that causes multiple payments when sending payment requests through this API.