customerSubscriptionContractsForPagination
顧客向け契約一覧情報取得(50件ごとにページネーションで取得)
customerSubscriptionContractsForPagination(
customerId: String!
page: Int!
statuses: [SubscriptionStatus!]
): ResultCustomerSubscriptionContractsForPagination
Arguments
customerSubscriptionContractsForPagination.customerId
● String!
non-null scalar
顧客ID ※必須
- 説明: 処理対象顧客の globally-unique ID.
- 例:
"gid://shopify/Customer/123456789"
customerSubscriptionContractsForPagination.page
● Int!
non-null scalar
ページ番号 ※必須
- 説明: 取得するページ番号. 0から始まる.
- 例:
1
customerSubscriptionContractsForPagination.statuses
● [SubscriptionStatus!]
list enum
契約情報のステータス一覧
- 説明: ステータスがstatuesに含まれている契約に絞り込む
- 例:
["PAUSED", "CANCELLED"]
Type
ResultCustomerSubscriptionContractsForPagination
object
顧客向け契約一覧(ページネーションあり)
Example
{
customerSubscriptionContractsForPagination(
customerId: "gid://shopify/Customer/7209218670705"
page: 1
statuses: [ACTIVE]
) {
subscriptionContracts {
subscriptionContractId
isSyncingSubscription
createdAt
status
subscriptionLines {
lineId
productId
variantId
title
}
billingAttempts {
createdAt
orderId
orderName
orderToken
ready
nextActionUrl
}
}
pageInfo {
page
perPage
hasPreviousPage
hasNextPage
}
}
}