Skip to main content
PATCH
/
v1
/
declarations
/
{id}
Fix an export declaration
curl --request PATCH \
  --url https://sandbox-api.easecustoms.com/v1/declarations/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "exporter": {},
  "DeclarationItems": [
    {}
  ]
}
'
{
  "declarationId": 43,
  "status": "processing"
}
Update fields on a declaration that has validation errors (status: invalid). Only declarations in processing, invalid, or ready status can be patched.

Path Parameters

id
number
required
The unique declaration ID.

Request Payload

exporter
object
Updated exporter details.
DeclarationItems
array
Updated declaration items.
JSON Payload
{
  "exporter": {
    "name": "EZC B.V. (Updated Name)"
  },
  "DeclarationItems": [
    {
      "itemId": 8,
      "netPrice": 9800
    }
  ]
}
{
  "declarationId": 43,
  "status": "processing"
}