Skip to main content
PATCH
/
declaration-templates
/
{id}
Update declaration template
curl --request PATCH \
  --url https://sandbox-api.easecustoms.com/declaration-templates/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "declarationOffice": "<string>",
  "incoterm": "<string>"
}
'
{
  "id": 152,
  "declarationOffice": "NL000432",
  "incoterm": "FOB",
  "updatedAt": "2026-06-22T10:05:00.000Z"
}
Update template fields. Only fields provided in the body will be changed.

Path Parameters

id
number
required
The unique template ID.

Request Payload

declarationOffice
string
Updated customs office code.
incoterm
string
Updated Incoterm code. Allowed values: EXW, FCA, FAS, FOB, CFR, CIF, CPT, CIP, DAP, DPU, DDP, XXX.
JSON Payload
{
  "declarationOffice": "NL000432",
  "incoterm": "FOB"
}
{
  "id": 152,
  "declarationOffice": "NL000432",
  "incoterm": "FOB",
  "updatedAt": "2026-06-22T10:05:00.000Z"
}