checkoutLineDelete Mutation
Deletes a CheckoutLine.
Arguments
#
Response
#
Returns CheckoutLineDelete .
Example
#
mutation ($checkoutId: ID!, $lineId: ID) {
checkoutLineDelete(checkoutId: $checkoutId, lineId: $lineId) {
checkout {
created
lastChange
quantity
note
currency
discountName
translatedDiscountName
voucherCode
poNumbers
id
email
isShippingRequired
token
discountType
}
checkoutErrors {
field
message
code
variants
}
}
}
3
{
"checkoutId": "Y2hlY2tvdXRJZDo4MA==",
"lineId": "bGluZUlkOjgw"
}
3
{
"checkoutLineDelete": {
"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": "aWQ6NjQ=",
"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": [
"dmFyaWFudHM6Mw=="
]
}
]
}
}
3