Download OpenAPI specification:Download
This is only for headless merchants. Please see the implementation guide for more details.
For partners and merchants who want to keep their own return flow, but use Happy Returns to manage return shipments across various drop-off methods. View the implementation guide for more details.
Partners can authenticate for this endpoint by following the steps here: API set up.
Creates a return for headless retailers. https://partner.happyreturns.com/create_return
X-Hr-Apikey required | string A partner’s API key. The partner must be authorized by Happy Returns to create headless returns. Contact Happy Returns to grant permission.
|
Request body to send to create a return
retailer_id required | string The identifier of the retailer for the returning items. This needs to match an already existing retailer, cannot be arbitrary. |
email required | string The email address on the order for sending email confirmations for the return |
return_fee | string Return fee amount with currency code |
dropoff_method_id | string Shopper selected dropoff method ID of the return, which can be one of the following |
dropoff_methods_offered | Array of strings Methods offered to the shopper. Used by Happy Returns for evaluating the user's experience. Can be one or more from the following
|
Array of objects (Return Item) The purchases being returned |
rma_id required | string The shopper facing RMA ID for the return that was created. This ID can be used by the customer to look up a return at a return bar that was started through the partner/retailer return app by providing it to the Returnista |
qr_code required | string The URL to download the QR code generated for the return. This QR code can be used by the customer to more quickly look up a return at a return bar that was started through the partner/retailer return app by showing it to the Returnista to scan |
{- "retailer_id": "modern-retailer",
- "email": "customer@example.com",
- "return_fee": "5.00 USD",
- "dropoff_method_id": "return-bar",
- "dropoff_methods_offered": [
- "return-bar",
- "mail",
- "mail-nolabel",
- "mail-nobox-nolabel",
- "mail-shopper-provided",
- "home-pickup",
- "retailer-store",
- "other"
], - "returning": [
- {
- "id": "12950087565378-3-1",
- "order_number": "290670",
- "external_rma_id": "RET2024XYZ999",
- "name": "Nomadic Coast Short",
- "sku": "nomshrts-1",
- "upc": "SKDFHWEW-DKFD",
- "price": "50.00 USD",
- "when": "2024-01-21T20:19:24Z",
- "details": {
- "serialNumber": "s243415236",
- "weight": 2.4,
- "weightUnit": "lb",
- "brand": "modern-retailer",
- "additional_scannable_codes": [
- "sku-123",
- "upc-456"
]
}, - "display": [
- {
- "label": "Size",
- "value": "29"
}, - {
- "label": "Color",
- "value": "Olive"
}
], - "reason": "damaged",
- "reason_type": "damaged",
- "shipping_address": {
- "address1": "100 Willshire",
- "address2": "",
- "city": "Santa Monica",
- "country": "United States",
- "latitude": 34.010929,
- "longitude": -118.491508,
- "province": "California",
- "country_code": "US",
- "province_code": "CA",
- "zip_code": "90401"
}, - "zip_code": "90401",
- "refund_methods_offered": [
- "refund",
- "store credit",
- "exchange - same price point",
- "exchange - upsell"
], - "label": {
- "note": "9482010898416007684584",
- "barcode": "9482010898416007684584",
- "representation": "code128"
}
}
]
}
{- "rma_id": "HRXLIR78",
}