Skip to main content
POST
/
declaration-templates
Create declaration template
curl --request POST \
  --url https://sandbox-api.easecustoms.com/declaration-templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "declarationTemplateGroupId": 123,
  "procedureType": "<string>",
  "declarationOffice": "<string>",
  "representation": "<string>",
  "incoterm": "<string>"
}
'
{
  "id": 152,
  "declarationTemplateGroupId": 101,
  "procedureType": "IMPORT",
  "declarationOffice": "NL000850",
  "createdAt": "2026-06-22T10:00:00.000Z"
}
Create a new declaration template containing default customs field values.

Request Payload

declarationTemplateGroupId
integer
required
The ID of the template group this template belongs to.
procedureType
string
required
Default customs procedure code. Allowed values: H1, H2, H3, H4, H5, H6, H7, I1, I2, I2A, I2B, B1, B2, B3, B4, C1, C2, D1, D2, D3, D4.
declarationOffice
string
Default customs office code (e.g. NL000850).
representation
string
Default representation type. Allowed values: NoRepresentation, DirectRepresentation, IndirectRepresentation.
incoterm
string
Default Incoterm code. Allowed values: EXW, FCA, FAS, FOB, CFR, CIF, CPT, CIP, DAP, DPU, DDP, XXX.
JSON Payload
{
  "declarationTemplateGroupId": 101,
  "procedureType": "H1",
  "declarationOffice": "NL000850",
  "representation": "DirectRepresentation",
  "incoterm": "DDP",
  "incotermLocation": "Hoofddorp",
  "natureOfTransaction": "1",
  "methodOfPayment": "A"
}
{
  "id": 152,
  "declarationTemplateGroupId": 101,
  "procedureType": "IMPORT",
  "declarationOffice": "NL000850",
  "createdAt": "2026-06-22T10:00:00.000Z"
}