univoozAPI
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:

FieldReason
branchIt controls the destination. A different branch is a different delivery.
zoneCodeIt also controls the destination.
customerIt is the identity, and it contains the delivery address.
externalOrderIdIt 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"
  }
}

On this page