Skip to Content
API ReferenceRequest Pickup

Request Pickup

Schedule a carrier pickup at a given address. Returns a pickup ID confirming the booking with the carrier.

POST /pickup/create

Request

Headers

HeaderValue
AuthorizationBearer <your_api_token>
Content-Typeapplication/json

Body Parameters

FieldTypeRequiredDescription
contractCodestringYesContract code identifying the carrier service to use
carrierCodestringNoCarrier identifier (e.g. brt, ups)
shipmentIdstringNoShipment ID to associate with this pickup
pickupDatestringNoRequested pickup date (format: YYYY-MM-DD)
pickupTimestringNoRequested pickup time (format: HH:MM)
specialInstructionstringNoFree-text instructions for the carrier
cashOnDeliverystringNoCash on delivery amount
pickupPaymentTypestringNoPayment type for the pickup
serviceTypestringNoCarrier-specific service type
shipFromobjectNoAddress where the carrier should collect the packages
shipToobjectNoDestination address
senderobjectNoSender contact details (same fields as shipFrom)
receiverobjectNoReceiver contact details (same fields as shipFrom)
packagesDetailsobject[]YesList of packages to be collected

shipFrom / shipTo / sender / receiver Object

All address objects share the same fields:

FieldTypeRequiredDescription
namestringYesFull name
companystringNoCompany name
street1stringYesPrimary address line
street2stringNoSecondary address line
citystringYesCity
statestringNoState / province code (e.g. RM)
postalCodestringYesPostal / ZIP code
countrystringYes2-letter ISO country code (e.g. IT)
phonestringNoPhone number
emailstringNoEmail address

packagesDetails Object

FieldTypeRequiredDescription
weightstringYesPackage weight in kg (e.g. "2.5")
lengthintegerNoLength in cm
widthintegerNoWidth in cm
heightintegerNoHeight in cm
descriptionstringNoContents description
valuestringNoDeclared value

Example

{ "contractCode": "brt-Test", "pickupDate": "2025-07-01", "pickupTime": "10:00", "specialInstruction": "Ring the doorbell", "shipFrom": { "name": "Mario Rossi", "company": "Acme Srl", "street1": "Via Roma 1", "city": "Milano", "state": "MI", "postalCode": "20100", "country": "IT", "phone": "0212345678", "email": "mario@example.com" }, "packagesDetails": [ { "weight": "3.0", "length": 30, "width": 20, "height": 15, "description": "Electronics" } ] }

Response

{ "pickupId": "PKP123456" }
FieldTypeDescription
pickupIdstringCarrier-assigned pickup confirmation number

Error Codes

CodeDescription
200OK — pickup scheduled
400Bad request — invalid parameters or carrier error

The contractCode must match a contract associated with your account. Use the Get Shipping Rates endpoint to retrieve available contract codes.

Last updated on