Skip to main content
PATCH
/
v1
/
declarations
/
{id}
Fix an import declaration
curl --request PATCH \
  --url https://sandbox-api.easecustoms.com/v1/declarations/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "consignee": {},
  "DeclarationItems": [
    {}
  ]
}
'
{
  "declarationId": 42,
  "status": "processing"
}
Update fields on a declaration that has validation errors (status: invalid). Only declarations in processing, invalid, or ready status can be patched. All patch fields are optional — only send the fields you want to change. Declaration items are matched by itemId (from the GET status response) or by commodityCode (first match). After patching, the declaration is re-queued for validation; status returns to processing.

Path Parameters

id
number
required
The unique declaration ID.

Request Payload

consignee
object
Updated consignee details.
DeclarationItems
array
Updated declaration items. Match items by itemId to modify their details.
JSON Payload
{
  "consignee": {
    "name": "EZC B.V. (Updated Name)"
  },
  "DeclarationItems": [
    {
      "itemId": 7,
      "netPrice": 1900,
      "netWeight": 225
    }
  ]
}
{
  "declarationId": 42,
  "status": "processing"
}