Update Order
Query
mutation UpdateOrder($orderId: ID!, $input: OrderInput!) {
tenant {
updateOrder(orderId: $orderId, input: $input) {
id
amount
currency
status
tracking
shipping {
id
line_1
line_2
state
city
country
}
}
}
}
Variables
{
"orderId": 5,
"input": {
"currency": "BTC",
"email": "someone@example.com",
"status": "in_transit",
"shipping": {
"line_1": "Not Lucky street",
"line_2": "Imaginary building",
"state": "Fake state",
"city": "Fake city",
"country": "Singapore"
}
}
}
Response
{
"data": {
"tenant": {
"updateOrder": {
"amount": "3980",
"currency": "BTC",
"id": "5",
"shipping": {
"city": "Fake city",
"country": "Singapore",
"id": "5e8881fa-ad5b-4ab8-abdc-7670fe651f5f",
"line_1": "Not Lucky street",
"line_2": "Imaginary building",
"state": "Fake state"
},
"status": "in_transit",
"tracking": "ORD-9UZO7M5YY88J"
}
}
}
}
Last updated
Was this helpful?