Schema Documentation
checkout
Description
The payload for the checkout mutation
Response
Returns a
CheckoutPayload
Arguments
Name | Description |
---|---|
input -
CheckoutInput! | Input for the checkout mutation |
Example
Query
mutation checkout($input: CheckoutInput!){
checkout(input: $input){
clientMutationIdcustomer {
...CustomerFragment
}order {
...OrderFragment
}redirectresult
}
}
Variables
{"input":CheckoutInput}
Response
{"data":{"checkout":{"clientMutationId":"abc123","customer":Customer,"order":Order,"redirect":"abc123","result":"xyz789"}}}