Skip to main content
POST
/
declaration-templates
/
groups
Create template group
curl --request POST \
  --url https://sandbox-api.easecustoms.com/declaration-templates/groups \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "code": "<string>",
  "isDefault": true,
  "companyId": 123,
  "DeclarationTemplates": [
    {}
  ]
}
'
{
  "id": 101,
  "name": "Standard Import Templates",
  "code": "STD_IMP_GRP",
  "isDefault": true,
  "createdAt": "2026-06-22T10:00:00.000Z"
}
Create a new template group that bundles multiple templates together.

Request Payload

name
string
required
Name of the template group.
code
string
required
Unique short code identifying this template group.
isDefault
boolean
default:"false"
Whether this group is applied by default to new shipments.
companyId
integer
required
The ID of the company this group belongs to.
DeclarationTemplates
array
List of declaration templates to bundle inside this group.
JSON Payload
{
  "name": "Standard Import Templates",
  "code": "STD_IMP_GRP",
  "isDefault": true,
  "companyId": 12,
  "DeclarationTemplates": [
    {
      "procedureType": "IMPORT",
      "declarationOffice": "NL000850"
    }
  ]
}
{
  "id": 101,
  "name": "Standard Import Templates",
  "code": "STD_IMP_GRP",
  "isDefault": true,
  "createdAt": "2026-06-22T10:00:00.000Z"
}