This documentation is in beta, and might contain errors. Contact us at integration@instabee.com with any questions.

Instabee API

Post Packing Flow

The Post Packing flow confirms that the parcel is physically packed and ready for pickup. For Locker Light, you have two options at this stage:

  • Option 1 — Use our label: Create the order using the special sortCode from the availability response. We will return a label URL with the correct sort code already printed.
  • Option 2 — Use your own label: Before calling Post Packing, call the Resolve sortCode endpoint first. This returns the real sortCode representing the actual delivery locker. Use this on both your label and in the Post Packing request.

Create Order API (Post Packing)

API Endpoint

EndpointMethodContent-Type
api.integration.instabee.com/orders (production) · sandbox-api.integration.instabee.com/orders (sandbox)PUTapplication/json

When to Use

Call this endpoint after parcel is packed and ready for pickup

Integration Levels

Merchants can send information in different steps depending on their workflow:

  • Bare Minimum: If everything was sent in Post Purchase, just confirm packing
  • Minimum: Basic confirmation with essential parcel details
  • Maximum: Complete order details with final dimensions and product information

Request Body

ParameterTypeRequiredDescriptionConstraintsEnumComment
parcelPackingConfirmedbooleanrequiredConfirm parcel is packed and ready for pickupCan be set to false, and order can be updated unlimited amount of times. If omitted then we will default to packing confirmed if we have a post purchase order.
brandstringoptionalDefine brand of the delivery options.instabox or budbee
productstringrequiredDefine the product of the delivery optionsMust be oneLOCKER_AREA
availabilityTokenstringrequiredAvailability token from availability responseCan be optional if agreed with your Implementation Manager
orderIdstringoptionalUnique order reference for subsequent calls. This is returned in the post purchase response
parcelIdstringoptionalUnique identifier/barcode for parcelAuto-generated if omitted
communicationNamestringoptionalCommunication name overrideNote! This will only change the name in Instabee communication such as notifications, SMS or email for locker deliveries. Will not change partner name in our partner portal nor change any specs on invoices
recipientobjectrequiredRecipient information object
dispatchobjectoptionalDispatch readiness and warehouse
additionalServicesobjectoptionalAdditional services
cartobjectoptionalParcel and/or product details

recipient

ParameterTypeRequiredDescriptionConstraintsEnumComment
namestringrequiredRecipient name
emailstringrequiredRecipient email addressValid email formatUsed for delivery notifications
phonestringrequiredRecipient phone numberBox: Min 6 digits, Home delivery: Min 10 digits, Max 15 digitsCan be made optional with setting
ssnstringoptionalSocial security numberFor age verification services
streetstringrequiredRecipient street address
street2stringoptionalAdditional address informationFloor, apartment, etc.
postalCodestringrequiredRecipient postal code
citystringrequiredRecipient city
countryCodestringrequiredRecipient country codeISO 3166 alpha 2BE, DK, FI, NL, NO, SE
coordinatesobjectoptionalGPS coordinatesFor precise location

sortCode

ParameterTypeRequiredDescriptionEnumComment
sortCodestringrequiredTemporary sort code received from the Availability API. Send at the top level of the request body — do not wrap in a deliveryOption object.Must be sent exactly as received, do not truncate

dispatch

ParameterTypeRequiredDescriptionConstraintsEnumComment
readyToShipstringoptionalWhen parcel is ready for pickupISO-8601 datetimeOnly one of readyToShip/readyToPack/outOfStock
readyToPackstringoptionalWhen packing process will startISO-8601 datetimeInstabee adds packing time to this
outOfStockbooleanoptionalProduct is out of stocktrue/falseRemoves ETA from delivery options
collectionPointIdstringoptionalSpecific warehouse/pickup pointConfigured by Instabee
returnPointIdstringoptionalNot yet implemented. Return address point IDFor failed deliveries

additionalServices

ParameterTypeRequiredDescriptionEnum
identificationobjectoptionalIdentity verification requirements

additionalServices.identification

ParameterTypeRequiredDescriptionConstraintsEnumComment
typestringrequired*Type of verificationAGE_LIMIT, AGE_LIMIT_AT_HANDOVER, AGE_LIMIT_BY_MERCHANT_AT_HANDOVER, ALREADY_IDENTIFIED, ANY_PERSON, FRAUD_DETECTION, SPECIFIC_PERSON, SPECIFIC_PERSON_AT_HANDOVERRequired when the identification object is sent
ageLimitnumberoptionalMinimum age requiredMin: 0, Max: 20Used with AGE_LIMIT types
ssnstringoptionalRequired SSN for verification
namestringoptionalRequired name for verification
type explanations
TypeDescription
AGE_LIMITVerify the consumer age. This verification will be triggered when the parcel is created. Only live with Swedish BankID
AGE_LIMIT_AT_HANDOVERVerify the consumer age when they pickup the parcel (at handover). Only live with Swedish BankID
SPECIFIC_PERSONVerify the consumer identify by matching SSN sent on the order with the SSN from the verification. Only live with Swedish BankID
SPECIFIC_PERSON_AT_HANDOVERVerify the consumer identify by matching SSN sent on the order with the SSN from the verification when they pickup the parcel (at handover). Only live with Swedish BankID
ANY_PERSONVerify the consumer identify by matching doing a BankID or NemID verification. Currently live in Sweden, Denmark and Norway
AGE_LIMIT_BY_MERCHANT_AT_HANDOVERAccepted by the API. Contact your Instabee representative before using it
ALREADY_IDENTIFIEDAccepted by the API. Contact your Instabee representative before using it
FRAUD_DETECTIONAccepted by the API. Contact your Instabee representative before using it

