发送变更
一旦您拥有所需的输入数据,请使用您选择的客户端库或工具将GraphQL变更发送到API端点。以下是您可以如何构建变更的示例:
当您基于landed cost 报价创建订单时,请使用此变更。
变更
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mutation {
orderCreate(
input: {
accountOrderNumber: "12343244"
billTo: "party_00e63a9e-9735-44d9-b129-3b3e76c5df25"
currencyCode: USD
grandTotal: 2346.12
landedCostId: "landed_cost_32e7f442-8e82-47b3-957a-096088b14e7b"
}
) {
id
organization
landedCosts {
id
}
}
}
响应
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"data": {
"orderCreate": {
"id": "order_ec7084f6-0778-47ce-b848-3ba57af9684d",
"organization": "organization_dbb64939-12d7-4f12-98ea-7ae5b21acfd0",
"landedCosts": [
{
"id": "landed_cost_32e7f442-8e82-47b3-957a-096088b14e7b"
}
]
}
}
}
创建订单
了解如何从landed cost 报价创建订单。GraphQL
一旦您创建或计算了一个
landedCost
,您必须使用orderCreate
变更将您收到的landedCost
报价与订单关联,这将启用我们的Landed Cost 保证。创建订单后,将收Zonos 费用。