Returns
Returns bring units from a customer back to a warehouse.
A return records the units a customer sends back, what the warehouse received, their condition and how the customer was refunded. Every return belongs to an order.
Operations
Create return
Create a return for an order.
Update return
Close a return and record the refund.
Get return
See what the warehouse received.
List returns
List returns for an order or a period.
Two statuses
A return has two separate status fields:
status- Where the parcel isCreated, shipped or received at the warehouse.
resolution_status- Whether the refund is settledOpen, action required or closed.
For example, a return can be RETURN_STATUS_RETURNED while its
resolution_status is ACTION_REQUIRED because the customer hasn't been refunded.
status
RETURN_STATUS_CREATED- Created. Nothing has shipped yet.
RETURN_STATUS_TRANSMITTED- Sent to the warehouse and carrier. A label may exist.
RETURN_STATUS_SHIPPED- The customer sent the parcel.
RETURN_STATUS_RETURNED- Received by the warehouse. Units are back in inventory.
RETURN_STATUS_EXCEPTION- A problem needs attention.
RETURN_STATUS_CANCELLED- Cancelled.
RETURN_STATUS_UNSPECIFIED- Unknown status.
| status | Meaning |
|---|---|
RETURN_STATUS_CREATED | Created. Nothing has shipped yet. |
RETURN_STATUS_TRANSMITTED | Sent to the warehouse and carrier. A label may exist. |
RETURN_STATUS_SHIPPED | The customer sent the parcel. |
RETURN_STATUS_RETURNED | Received by the warehouse. Units are back in inventory. |
RETURN_STATUS_EXCEPTION | A problem needs attention. |
RETURN_STATUS_CANCELLED | Cancelled. |
RETURN_STATUS_UNSPECIFIED | Unknown status. |
resolution_status
RETURN_RESOLUTION_STATUS_OPEN- Open. Usual status until the parcel arrives.
RETURN_RESOLUTION_STATUS_ACTION_REQUIRED- You need to act, usually to refund the customer.
RETURN_RESOLUTION_STATUS_CLOSED- Settled.
RETURN_RESOLUTION_STATUS_UNSPECIFIED- Unknown status.
| resolution_status | Meaning |
|---|---|
RETURN_RESOLUTION_STATUS_OPEN | Open. Usual status until the parcel arrives. |
RETURN_RESOLUTION_STATUS_ACTION_REQUIRED | You need to act, usually to refund the customer. |
RETURN_RESOLUTION_STATUS_CLOSED | Settled. |
RETURN_RESOLUTION_STATUS_UNSPECIFIED | Unknown status. |
Use UpdateReturn to close a return and record
how you refunded the customer.
The Return object
idstringReturn ID: the order ID, RT, then two characters. Example: BGBL0K3M9XQ2RT01.
^[A-Za-z0-9]{12}RT[A-Za-z0-9]{2}$orderstring^[A-Za-z0-9]{12}$external_idstringstorestringwarehousestring^[A-Za-z]{2}-[A-Za-z]{3}-[0-9]{3}$fulfillmentstringline_itemsReturnLineItem[]statusReturnStatusresolution_statusReturnResolutionStatuscreate_timestringupdate_timestringreturn_timestringresolution_closed_timestringlabel_urlstringtracking_numberstringcarrier_servicestringlabel_generation_supportReturn.LabelGenerationSupportSUPPORTED or UNSUPPORTED: whether Bigblue can create a return label for this
route.
sourceReturnSourceoriginReturnOriginutm_mediumstringHow the customer reached the returns page, for example email or qr_code.
refund_methodReturnRefundMethodHow the customer chose to be refunded.
currencystringrefund_feestringgift_cardReturnGiftCardStore credit issued, for store credit refunds.
exchangeReturnExchangemanual_resolutionReturnManualResolutionSet when you close the return yourself.
ReturnLineItem
productstringrequired^[A-Za-z0-9]{4}-[A-Za-z0-9]{6}-[A-Za-z0-9]{4}$expected_quantityintegerrequiredreceived_quantityintegerdamaged_quantityintegeridstringreturn_reasonsReturnReason[]One reason per unit when the customer gave them. There may be fewer if you or the warehouse created the return.
quality_controlsReturnQualityControl[]One inspection result per unit, from the warehouse.
Units that can be sold again are received_quantity - damaged_quantity. Damaged
units go to damaged in inventory.
ReturnReason
typeReturnReasonTypecommentstringReturnReasonType
RETURN_REASON_TYPE_ITEM_TOO_BIG- Too big.
RETURN_REASON_TYPE_ITEM_TOO_SMALL- Too small.
RETURN_REASON_TYPE_WRONG_DESCRIPTION- Different from the description.
RETURN_REASON_TYPE_ITEM_DISLIKED- The customer doesn't like it.
RETURN_REASON_TYPE_DAMAGED_ITEM- Damaged or faulty.
RETURN_REASON_TYPE_WRONG_ITEM_RECEIVED- Not the item ordered.
RETURN_REASON_TYPE_OTHER- Other reason. See the comment.
RETURN_REASON_TYPE_UNSPECIFIED- No reason given.
| type | Meaning |
|---|---|
RETURN_REASON_TYPE_ITEM_TOO_BIG | Too big. |
RETURN_REASON_TYPE_ITEM_TOO_SMALL | Too small. |
RETURN_REASON_TYPE_WRONG_DESCRIPTION | Different from the description. |
RETURN_REASON_TYPE_ITEM_DISLIKED | The customer doesn't like it. |
RETURN_REASON_TYPE_DAMAGED_ITEM | Damaged or faulty. |
RETURN_REASON_TYPE_WRONG_ITEM_RECEIVED | Not the item ordered. |
RETURN_REASON_TYPE_OTHER | Other reason. See the comment. |
RETURN_REASON_TYPE_UNSPECIFIED | No reason given. |
ReturnQualityControl
damaged_reasonsReturnDamagedReason[]imagesReturnQualityControlImage[]{ "url": "https://..." }.serial_numberReturnQualityControl.SerialNumberSerial number of the unit, if recorded: { "type": "RETURN_SERIAL_NUMBER_TYPE_IMEI", "value": "..." }.
ReturnDamagedReason
RETURN_DAMAGED_REASON_CRUMPLED_PRODUCT- The product is crumpled.
RETURN_DAMAGED_REASON_DAMAGED_PACKAGING- The packaging is damaged.
RETURN_DAMAGED_REASON_DAMAGED_PRODUCT- The product is damaged.
RETURN_DAMAGED_REASON_MISSING_OR_UNREADABLE_BARCODE- The barcode is missing or can't be read.
RETURN_DAMAGED_REASON_DIRTY_PRODUCT- The product is dirty.
RETURN_DAMAGED_REASON_SERIAL_NUMBER_MISMATCH- The serial number is missing or wrong.
RETURN_DAMAGED_REASON_UNSPECIFIED- No reason recorded.
| damaged_reasons[] | Meaning |
|---|---|
RETURN_DAMAGED_REASON_CRUMPLED_PRODUCT | The product is crumpled. |
RETURN_DAMAGED_REASON_DAMAGED_PACKAGING | The packaging is damaged. |
RETURN_DAMAGED_REASON_DAMAGED_PRODUCT | The product is damaged. |
RETURN_DAMAGED_REASON_MISSING_OR_UNREADABLE_BARCODE | The barcode is missing or can't be read. |
RETURN_DAMAGED_REASON_DIRTY_PRODUCT | The product is dirty. |
RETURN_DAMAGED_REASON_SERIAL_NUMBER_MISMATCH | The serial number is missing or wrong. |
RETURN_DAMAGED_REASON_UNSPECIFIED | No reason recorded. |
ReturnSource
RETURN_SOURCE_CUSTOMER- Created by the customer on the returns page.
RETURN_SOURCE_MERCHANT- Created by you, in the app or the API.
RETURN_SOURCE_WAREHOUSE- The warehouse received a parcel with no return record.
RETURN_SOURCE_INTEGRATION- Created by a third-party returns app.
RETURN_SOURCE_CARRIER- The original parcel came back undelivered.
RETURN_SOURCE_UNSPECIFIED- Unknown.
| source | Meaning |
|---|---|
RETURN_SOURCE_CUSTOMER | Created by the customer on the returns page. |
RETURN_SOURCE_MERCHANT | Created by you, in the app or the API. |
RETURN_SOURCE_WAREHOUSE | The warehouse received a parcel with no return record. |
RETURN_SOURCE_INTEGRATION | Created by a third-party returns app. |
RETURN_SOURCE_CARRIER | The original parcel came back undelivered. |
RETURN_SOURCE_UNSPECIFIED | Unknown. |
ReturnRefundMethod
RETURN_REFUND_METHOD_UNSPECIFIED- Manual refund. You refund the customer yourself. This is the default.
RETURN_REFUND_METHOD_STORE_CREDIT- The customer gets store credit. See gift_card.
RETURN_REFUND_METHOD_EXCHANGE- The customer gets replacement items. See exchange.
RETURN_REFUND_METHOD_MANUAL_OTHER- You closed the return and chose "other" as the refund method.
| refund_method | Meaning |
|---|---|
RETURN_REFUND_METHOD_UNSPECIFIED | Manual refund. You refund the customer yourself. This is the default. |
RETURN_REFUND_METHOD_STORE_CREDIT | The customer gets store credit. See gift_card. |
RETURN_REFUND_METHOD_EXCHANGE | The customer gets replacement items. See exchange. |
RETURN_REFUND_METHOD_MANUAL_OTHER | You closed the return and chose "other" as the refund method. |
ReturnOrigin
postalstringstatestringcountrystringReturnGiftCard
store_gift_card_idstringinitial_valuestringnotestringcode_last_charactersstring^[A-Za-z0-9]{4}$create_timestringReturnExchange
line_itemsReturnExchangeLineItem[]shipping_pricestringShipping for the replacement items. Empty until the customer completes checkout.
to_refund_amountstringAmount still owed to the customer: returned items minus replacement items,
shipping and refund_fee. Empty until checkout is complete.
ReturnExchangeLineItem
productstringBigblue product or bundle. Empty if the shop product isn't linked to Bigblue.
^[A-Za-z0-9]{4}(BU)?-[A-Za-z0-9]{6}-[A-Za-z0-9]{4}$product_idstringvariant_idstringproduct_titlestringquantityintegerpricestringReturnManualResolution
refund_methodReturnRefundMethodnotestring