CheckoutCreateInput Input Type
input CheckoutCreateInput {
channel: String
lines: [CheckoutLineInput!]!
email: String
saveShippingAddress: Boolean
shippingAddress: AddressInput
saveBillingAddress: Boolean
billingAddress: AddressInput
languageCode: LanguageCodeEnum
validationRules: CheckoutValidationRules
metadata: [MetadataInput!]
privateMetadata: [MetadataInput!]
}
Fields
channel
channel · String
Slug of a channel in which to create a checkout.
lines
lines · [CheckoutLineInput!]!
A list of checkout lines, each containing information about an item in the checkout.
email · String
The customer’s email address.
saveShippingAddress
saveShippingAddress · Boolean
Indicates whether the shipping address should be saved to the user’s address book upon checkout completion.Can only be set when a shipping address is provided. If not specified along with the address, the default behavior is to save the address.
Added in Saleor 3.21shippingAddress
shippingAddress · AddressInput
The mailing address to where the checkout will be shipped. Note: the address will be ignored if the checkout doesn’t contain shippable items. skipValidation requires HANDLE_CHECKOUTS and AUTHENTICATED_APP permissions.
saveBillingAddress
saveBillingAddress · Boolean
Indicates whether the billing address should be saved to the user’s address book upon checkout completion. Can only be set when a billing address is provided. If not specified along with the address, the default behavior is to save the address.
Added in Saleor 3.21billingAddress
billingAddress · AddressInput
Billing address of the customer. skipValidation requires HANDLE_CHECKOUTS and AUTHENTICATED_APP permissions.
languageCode
languageCode · LanguageCodeEnum
Checkout language code.
validationRules
validationRules · CheckoutValidationRules
The checkout validation rules that can be changed.
metadata
metadata · [MetadataInput!]
Checkout public metadata. Can be read by any API client authorized to read the object it’s attached to.
Warning: never store sensitive information, including financial data such as credit card details.
Added in Saleor 3.21privateMetadata
privateMetadata · [MetadataInput!]
Checkout private metadata. Requires one of the following permissions: MANAGE_CHECKOUTS, HANDLE_CHECKOUTS
Requires permissions to modify and to read the metadata of the object it’s attached to.
Warning: never store sensitive information, including financial data such as credit card details.
Added in Saleor 3.21Used by
Schema: Saleor 3.23.43. Download SDL.