cart

ParameterTypeRequiredDescriptionEnumComment
checkoutIdstringoptionalCheckout session IDUsed as a link in Instabee system
orderNumberstringrequired*Your order numberUsed as a link in Instabee system
totalValueInCentsnumberoptionalTotal order value in centsThis helps us with claims process
totalWeightInGramsnumberoptionalTotal weight in gramsThis helps us with claims process
parcelobjectoptionalParcel dimensions and contentsDetailed parcel information

cart.parcel

ParameterTypeRequiredDescriptionEnumComment
heightMmnumberoptionalParcel height in mmIf you do not have this data, do not send anything
widthMmnumberoptionalParcel width in mmIf you do not have this data, do not send anything
lengthMmnumberoptionalParcel length in mmIf you do not have this data, do not send anything
volumeDm3numberoptionalParcel volume in dm³If you do not have this data, do not send anything
estimatedSizestringoptionalEstimated size of the parcel. The sizes will be configured together with InstabeeSMALL, LARGE, TOOLARGE
weightGramnumberoptionalParcel weight in grams
typestringoptionalParcel typeBOX, BAG
productsarrayoptionalArray of products in parcelDetailed product information

cart.parcel.products[]

ParameterTypeRequiredDescriptionEnumComment
namestringoptionalProduct name
quantitystringoptionalQuantity of this productSent as a string, not a number
productIdstringoptionalYour product identifier
detailsobjectoptionalDetailed product information
temperatureobjectoptionalTemperature requirements for the product
packagesarrayoptionalPhysical packages the product is shipped in

cart.parcel.products[].details

ParameterTypeRequiredDescriptionConstraintsEnum
productTypestringoptionalType of producte.g., "Prescription"
imgUrlstringoptionalProduct image URL
categorystringoptionalProduct category
brandstringoptionalProduct brand
descriptionstringoptionalProduct description
priceobjectoptionalPrice information

cart.parcel.products[].details.price

ParameterTypeRequiredDescriptionConstraintsEnumComment
priceInCentsnumberoptionalPrice in cents
taxValueInCentsnumberoptionalTax amount in cents
discountRateInCentsnumberoptionalDiscount amount in cents
currencystringoptionalCurrency codeISO 4217e.g., "SEK"

cart.parcel.products[].temperature

ParameterTypeRequiredDescriptionEnum
minnumberoptionalMinimum 8. Temperature in Celsius
maxnumberoptionalMaximum 15. Temperature in Celsius

cart.parcel.products[].packages[]

ParameterTypeRequiredDescriptionEnumComment
widthMmstringoptionalPackage width in mmIf you do not have this data, do not send anything
heightMmstringoptionalPackage height in mmIf you do not have this data, do not send anything
lengthMmstringoptionalPackage length in mmIf you do not have this data, do not send anything
weightGramstringoptionalPackage weight in gramsIf you do not have this data, do not send anything
volumeDm3stringoptionalPackage volume in dm³ (liters)If you do not have this data, do not send anything
barcodesobjectoptionalBarcode object for the packageSingle object, not an array

cart.parcel.products[].packages[].barcodes

ParameterTypeRequiredDescriptionEnum
codestringoptionalBarcode value
typestringoptionalThe barcode typeEAN13

Response

The API returns an updated parcel object with:

FieldTypeDescription
orderIdstringThe Instabee order ID
parcelIdstringThe parcel ID
statestringUpdated status ("FINALIZED" after packing confirmation)
attributesobjectAdditional attributes including the resolved label code

links (object)

FieldTypeDescription
labelstringURL to download the shipping label (contains the correct sort code)
trackingstringPreliminary tracking URL — see the note below

Preliminary tracking link: links.tracking in this response is preliminary. It is generated before the parcel exists in our tracking system, so it does not resolve yet — opening it gives a broken link. Retrieve the working link with Get Tracking or Fetch Order once the parcel has been registered.

Separate senderTracking and recipientTracking links are not returned here. They only exist for LOCKER_TO_LOCKER (Consumer to Consumer) parcels — see Fetch Tracking Links.

label URL parameters

The label URL supports optional query parameters to customize the output:

ParamTypeDefaultOptionsDescription
fileFormatstringpdfpng, zpl, pdfOutput file format
encodingstringbase64Return label as base64-encoded string
templatestringa6a6, a7Label paper size
dpiinteger96Resolution in dots per inch
debugbooleanfalsetrue, falseEnable debug mode

attributes (object)

FieldTypeDescription
labelCodestringThe resolved label code (e.g., "IN30")

Best Practices

  1. Accurate Measurements: Always provide accurate dimensions and weight
  2. Prompt Confirmation: Confirm packing as soon as possible after physical packing
  3. Error Handling: Implement proper error handling for failed confirmations
  4. Label Management: Download and store shipping labels immediately
  5. Status Tracking: Monitor the parcel status via the Instabee API or dashboard

Size Limitations

Each delivery method has maximum size and weight limitations:

Delivery TypeMax Length (cm)Max Width (cm)Max Height (cm)Max Weight (kg)
Locker - Small39395920

Exceeding these limitations may result in additional charges or delivery refusal.

Command Palette

Search for a command to run...