Checkout
Checkout object.
type Checkout implements Node, ObjectWithMetadata {
id: ID!
privateMetadata: [MetadataItem!]!
privateMetafield(key: String!): String
privateMetafields(keys: [String!]): Metadata
metadata: [MetadataItem!]!
metafield(key: String!): String
metafields(keys: [String!]): Metadata
created: DateTime!
updatedAt: DateTime!
lastChange: DateTime! @deprecated
user: User
channel: Channel!
billingAddress: Address
shippingAddress: Address
note: String!
discount: Money
discountName: String
translatedDiscountName: String
voucher: Voucher
voucherCode: String
availableShippingMethods: [ShippingMethod!]! @deprecated
shippingMethods: [ShippingMethod!]!
availableCollectionPoints: [Warehouse!]!
availablePaymentGateways: [PaymentGateway!]!
email: String
giftCards: [GiftCard!]!
isShippingRequired: Boolean!
quantity: Int!
stockReservationExpires: DateTime
lines: [CheckoutLine!]!
shippingPrice: TaxedMoney!
shippingMethod: ShippingMethod @deprecated
deliveryMethod: DeliveryMethod
subtotalPrice: TaxedMoney!
taxExemption: Boolean!
token: UUID!
totalPrice: TaxedMoney!
totalBalance: Money!
languageCode: LanguageCodeEnum!
transactions: [TransactionItem!]
displayGrossPrices: Boolean!
authorizeStatus: CheckoutAuthorizeStatusEnum!
chargeStatus: CheckoutChargeStatusEnum!
storedPaymentMethods(amount: PositiveDecimal): [StoredPaymentMethod!]
problems: [CheckoutProblem!]
}
Fields
Checkout.id
● ID!
non-null scalar miscellaneous
The ID of the checkout.
Checkout.privateMetadata
● [MetadataItem!]!
non-null object miscellaneous
List of private metadata items. Requires staff permissions to access.
Checkout.privateMetafield
● String
scalar miscellaneous
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
Added in Saleor 3.3
Checkout.privateMetafield.key
●String!
non-null scalar miscellaneous
Checkout.privateMetafields
● Metadata
scalar miscellaneous
Private metadata. Requires staff permissions to access. Use
Added in Saleor 3.3keys
to control which fields you want to include. The default is to include everything.
Checkout.privateMetafields.keys
●[String!]
list scalar miscellaneous
Checkout.metadata
● [MetadataItem!]!
non-null object miscellaneous
List of public metadata items. Can be accessed without permissions.
Checkout.metafield
● String
scalar miscellaneous
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
Added in Saleor 3.3
Checkout.metafield.key
●String!
non-null scalar miscellaneous
Checkout.metafields
● Metadata
scalar miscellaneous
Public metadata. Use
Added in Saleor 3.3keys
to control which fields you want to include. The default is to include everything.
Checkout.metafields.keys
●[String!]
list scalar miscellaneous
Checkout.created
● DateTime!
non-null scalar miscellaneous
The date and time when the checkout was created.
Checkout.updatedAt
● DateTime!
non-null scalar miscellaneous
Time of last modification of the given checkout.
Added in Saleor 3.13
Checkout.lastChange
● DateTime!
deprecated non-null scalar miscellaneous
DEPRECATEDThis field will be removed in Saleor 4.0. Use
updatedAt
instead.
Checkout.user
● User
object users
The user assigned to the checkout.
Checkout.channel
● Channel!
non-null object channels
The channel for which checkout was created.
Checkout.billingAddress
● Address
object users
The billing address of the checkout.
Checkout.shippingAddress
● Address
object users
The shipping address of the checkout.
Checkout.note
● String!
non-null scalar miscellaneous
The note for the checkout.
Checkout.discount
● Money
object miscellaneous
The total discount applied to the checkout. Note: Only discount created via voucher are included in this field.
Checkout.discountName
● String
scalar miscellaneous
The name of voucher assigned to the checkout.
Checkout.translatedDiscountName
● String
scalar miscellaneous
Translation of the discountName field in the language set in Checkout.languageCode field.Note: this field is set automatically when Checkout.languageCode is defined; otherwise it's null
Checkout.voucher
● Voucher
object discounts
The voucher assigned to the checkout.
Added in Saleor 3.18
Checkout.voucherCode
● String
scalar miscellaneous
The code of voucher assigned to the checkout.
Checkout.availableShippingMethods
● [ShippingMethod!]!
deprecated non-null object shipping
DEPRECATEDThis field will be removed in Saleor 4.0. Use
shippingMethods
instead.Shipping methods that can be used with this checkout.
Triggers the following webhook events:
- SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid.
- CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid.
Checkout.shippingMethods
● [ShippingMethod!]!
non-null object shipping
Shipping methods that can be used with this checkout.
Triggers the following webhook events:
- SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid.
- CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid.
Checkout.availableCollectionPoints
● [Warehouse!]!
non-null object products
Collection points that can be used for this order.
Added in Saleor 3.1
Checkout.availablePaymentGateways
● [PaymentGateway!]!
non-null object payments
List of available payment gateways.
Triggers the following webhook events:
- PAYMENT_LIST_GATEWAYS (sync): Fetch payment gateways available for checkout.
Checkout.email
● String
scalar miscellaneous
Email of a customer.
Checkout.giftCards
● [GiftCard!]!
non-null object gift-cards
List of gift cards associated with this checkout.
Checkout.isShippingRequired
● Boolean!
non-null scalar miscellaneous
Returns True, if checkout requires shipping.
Checkout.quantity
● Int!
non-null scalar miscellaneous
The number of items purchased.
Checkout.stockReservationExpires
● DateTime
scalar miscellaneous
Date when oldest stock reservation for this checkout expires or null if no stock is reserved.
Added in Saleor 3.1
Checkout.lines
● [CheckoutLine!]!
non-null object checkout
A list of checkout lines, each containing information about an item in the checkout.
Checkout.shippingPrice
● TaxedMoney!
non-null object miscellaneous
The price of the shipping, with all the taxes included. Set to 0 when no delivery method is selected.
Triggers the following webhook events:
- CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired.
Checkout.shippingMethod
● ShippingMethod
deprecated object shipping
DEPRECATEDThis field will be removed in Saleor 4.0. Use
deliveryMethod
instead.The shipping method related with checkout.
Triggers the following webhook events:
- SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid.
- CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid.
Checkout.deliveryMethod
● DeliveryMethod
union miscellaneous
The delivery method selected for this checkout.
Added in Saleor 3.1Triggers the following webhook events:
- SHIPPING_LIST_METHODS_FOR_CHECKOUT (sync): Optionally triggered when cached external shipping methods are invalid.
- CHECKOUT_FILTER_SHIPPING_METHODS (sync): Optionally triggered when cached filtered shipping methods are invalid.
Checkout.subtotalPrice
● TaxedMoney!
non-null object miscellaneous
The price of the checkout before shipping, with taxes included.
Triggers the following webhook events:
- CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired.
Checkout.taxExemption
● Boolean!
non-null scalar miscellaneous
Returns True if checkout has to be exempt from taxes.
Added in Saleor 3.8
Checkout.token
● UUID!
non-null scalar miscellaneous
The checkout's token.
Checkout.totalPrice
● TaxedMoney!
non-null object miscellaneous
The sum of the checkout line prices, with all the taxes,shipping costs, and discounts included.
Triggers the following webhook events:
- CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired.
Checkout.totalBalance
● Money!
non-null object miscellaneous
The difference between the paid and the checkout total amount.
Added in Saleor 3.13This API is currently in Feature Preview and can be subject to changes at later point.Triggers the following webhook events:
- CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired.
Checkout.languageCode
● LanguageCodeEnum!
non-null enum miscellaneous
Checkout language code.
Checkout.transactions
● [TransactionItem!]
list object payments
List of transactions for the checkout.
Added in Saleor 3.4This API is currently in Feature Preview and can be subject to changes at later point.
Checkout.displayGrossPrices
● Boolean!
non-null scalar miscellaneous
Determines whether displayed prices should include taxes.
Added in Saleor 3.9
Checkout.authorizeStatus
● CheckoutAuthorizeStatusEnum!
non-null enum checkout
The authorize status of the checkout.
Added in Saleor 3.13This API is currently in Feature Preview and can be subject to changes at later point.Triggers the following webhook events:
- CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired.
Checkout.chargeStatus
● CheckoutChargeStatusEnum!
non-null enum checkout
The charge status of the checkout.
Added in Saleor 3.13This API is currently in Feature Preview and can be subject to changes at later point.Triggers the following webhook events:
- CHECKOUT_CALCULATE_TAXES (sync): Optionally triggered when checkout prices are expired.
Checkout.storedPaymentMethods
● [StoredPaymentMethod!]
list object payments
List of user's stored payment methods that can be used in this checkout session. It uses the channel that the checkout was created in. When
Added in Saleor 3.15amount
is not provided,checkout.total
will be used as a default value.This API is currently in Feature Preview and can be subject to changes at later point.
Checkout.storedPaymentMethods.amount
●PositiveDecimal
scalar miscellaneousAmount that will be used to fetch stored payment methods.
Checkout.problems
● [CheckoutProblem!]
list union miscellaneous
List of problems with the checkout.
Added in Saleor 3.15This API is currently in Feature Preview and can be subject to changes at later point.
Interfaces
Node
interface miscellaneous
An object with an ID
ObjectWithMetadata
interface miscellaneous
Returned By
checkout
query
Member Of
CheckoutAddPromoCode
object ● CheckoutBillingAddressUpdate
object ● CheckoutCountableEdge
object ● CheckoutCreate
object ● CheckoutCreated
object ● CheckoutCreateFromOrder
object ● CheckoutCustomerAttach
object ● CheckoutCustomerDetach
object ● CheckoutDeliveryMethodUpdate
object ● CheckoutEmailUpdate
object ● CheckoutFilterShippingMethods
object ● CheckoutFullyPaid
object ● CheckoutLanguageCodeUpdate
object ● CheckoutLineDelete
object ● CheckoutLinesAdd
object ● CheckoutLinesDelete
object ● CheckoutLinesUpdate
object ● CheckoutMetadataUpdated
object ● CheckoutPaymentCreate
object ● CheckoutRemovePromoCode
object ● CheckoutShippingAddressUpdate
object ● CheckoutShippingMethodUpdate
object ● CheckoutUpdated
object ● Payment
object ● PaymentListGateways
object ● ShippingListMethodsForCheckout
object ● TransactionItem
object ● User
object
Implemented By
OrderOrCheckout
union ● TaxSourceObject
union