Hello, we have connected to Shopify’s ERP. Now customers have reported that Shopify has added COD business (cash on delivery) to order creation. However, I cannot find the field information about COD in the Shopify platform interface document. We cannot modify the interface, which results in the inability to download COD orders. Can you provide the corresponding interface and COD field information or screenshots?
Hi baoxiang,
On the orderCreate mutation there is a field for transactions
which in turn has a field for gateway
, see below:
You can set this to “cash on delivery”, eg:
mutation CreateOrder {
orderCreate(
order: {
lineItems: [
{
quantity: 1,
title: "Sample Product",
priceSet: {
presentmentMoney: { amount: 100.0, currencyCode: EUR },
shopMoney: { amount: 100.0, currencyCode: EUR }
}
}
],
transactions: [
{
amountSet: {
presentmentMoney: { amount: 100.0, currencyCode: EUR },
shopMoney: { amount: 100.0, currencyCode: EUR }
},
kind: SALE,
gateway: "Cash on Delivery"
}
],
shippingAddress: {
firstName: "John",
lastName: "Doe",
address1: "123 Elm St",
city: "Springfield",
country: "US",
zip: "12345"
},
financialStatus: PENDING
}
) {
order {
id
name
}
userErrors {
field
message
}
}
}