Hi all,
I am trying to create a draft order that is due in 30 days.
With the following request/data:
mutation CreateOrder($input: DraftOrderInput!) {
draftOrderCreate(input: $input) {
draftOrder {
id
}
userErrors {
field
message
}
}
}
-------------------------------
{
input: {
customerId,
lineItems: [ { variantId, quantity: 1 } ],
paymentTerms: {
paymentSchedules: {
dueAt: "2022-04-23T00:00:00Z"
}
}
}
}
I get the following error:
{“draftOrderCreate”:{“draftOrder”:null,“userErrors”:[{“field”:null,“message”:“Payment terms template id can not be empty.”}]}}
Anyone have an idea how to either create these templates or else otherwise create a net-30 order using the API?
Thanks,
Brendan