TanqoryDocs

subscriptionContract

  • Query
  • Content and shop

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

SubscriptionContract

FieldTypeDescription
appApp
appAdminUrlURL
billingAttemptsSubscriptionBillingAttemptConnection!
billingPolicySubscriptionBillingPolicy!
createdAtDateTime!
currencyCodeCurrencyCode!
customAttributes[Attribute!]!
customerCustomer
customerPaymentMethodCustomerPaymentMethod
deliveryMethodSubscriptionDeliveryMethod
deliveryPolicySubscriptionDeliveryPolicy!
deliveryPriceMoneyV2!
discountsSubscriptionManualDiscountConnection!
groupedLinesSubscriptionGroupedLineConnection
idID!
lastBillingAttemptErrorTypeSubscriptionContractLastBillingErrorType
lastPaymentStatusSubscriptionContractLastPaymentStatus
latestCommittedProjectedOrderTotalsSubscriptionContractCalculationProjectedOrderTotals
lineCountInt!

Deprecated

linesSubscriptionLineConnection!
linesCountCount
nextBillingDateDateTime
noteString
ordersOrderConnection!
originOrderOrder
revisionIdUnsignedInt64!
statusSubscriptionContractSubscriptionStatus!
updatedAtDateTime!

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"query SubscriptionContract($id: ID!) {\n  subscriptionContract(id: $id) {\n    app { id }\n    appAdminUrl\n    createdAt\n    currencyCode\n    customer { id }\n    customerPaymentMethod { id }\n    deliveryPrice {\n      amount\n      currencyCode\n    }\n    id\n    lastBillingAttemptErrorType\n    lastPaymentStatus\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10