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

Instabee API

Create Return

Create a home return order once the postal code has been validated. The consumer's address is the sender in this flow — Instabee will pick up from their home and return the parcel to the merchant. After the order is created, the consumer will receive communication from Instabee and can book a pickup time that suits them.

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 at different levels depending on their workflow:

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

Key Benefits

  1. Pickup Scheduling: Triggers pickup scheduling and route optimization
  2. Label Generation: Provides shipping labels for the return parcels
  3. Consumer Convenience: Enables home pickup for hassle-free returns
  4. Status Updates: Updates tracking status for consumers and merchants

Integration Workflow

  1. Validate Postal Code: Check if home return is available for the consumer's postal code
  2. Create Return: Register the return order with this API
  3. Label Download: Download shipping labels from the response
  4. Consumer Books Pickup: The consumer receives communication from Instabee and selects a pickup time via the Instabee app

Next Steps


Create Order API (Create Return)

The Create Return API is used to register a home return parcel. The consumer's address is provided as the sender, and the parcel will be picked up from there.

This endpoint should be called when:

  1. A consumer has requested a home return pickup
  2. You have the consumer's full address details

Request Body

ParameterTypeRequiredDescriptionConstraintsEnumComment
parcelPackingConfirmedbooleanrequiredConfirm parcel is packed and ready for pickupmust be trueOrder is created and confirmed in a single call
brandstringoptionalDefine brand of the delivery optionsinstabox or budbee
productstringrequiredDefine the product of the delivery optionsMust be oneHOME_RETURN
countryCodestringrequired*Sender (consumer) country code. Can be sent in query paramISO 3166 alpha 2DK, FI, NO, SE
availabilityTokenstringoptionalAvailability token from availability response
orderIdstringoptionalUnique order reference for subsequent calls
parcelIdstringoptionalUnique identifier/barcode for parcelAuto-generated if omitted
senderobjectrequiredConsumer/sender information object — the pickup address
recipientobjectoptionalMerchant/recipient information object
dispatchobjectoptionalDispatch readiness and warehouse
optionsobjectoptionalResponse options / language
deliveryInstructionsobjectoptionalDelivery instruction details
additionalServicesobjectoptionalAdditional services
cartobjectoptionalParcel and/or product details

sender

ParameterTypeRequiredDescriptionConstraintsEnumComment
namestringrequiredConsumer name
emailstringrequiredConsumer email addressValid email formatUsed for pickup notifications
phonestringrequiredConsumer phone numberBox: Min 6 digits, Home delivery: Min 10 digits, Max 15 digitsCan be made optional with setting
ssnstringoptionalSocial security numberFor age verification services
streetstringrequiredConsumer street address
street2stringoptionalAdditional address informationFloor, apartment, etc.
postalCodestringrequiredConsumer postal code
citystringrequiredConsumer city
countryCodestringrequiredSender (consumer) country codeISO 3166 alpha 2DK, FI, NO, SE
coordinatesobjectoptionalGPS coordinatesFor precise location

sender.coordinates

ParameterTypeRequiredDescriptionEnum
latnumberoptionalLatitude
lonnumberoptionalLongitude

recipient

ParameterTypeRequiredDescriptionConstraintsEnumComment
namestringoptionalMerchant/recipient name
emailstringoptionalRecipient email addressValid email format
phonestringoptionalRecipient phone numberBox: Min 6 digits, Home delivery: Min 10 digits, Max 15 digits
streetstringoptionalRecipient street address
street2stringoptionalAdditional recipient address info
postalCodestringoptionalRecipient postal code
citystringoptionalRecipient city
countryCodestringoptionalRecipient (merchant) country codeISO 3166 alpha 2BE, DE, DK, FI, NL, NO, PL, SEDE and PL are merchant address countries only, not delivery markets
coordinatesobjectoptionalRecipient GPS coordinates

recipient.coordinates

ParameterTypeRequiredDescriptionEnum
latnumberoptionalLatitude
lonnumberoptionalLongitude

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
packingTimenumberoptionalRequired packing time in minutes
collectionPointIdstringoptionalSpecific warehouse/pickup pointConfigured by Instabee
returnPointIdstringoptionalReturn address point IDFor failed deliveries

options

ParameterTypeRequiredDescriptionConstraintsEnumComment
languageCodestringoptionalLanguage for customer communicationsISO 639-1da, en, fi, nl, no, svDefaults to the main language of the countryCode
localEtasbooleanoptionalReturn local delivery termstrue/falseDifferent local terms for delivery promise
estimatedParcelTypebooleanoptionalReturn estimated parcel sizetrue/falseCalculated based on cart contents

deliveryInstructions

ParameterTypeRequiredDescriptionEnumComment
notifyBystringoptionalHow to notify consumerring_doorbell, knock_on_door
doorCodestringoptionalDoor or building access code
messagestringoptionalSpecial pickup instructionsFree text message
intercombooleanoptionalUse intercom if availabletrue/false

additionalServices

ParameterTypeRequiredDescriptionConstraintsEnumComment
identificationobjectoptionalIdentity verification requirements
leaveOutsideDoorbooleanoptionalAllow leaving the parcel outside the doortrue/falseDefault is true
leaveWithNeighbourbooleanoptionalAllow leaving the parcel with a neighbourtrue/falseDefault is false
numberOfMissRetriesnumberoptionalNumber of pickup retry attemptsMin: 1, Max: 5null = default. Extra cost applies

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

cart

ParameterTypeRequiredDescriptionConstraintsEnumComment
checkoutIdstringoptionalCheckout session IDOneOf this, orderNumber, or availabilityToken
orderNumberstringrequired*Your order numberOneOf this, checkoutId, or availabilityTokenUsed to link with your system
totalValueInCentsnumberoptionalTotal order value in centsUsed for insurance purposes
totalWeightInGramsnumberoptionalTotal weight in gramsFor logistics planning
parcelobjectoptionalParcel dimensions and contentsDetailed parcel information

cart.parcel

ParameterTypeRequiredDescriptionEnumComment
heightMmnumberoptionalParcel height in mm
widthMmnumberoptionalParcel width in mm
lengthMmnumberoptionalParcel length in mm
volumeDm3numberoptionalParcel volume in dm³
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 temperature in Celsius
maxnumberoptionalMaximum temperature in Celsius

cart.parcel.products[].packages[]

ParameterTypeRequiredDescriptionEnumComment
widthMmstringoptionalPackage width in mm
heightMmstringoptionalPackage height in mm
lengthMmstringoptionalPackage length in mm
weightGramstringoptionalPackage weight in grams
volumeDm3stringoptionalPackage volume in dm³ (liters)
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
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
encodingstringbase64Return 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 Registration: Create the return order as soon as the consumer requests it
  3. Error Handling: Implement proper error handling for failed requests
  4. Label Management: Download and provide shipping labels to the consumer 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)
Home Return120XX (max total 300cm girth)20

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

Command Palette

Search for a command to run...