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

Instabee API

Create Return

This endpoint creates a locker return order. Locker Return supports four usage modes — make sure you have aligned with your Implementation Manager on which to use and what parcel sizes apply:

  • Standalone return, labelless — Recommended. The consumer drops off without attaching a label, providing a smoother experience.
  • Standalone return, with label — The consumer attaches a label to the parcel before dropping off.
  • Associated return, labelless — Linked to an outbound parcel via associatedParcelId. The return cannot be activated until the outbound parcel has been delivered.
  • Associated return, with label — Same as above, but with a label.

Use isLabelless: true for the labelless variants. For associated returns, include the associatedParcelId of the original outbound parcel. Parcel dimensions are required for all return orders.

API Endpoint

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

Integration Levels

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

  • Minimum: Basic confirmation with essential parcel details
  • Maximum: Complete order details with final dimensions and product information

Request Body

ParameterTypeRequiredDescriptionConstraintsComment
brandstringoptionalDefine brand of the delivery options.instabox or budbee
productstringrequiredDefine the product of the delivery optionsMust be oneLOCKER_RETURN
availabilityTokenstringoptionalAvailability token from availability responseCan be optional if agreed with your Implementation Manager
parcelIdstringoptionalUnique identifier/barcode for parcelAuto-generated if omitted
merchantBrandIdstringoptionalMerchant brand identifierThis is a feature to use multiple brands without using multiple credentials. Needs to be configured if used. Talk to your Implementation Manager
communicationNamestringoptionalCommunication name overrideNote! This will only change the name in Instabee communication such as notifications, SMS or email. Will not change partner name in our partner portal nor change any specs on invoices
senderobjectrequiredSender (consumer) information object
recipientobjectoptionalRecipient (merchant) information object. Will default to configuration
deliveryOptionobjectrequired*The selected locker from for drop off.
dispatchobjectoptionalReturn warehouse information
cartobjectrequired*Parcel and/or product details. Size of parcel is required for returns

sender

ParameterTypeRequiredDescriptionConstraintsComment
namestringrequiredRecipient name
emailstringrequiredRecipient email addressValid email formatUsed for delivery notifications
phonestringrequiredRecipient phone numberMin: 6 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 2e.g., "SE", "DK", "NO"
coordinatesobjectoptionalGPS coordinatesFor precise location

recipient

ParameterTypeRequiredDescriptionConstraintsComment
namestringrequiredRecipient name
emailstringrequiredRecipient email addressValid email formatUsed for delivery notifications
phonestringrequiredRecipient phone numberMin: 6 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 2e.g., "SE", "DK", "NO"
coordinatesobjectoptionalGPS coordinatesFor precise location

deliveryOption

ParameterTypeRequiredDescriptionComment
sort_codestringrequiredSort code for the dropoff lockerIdentifies specific locker or specific home delivery time

dispatch

ParameterTypeRequiredDescriptionComment
returnPointIdstringoptionalNot yet implemented. Return address point IDFor failed deliveries

cart

ParameterTypeRequiredDescriptionComment
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
totalWeightGramnumberoptionalTotal weight in gramsThis helps us with claims process
parcelobjectoptionalParcel dimensions and contentsDetailed parcel information

cart.parcel

ParameterTypeRequiredDescriptionConstraintsComment
heightMmnumberrequiredParcel height in mm
widthMmnumberrequiredParcel width in mm
lengthMmnumberrequiredParcel length in mm
volumeDm3numberoptionalParcel volume in dm³If you do not have this data, do not send anything
estimatedSizestringoptionalEstimated size category"small", "large"
weightGramnumberoptionalParcel weight in grams
typestringoptionalParcel type"box", "envelope", "bag"
productsarrayoptionalArray of products in parcelDetailed product information

cart.parcel.products[]

ParameterTypeRequiredDescription
namestringoptionalProduct name
quantitynumberoptionalQuantity of this product
productIdstringoptionalYour product identifier
detailsobjectoptionalDetailed product information

cart.parcel.products[].details

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

cart.parcel.products[].details.price

ParameterTypeRequiredDescriptionConstraintsComment
priceInCentsnumberoptionalPrice in cents
taxRateInCentsnumberoptionalTax amount in cents
discountRateInCentsnumberoptionalDiscount amount in cents
currencystringoptionalCurrency codeISO 4217e.g., "SEK"

cart.parcel.products[].details.temperature

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

cart.parcel.products[]

ParameterTypeRequiredDescription
packagesarrayoptionalPhysical package information

cart.parcel.products[].packages[]

ParameterTypeRequiredDescriptionComment
widthMmnumberoptionalPackage width in mmIf you do not have this data, do not send anything
heightMmnumberoptionalPackage height in mmIf you do not have this data, do not send anything
lengthMmnumberoptionalPackage length in mmIf you do not have this data, do not send anything
weightMmnumberoptionalPackage weightIf you do not have this data, do not send anything
volumeDm3numberoptionalPackage volume in mm³If you do not have this data, do not send anything
barcodesarrayoptionalBarcode informationIf you do not have this data, do not send anything

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

ParameterTypeRequiredDescriptionConstraints
codestringoptionalBarcode value
typestringoptionalBarcode type"ean13", etc.

Response

The API returns an updated parcel object with:

FieldTypeDescription
parcelIdstringThe Instabee parcel ID
statusstringUpdated status (e.g., "PENDING_PACKING" or "FINALIZED")

links (object)

FieldTypeDescription
labelstringURL to download the shipping label
trackingstringURL to track the parcel

label URL parameters

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

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

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...