Hi @Liam-Shopify I’ve now tested this using companyLocationUpdate
and still get the exact same problem.
Please can this be looked at ASAP as this means its impossible to set payment terms via the API.
Variables:
{
"companyLocationId": "gid://shopify/CompanyLocation/79568109952",
"input": {
"buyerExperienceConfiguration": {
"paymentTermsTemplateId": "gid://shopify/PaymentTermsTemplate/7"
}
}
}
------------------------------------------------------------
Response:
{
"data":{
"companyLocationUpdate":{
"userErrors":[
{
"field":[
"input",
"buyerExperienceConfiguration",
"paymentTermsTemplateId"
],
"message":"Payment terms template is invalid"
}
]
}
},
"extensions":{
"cost":{
"requestedQueryCost":10,
"actualQueryCost":10,
"throttleStatus":{
"maximumAvailable":2000.0,
"currentlyAvailable":1990,
"restoreRate":100.0
}
}
}
}
I have ran the following in the GraphiQL app and can confirm the gid
does exist:
Query:
{
paymentTermsTemplates {
id
name
}
}
------------------------------------------------------------
Response:
{
"data": {
"paymentTermsTemplates": [
{
"id": "gid://shopify/PaymentTermsTemplate/1",
"name": "Due on receipt"
},
{
"id": "gid://shopify/PaymentTermsTemplate/9",
"name": "Due on fulfillment"
},
{
"id": "gid://shopify/PaymentTermsTemplate/2",
"name": "Net 7"
},
{
"id": "gid://shopify/PaymentTermsTemplate/3",
"name": "Net 15"
},
{
"id": "gid://shopify/PaymentTermsTemplate/4",
"name": "Net 30"
},
{
"id": "gid://shopify/PaymentTermsTemplate/8",
"name": "Net 45"
},
{
"id": "gid://shopify/PaymentTermsTemplate/5",
"name": "Net 60"
},
{
"id": "gid://shopify/PaymentTermsTemplate/6",
"name": "Net 90"
},
{
"id": "gid://shopify/PaymentTermsTemplate/7",
"name": "Fixed"
}
]
},
"extensions": {
"cost": {
"requestedQueryCost": 1,
"actualQueryCost": 1,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1999,
"restoreRate": 100
}
}
}
}
Also, the payment terms template I’m trying to set is ‘Fixed’, and this isn’t even an option in the UI. So is there something up with the ‘Fixed’ option?