Skip to Content
API ReferenceClose Day

Close Day

Generate a closing shipping list (bordero) for a group of shipments under the same contract. Returns a bordero ID and a base64-encoded PDF report.

POST /shippinglist/create

Request

Headers

HeaderValue
AuthorizationBearer <your_api_token>
Content-Typeapplication/json

Body Parameters

FieldTypeRequiredDescription
shipment_idsnumber[]YesArray of shipment IDs to include in the closing list
contract_codestringYesContract code for the shipments (e.g. brt-Test)

Example

{ "shipment_ids": [7, 8, 9], "contract_code": "brt-Test" }

Response Fields

FieldTypeDescription
borderonumberBordero (shipping list) ID
pdfstringBase64-encoded PDF of the shipping list

Decoding the PDF

const fs = require('fs') const pdfBuffer = Buffer.from(response.pdf, 'base64') fs.writeFileSync('bordero.pdf', pdfBuffer)

All shipment_ids must belong to the same contract_code. Run this once per day per contract to finalise daily shipments with the carrier.

Error Codes

CodeDescription
200OK — bordero generated
Last updated on