ReturnBookingRequest
Used by
Fields
quoteIdstringrequiredlength ≤ 100The return quote (POST /shipments/{id}/return-quotes) — its price is charged exactly.
selectedServiceTypestringrequiredlength ≤ 60payerstringone of: buyer · seller · platform · account
Who bears the return as you decide it: a platform names buyer (paid on the platform: platform.payment), seller (charged to the seller, settled by you: POST /shipments/{id}/return-charge/settle) or platform; an ordinary account: account (default). IDS never decides it. Your rules must respect the buyer's rights: a consumer who withdraws bears the direct cost of the return only if told so before the purchase (OUG 34/2014 art. 6 (1) i), 14 (2)); a consumer returning non-conforming goods for repair, replacement or termination bears no cost of carriage (Directive (EU) 2019/771 art. 14 (1) a), 16 (3) a); OUG 140/2021).
handoverobjectrequiredmethodstringrequiredone of: pickup · drop_off
pickup — a courier collects it at the buyer's address (where the carrier picks up there); drop_off — the buyer hands it in at a carrier point (required where no courier comes to a home address).
datestringpattern ^\d{4}-\d{2}-\d{2}$pickup: the day (today … +10 days, one of the return quote's handover.pickup.days).
readyTimestringpattern ^([01]\d|2[0-3]):[0-5]\d$pickup: from when the parcel is ready (the carrier reads it as local time at the buyer's address).
closeTimestringpattern ^([01]\d|2[0-3]):[0-5]\d$pickup: the latest time the courier may come (local time at the buyer's address).
instructionsstringlength ≤ 500pickup: for the courier.
dropOffPointobjectdrop_off: the point the buyer chose (from the return quote's handover.dropOff.points) — named in the label letter; any point of the carrier takes it.
idstringrequiredlength 1–60namestringlength ≤ 100line1stringlength ≤ 100citystringlength ≤ 100postalCodestringlength ≤ 20countryCodestringlength 2–2shipperobjectThe buyer's contact for the label, when the return quote had none (the address is the quote's).
contactobjectrequirednamestringrequiredlength 1–100companystringlength ≤ 100phonestringrequiredlength 1–20emailstring (email)length ≤ 255recipientobjectThe seller's contact for the label, when it differs from the quote's (the address is the quote's).
contactobjectrequiredSame shape as
shipper.contactabove.customsobjectAcross a border: the customs of what goes back. Default: the return quote's lines (the original's).
documentsOnlybooleancontentTypestringone of: ITEMS · DOCUMENTS
itemDescriptionstringlength ≤ 200dutiesPaymentstringone of: SENDER · RECIPIENT · THIRD_PARTY
incotermsstringone of: FCA · EXW · CIP · CPT · DAP · DAT · DDP
shipmentPurposestringone of: SOLD · NOT_SOLD · GIFT · SAMPLE · REPAIR_AND_RETURN · PERSONAL_EFFECTS
commodities[]array of objectitems ≤ 100descriptionstringrequiredlength 1–450quantityintegerrequired> 0≤ 99999quantityUnitsstringlength ≤ 10weightnumberrequired> 0≤ 1000weightUnitstringone of: KG · LB
customsValuenumberrequired> 0customsValueCurrencystringrequiredlength 3–3countryOfManufacturestringlength 2–2harmonizedCodestringlength ≤ 30referencesobjectcustomerReferencestringlength ≤ 40poNumberstringlength ≤ 40invoiceNumberstringlength ≤ 40platformobjectA platform's key only. The seller and the buyer are the original's.
orderRefstringlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$Default: the original's order.
shipmentRefstringlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$deliveryCustomerobjectpayer buyer, while IDS invoices the buyer: the delivery customer (default: the original's).
typestringrequiredone of: person · company
person: a private buyer; company: a buyer that is a company (its codes for the invoice).
namestringrequiredlength 1–200The person's full name or the company's legal name, as the invoice prints it.
vatNumberstringlength 2–32pattern ^[A-Za-z0-9][A-Za-z0-9 ./-]*$company only: its VAT code (e.g. RO12345678) when it has one.
registrationNumberstringlength 2–32pattern ^[A-Za-z0-9][A-Za-z0-9 ./-]*$company only: its registration number (e.g. J40/123/2020).
addressobjectrequiredThe delivery customer's address for the invoice (it may differ from the recipient's).
line1stringrequiredlength 1–100line2stringlength ≤ 100citystringrequiredlength 1–100stateCodestringlength ≤ 20postalCodestringlength ≤ 20countryCodestringrequiredpattern ^[A-Za-z]{2}$buyerAcceptanceobjectpayer buyer, while IDS invoices the buyer: the buyer's acceptance of IDS's documents for this return delivery.
documents[]array of objectrequireditems ≥ 1items ≤ 3terms and postal_conditions — accepted by the buyer, required, in their current versions; privacy — shown, optional.
typestringrequiredone of: terms · postal_conditions · privacy
versionstringrequiredlength 1–20The version shown to the buyer (GET /metadata buyerDocuments).
acceptedAtstring (date-time)requiredWhen the buyer ticked the box (ISO 8601 with an offset), before the payment: not in the future, at most 30 days ago, not after platform.payment.confirmedAt.
ipAddressstringlength ≤ 45Accepted but not stored by IDS — keep it in your own checkout record.
userAgentstringlength 1–500Accepted but not stored by IDS — keep it in your own checkout record.
paymentobjectA platform paid on the platform, payer buyer or platform: the payment for this return (exactly the return quote's total).
refstringrequiredlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$The platform's own id of the payment (e.g. its payment provider's payment id); one payment may cover several bookings of one order.
amountMinorintegerrequired> 0≤ 100000000The delivery amount of this booking in minor units (cents) — exactly the quote's total of the chosen service.
currencystringrequiredpattern ^[A-Za-z]{3}$The quote's currency.
confirmedAtstring (date-time)requiredWhen the platform's payment provider confirmed the payment (ISO 8601 with an offset).
operationRefstringlength 1–100pattern ^[^\u0000-\u001F\u007F-\u009F\u2028\u2029]+$Your own reference of this booking operation (e.g. the order's delivery id), unique per account and environment: a lost answer is found by it (GET /shipments?operationRef=), and a second booking with it answers 409 OPERATION_REF_TAKEN instead of booking twice. Required for a booking paid on the platform.
localestringlength ≤ 35The language of the label letter to the buyer, where you allow IDS letters (en, ro, ru, uk, sr, hu, bg, el, zh).
labelFormatstringone of: PDF · PNG
The buyer prints the label: PDF (default) or PNG.
labelSizestringone of: PAPER_4X6 · PAPER_4X8 · PAPER_LETTER
testScenariostringone of: delivered · delivery_attempt_failed · returned_to_sender · pickup_point · adjustment · lost · duplicate_scan · out_of_order · pickup_failed · pickup_timeout · pickup_retryable · pickup_missed · slow · carrier_error · carrier_error_retryable