--- title: SubscriptionContractBase - GraphQL Admin description: Represents subscription contract common fields. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/SubscriptionContractBase md: >- https://shopify.dev/docs/api/admin-graphql/unstable/interfaces/SubscriptionContractBase.md --- # Subscription​Contract​Base interface Requires the `read_own_subscription_contracts` or `write_own_subscription_contracts` scope. Represents subscription contract common fields. ## Fields * app [App](https://shopify.dev/docs/api/admin-graphql/unstable/objects/App) The subscription app that the subscription contract is registered to. * app​Admin​Url [URL](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/URL) The URL of the subscription contract page on the subscription app. * currency​Code [Currency​Code!](https://shopify.dev/docs/api/admin-graphql/unstable/enums/CurrencyCode) non-null The currency that's used for the subscription contract. * custom​Attributes [\[Attribute!\]!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Attribute) non-null A list of the custom attributes to be added to the generated orders. * customer [Customer](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Customer) The customer to whom the subscription contract belongs. * customer​Payment​Method [Customer​Payment​Method](https://shopify.dev/docs/api/admin-graphql/unstable/objects/CustomerPaymentMethod) The customer payment method that's used for the subscription contract. * show​Revoked [Boolean](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean) Default:false ### Arguments Whether to show the customer's revoked payment method. *** * delivery​Method [Subscription​Delivery​Method](https://shopify.dev/docs/api/admin-graphql/unstable/unions/SubscriptionDeliveryMethod) The delivery method for each billing of the subscription contract. * delivery​Price [Money​V2!](https://shopify.dev/docs/api/admin-graphql/unstable/objects/MoneyV2) non-null The delivery price for each billing of the subscription contract. * discounts [Subscription​Manual​Discount​Connection!](https://shopify.dev/docs/api/admin-graphql/unstable/connections/SubscriptionManualDiscountConnection) non-null The list of subscription discounts associated with the subscription contract. * first [Int](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int) ### Arguments The first `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * after [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) The elements that come after the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * last [Int](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int) The last `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * before [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) The elements that come before the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * reverse [Boolean](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean) Default:false Reverse the order of the underlying list. *** * lines [Subscription​Line​Connection!](https://shopify.dev/docs/api/admin-graphql/unstable/connections/SubscriptionLineConnection) non-null The list of subscription lines associated with the subscription contract. * first [Int](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int) ### Arguments The first `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * after [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) The elements that come after the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * last [Int](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int) The last `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * before [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) The elements that come before the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * reverse [Boolean](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean) Default:false Reverse the order of the underlying list. *** * lines​Count [Count](https://shopify.dev/docs/api/admin-graphql/unstable/objects/Count) The number of lines associated with the subscription contract. * note [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) The note field that will be applied to the generated orders. * orders [Order​Connection!](https://shopify.dev/docs/api/admin-graphql/unstable/connections/OrderConnection) non-null A list of the subscription contract's orders. * first [Int](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int) ### Arguments The first `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * after [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) The elements that come after the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * last [Int](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int) The last `n` elements from the [paginated list](https://shopify.dev/api/usage/pagination-graphql). * before [String](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/String) The elements that come before the specified [cursor](https://shopify.dev/api/usage/pagination-graphql). * reverse [Boolean](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Boolean) Default:false Reverse the order of the underlying list. *** * updated​At [Date​Time!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/DateTime) non-null The date and time when the subscription contract was updated. * line​Count [Int!](https://shopify.dev/docs/api/admin-graphql/unstable/scalars/Int) non-nullDeprecated *** ##### Variables ```json { "app": "", "appAdminUrl": "", "currencyCode": "", "customAttributes": "", "customer": "", "customerPaymentMethod": { "showRevoked": "" }, "deliveryMethod": "", "deliveryPrice": "", "discounts": { "first": "", "after": "", "last": "", "before": "", "reverse": "" }, "lineCount": "", "lines": { "first": "", "after": "", "last": "", "before": "", "reverse": "" }, "linesCount": "", "note": "", "orders": { "first": "", "after": "", "last": "", "before": "", "reverse": "" }, "updatedAt": "" } ``` ##### Schema ```graphql interface SubscriptionContractBase { app: App appAdminUrl: URL currencyCode: CurrencyCode! customAttributes: [Attribute!]! customer: Customer customerPaymentMethod: CustomerPaymentMethod deliveryMethod: SubscriptionDeliveryMethod deliveryPrice: MoneyV2! discounts: SubscriptionManualDiscountConnection! lineCount: Int! lines: SubscriptionLineConnection! linesCount: Count note: String orders: OrderConnection! updatedAt: DateTime! } ```