Skip to main content

Set Mailbag Control ID

Assign a custom mailbag control ID to a parcel for external tracking and reconciliation purposes.

Endpoint

POST /v2/parcels/set-mailbagcontrolid

Request Body

FieldTypeRequiredConstraintsDescription
parcelIdlongYesUnique identifier of the parcel
mailbagControlIdstringYesNon-emptyCustom control ID string to assign to this parcel
{
"parcelId": 987654321,
"mailbagControlId": "ACME-2026050701"
}

Response

Returns a success boolean indicating the mailbag control ID was assigned.

{
"success": true,
"data": true
}

Code Examples

curl -X POST "https://rest.ecgrid.io/v2/parcels/set-mailbagcontrolid" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "parcelId": 987654321, "mailbagControlId": "ACME-2026050701" }'

See Also