checkoutCustomerAttach Mutation
Sets the customer as the owner of the checkout.
Arguments
#
Response
#
Returns CheckoutCustomerAttach .
Example
#
mutation ($checkoutId: ID!) {
checkoutCustomerAttach(checkoutId: $checkoutId) {
checkout {
created
lastChange
quantity
note
currency
discountName
translatedDiscountName
voucherCode
poNumbers
id
email
isShippingRequired
token
discountType
}
checkoutErrors {
field
message
code
variants
}
}
}
3
{
"checkoutId": "Y2hlY2tvdXRJZDo1NA=="
}
3
{
"checkoutCustomerAttach": {
"checkout": {
"created": "2022-03-06T08:23:45.000Z",
"lastChange": "2022-03-06T08:23:45.000Z",
"quantity": 42,
"note": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec dictum, risus vel suscipit rhoncus, felis turpis tristique arcu, sit amet lobortis nulla neque at mi.",
"currency": "string",
"discountName": "string",
"translatedDiscountName": "string",
"voucherCode": "string",
"poNumbers": [
"string"
],
"id": "aWQ6Mw==",
"email": "user@example.com",
"isShippingRequired": true,
"token": "125d1240-2b9c-4634-a6f2-70fecc5d88cc",
"discountType": "SHIPPING"
},
"checkoutErrors": [
{
"field": "string",
"message": "string",
"code": "BILLING_ADDRESS_NOT_SET",
"variants": [
"dmFyaWFudHM6MzY="
]
}
]
}
}
3