Skip to Content
API ReferenceUpdate Stock

Update Stock

Update the action for a shipment that is currently locked in stock (e.g. failed delivery attempt). Choose between retrying delivery, delivering to a new address, or returning to sender.

POST /stock/update

Request

Headers

HeaderValue
AuthorizationBearer <your_api_token>
Content-Typeapplication/json

Body Parameters

FieldTypeRequiredDescription
ldvstringYesTracking number (LDV) of the shipment in stock
actionstringYesAction to take: "RETRY", "NEWADDRESS", or "RETURN"
scheduled_atstringYesScheduled date for the action (format: DD/MM/YYYY)
newaddressobjectConditionalNew delivery address — required when action is "NEWADDRESS"
notestringNoAdditional notes for the carrier

Actions

ValueDescription
RETRYRetry delivery to the original address
NEWADDRESSDeliver to a new address (requires newaddress object)
RETURNReturn the shipment to sender

New Address Object (required for NEWADDRESS)

FieldTypeRequiredDescription
namestringYesFull name
companystringNoCompany name
street1stringYesPrimary address line
street2stringNoSecondary address line
citystringYesCity
statestringYesState/Province code
postalCodestringYesPostal/ZIP code
countrystringYes2-letter ISO country code (e.g. IT)
phonenumberNoPhone number
emailstringYesEmail address
notesstringYesDelivery notes (e.g. floor, buzzer code)

Examples

{ "ldv": "281095I072409", "action": "NEWADDRESS", "scheduled_at": "26/06/2021", "newaddress": { "name": "Mario Rossi", "company": "", "street1": "Via Roma 2", "street2": "", "city": "Telese Terme", "state": "BN", "postalCode": "82037", "country": "IT", "phone": 333123456, "email": "email@example.com", "notes": "al piano 2" }, "note": "please call" }

Response

Returns 200 OK on success with no body.

The ldv (tracking number) can be retrieved from the trackingNumber field in the Create Shipping Label response.

Error Codes

CodeDescription
200OK — stock updated
Last updated on