Legacy Create Order
Deprecated
Use createOrder instead.
MUTATION
legacyCreateOrder(customerId: ID!): OrderArguments
customerId*ID!Returns
- legacyCreateOrder
A customer's order.
id*ID!status*OrderStatus!The status of an order.
Value in
PENDINGDELIVEREDREFUNDEDcreatedAt*DateTime!Time at which the order was created.
total*Float!customer*A registered customer.
Example Request
mutation LegacyCreateOrder($customerId: ID!) {
legacyCreateOrder(customerId: $customerId) {
id
status
createdAt
total
customer {
id
name
contact {
email
phone
}
orders {
id
status
createdAt
total
}
}
}
}{
"customerId": "1"
}{
"data": {
"legacyCreateOrder": {
"id": "1",
"status": "PENDING",
"createdAt": "<DateTime>",
"total": 10.5,
"customer": {
"id": "1",
"name": "string",
"contact": {
"email": "string",
"phone": "string"
},
"orders": [
{
"id": "1",
"status": "PENDING",
"createdAt": "<DateTime>",
"total": 10.5
}
]
}
}
}
}