I’m using the following input with companyCreate
but getting Percentage is invalid
, I don’t see how its wrong? What am I missing?
Input:
{
"input": {
"company": {
"name": "Example Company Ltd",
"externalId": "EX0001"
},
"companyLocation": {
"name": "Example Company Ltd HQ",
"shippingAddress": {
"address1": "123 Example Street",
"address2": "Suite 456",
"city": "Example City",
"countryCode": "GB",
"recipient": "John Doe",
"zip": "AB1 2CD"
},
"billingAddress": {
"address1": "123 Example Street",
"address2": "Suite 456",
"city": "Example City",
"countryCode": "GB",
"firstName": "Example Company Ltd",
"recipient": "John Doe",
"zip": "AB1 2CD"
},
"billingSameAsShipping": true,
"buyerExperienceConfiguration": {
"deposit": {
"percentage": 100
},
"editableShippingAddress": true
}
}
}
}
Response:
{
"data": {
"companyCreate": {
"company": null,
"userErrors": [
{
"field": [
"input",
"companyLocation",
"buyerExperienceConfiguration",
"deposit",
"percentage"
],
"message": "Percentage is invalid",
"code": "INVALID"
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 18,
"actualQueryCost": 10,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1990,
"restoreRate": 100
}
}
}
}
Mutation reference - companyCreate - GraphQL Admin