Errors
field_not_amendable
That field controls routing or identity, so you cannot change it.
HTTP 422invalid_request_error
You can possibly change the order. You cannot change this field, at any status.
Why it happens
Univooz rejects four fields:
| Field | Reason |
|---|---|
branch | It controls the destination. A different branch is a different delivery. |
zoneCode | It also controls the destination. |
customer | It is the identity, and it contains the delivery address. |
externalOrderId | It is the protection against duplicate orders. |
The delivery address is part of customer. It is not a separate field. Univooz reports an
address change as customer.
You can change these fields: schedule, pickupInstructions, deliveryInstructions,
pickupContact, metadata, weight, numberOfPackages, orderAmount.
How to fix it
Cancel the order and create a new one. Send a new externalOrderId for the new order.
Example response
{
"error": {
"type": "invalid_request_error",
"code": "field_not_amendable",
"message": "The field 'branch' cannot be amended.",
"param": "branch",
"doc_url": "https://docs.univooz.com/errors/field_not_amendable",
"request_id": "req_01KZCCF8ZH4M7XQ2VB9RSTNPKD"
}
}