Creates a new order.
Arguments
input
The details of the orders to create.
Return type
Createoffers Not Shippable
List of offers not shippable
orders
List of orders
Mutation sample
mutation batchCreateOrders($input: CreateOrdersInput!) {
batchCreateOrders(input: $input) {
offersNotShippable {
__typename
# ...CreateOrdersOfferNotShippableFragment
}
orders {
__typename
# ...OrderFragment
}
}
}
Variables
{ "input": { "channelCode": "Example String", "commercialId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "customer": { "__typename": "OrdersCustomerInput" }, "customerDirectlyPaysSeller": true, "invoiceDetails": { "__typename": "OrderInvoiceInput" }, "offers": [ { "__typename": "OrderOfferInput" } ], "orderAdditionalFields": [ { "__typename": "AdditionalFieldValueInput" } ], "orderTaxMode": "Example String", "paymentDuration": 40, "paymentInfo": { "__typename": "OrderPaymentInfoInput" }, "paymentWorkflow": "Example String", "promotion": { "__typename": "OrderPromotionInput" }, "references": { "__typename": "OrderReferencesInput" }, "scored": true, "shippingZoneCode": "Example String" } }
Response sample
{ "data": { "offersNotShippable": [ { "__typename": "CreateOrdersOfferNotShippable" } ], "orders": [ { "__typename": "Order" } ] } }
Validate the receipt of an order
Arguments
input
The details of the order to receive.
Return type
Receiveorder
The received order
Mutation sample
mutation receiveOrder($input: ReceiveOrderInput!) {
receiveOrder(input: $input) {
order {
__typename
# ...OrderFragment
}
}
}
Variables
{ "input": { "id": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4" } }
Response sample
{ "data": { "order": { "__typename": "Order" } } }
Update an order
Arguments
input
The details of the order to update.
Return type
Patchupdated Orders
A list of updated orders and orders in error objects
Mutation sample
mutation batchPatchOrders($input: PatchOrdersInput) {
batchPatchOrders(input: $input) {
updatedOrders {
__typename
# ...PatchOrdersUpdatedOrderFragment
}
}
}
Variables
{ "input": { "orders": [ { "__typename": "PatchOrderInput" } ] } }
Response sample
{ "data": { "updatedOrders": [ { "__typename": "PatchOrdersUpdatedOrder" } ] } }
Cancel an order line
Arguments
input
The details of the order lines to cancel.
Return type
Cancelcancelled Order Lines
tax Mode
Mutation sample
mutation batchCancelOrderLines($input: CancelOrderLinesInput!) {
batchCancelOrderLines(input: $input) {
cancelledOrderLines {
__typename
# ...CancelledOrderLineFragment
}
taxMode
}
}
Variables
{ "input": { "cancelations": [ { "__typename": "CancelOrderLineInput" } ], "taxMode": "Example String" } }
Response sample
{ "data": { "cancelledOrderLines": [ { "__typename": "CancelledOrderLine" } ], "taxMode": "Example String" } }
Create a new thread on a given order.
Arguments
order Id
input
Return type
Createthread
The created thread.
Mutation sample
mutation createThreadOnOrder($orderId: ID!, $input: CreateThreadInput!) {
createThreadOnOrder(orderId: $orderId, input: $input) {
thread {
__typename
# ...ThreadFragment
}
}
}
Variables
{ "orderId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "input": { "attachments": [ { "__typename": "AttachmentInput" } ], "threadInput": { "__typename": "ThreadDetailsInput" } } }
Response sample
{ "data": { "thread": { "__typename": "Thread" } } }
Reply to a given thread.
Arguments
thread Id
input
Return type
Replythread
The updated thread.
Mutation sample
mutation replyToThread($threadId: ID!, $input: ReplyToThreadInput!) {
replyToThread(threadId: $threadId, input: $input) {
thread {
__typename
# ...ThreadFragment
}
}
}
Variables
{ "threadId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "input": { "attachments": [ { "__typename": "AttachmentInput" } ], "body": "Example String", "to": [ { "__typename": "RecipientInput" } ], "topic": { "__typename": "TopicInput" } } }
Response sample
{ "data": { "thread": { "__typename": "Thread" } } }
Open incident for an order line
Arguments
input
Return type
Openorder
Mutation sample
mutation openIncident($input: OpenIncidentInput) {
openIncident(input: $input) {
order {
__typename
# ...OrderFragment
}
}
}
Variables
{ "input": { "orderId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "orderLineId": "Example String", "reasonCode": "Example String" } }
Response sample
{ "data": { "order": { "__typename": "Order" } } }
Close incident for an order line
Arguments
input
Return type
Closeorder
Mutation sample
mutation closeIncident($input: CloseIncidentInput) {
closeIncident(input: $input) {
order {
__typename
# ...OrderFragment
}
}
}
Variables
{ "input": { "orderId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "orderLineId": "Example String", "reasonCode": "Example String" } }
Response sample
{ "data": { "order": { "__typename": "Order" } } }
Evaluate an order
Arguments
order Id
input
Return type
Evaluationassessments
List of assessments
comment
Evaluation comment
customer
Customer who posted the evaluation
date
Evaluation creation date
grade
Evaluation grade
reply
Reply of a shop or operator on an evaluation
Mutation sample
mutation evaluateOrder($orderId: ID!, $input: EvaluationInput!) {
evaluateOrder(orderId: $orderId, input: $input) {
assessments {
__typename
# ...AssessmentFragment
}
comment
customer {
__typename
# ...ReviewCustomerFragment
}
date
grade
reply {
__typename
# ...EvaluationReplyFragment
}
}
}
Variables
{ "orderId": "9cfb1c81-4c79-452f-b1f5-8ee6571276b4", "input": { "assessments": [ { "__typename": "AssessmentInput" } ], "comment": "Example String", "grade": "Example Custom Scalar", "visible": true } }
Response sample
{ "data": { "assessments": [ { "__typename": "Assessment" } ], "comment": "Example String", "customer": { "__typename": "ReviewCustomer" }, "date": "Example Custom Scalar", "grade": "Example Custom Scalar", "reply": { "__typename": "EvaluationReply" } } }