Sell your overstock on recash from your own system
Keep your inventory on recash, sell any of it in the shop when you choose, and receive orders as webhooks. Every write takes a batch and answers item by item. The endpoints are in the API reference.
Start here
Quickstart
Base URL: https://api.getrecash.com. Every path starts with /v1. Requests and responses are JSON. Prices are in EUR, excluding VAT. Send your key as Authorization: Bearer <key>.
- Create a test key under Integrations → Seller API in your recash dashboard. A test key runs every request in full and rolls it back, so you can try everything safely. Put it in
RECASH_API_KEY(export RECASH_API_KEY=rk_test_…) and every example on this page runs as pasted. - Create one product and its listing in a single call to
POST /v1/listings/batch. The brand must be one recash knows; find it withGET /v1/brands. - Push a stock change with
POST /v1/products/batch. - Add a webhook URL in the dashboard and press Send test. You receive a signed
ping. - Swap in your live key. The same calls now save, and new listings go to admin review.
| You want to | Call |
|---|---|
| Create products and list them in one go | POST /v1/listings/batch with the product inline |
| Keep stock in step with your ERP | POST /v1/products/batch with only external_id and sizes |
| Change prices, caps or take a listing off | PATCH /v1/listings/batch |
| Hear about orders | Webhooks order.created, order.paid, and more |
| Ship an order | POST /v1/orders/{id}/labels; the label comes back in the answer |
All ids, names and numbers in the examples are made up.
curl https://api.getrecash.com/v1/listings/batch \ -H "Authorization: Bearer $RECASH_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "items": [{ "type": "shop", "product": { "external_id": "GS-10442", "title": "Air Max 90", "brand": "Nike", "condition": "with_tag", "sizes": [{ "size": "42", "ean": "0194501234567", "stock": 3 }] }, "sizes": [{ "ean": "0194501234567", "price": 54.90 }], "order_type": "moq_only", "min_quantity": 1 }] }'
Start here
Inventory and selling are separate
recash is your inventory system as well as a marketplace. A product is what you hold: its details, its sizes and how many of each you have. A listing is how you sell it: price, minimum quantity, caps. You can keep products and stock up to date on recash without selling anything, and start selling later with one call.
- Inventory only:
POST /v1/products/batchcreates products with their stock. Nothing appears in the shop. - Keep stock current: call it again with just
external_idand the sizes’stock. That sets the count, nothing more. - Start selling:
POST /v1/listings/batchwithproduct_refputs a product you already have up for sale, after review. - Sell straight away: send the product inline with the listing and both are saved in one call.
curl https://api.getrecash.com/v1/products/batch \ -H "Authorization: Bearer $RECASH_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "items": [{ "external_id": "GS-10442", "title": "Air Max 90", "brand": "Nike", "condition": "with_tag", "sizes": [{ "size": "42", "ean": "0194501234567", "stock": 7 }] }] }'
curl https://api.getrecash.com/v1/listings/batch \ -H "Authorization: Bearer $RECASH_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "items": [{ "type": "shop", "product": { "external_id": "GS-10442", "title": "Air Max 90", "brand": "Nike", "condition": "with_tag", "sizes": [{ "size": "42", "ean": "0194501234567", "stock": 3 }] }, "sizes": [{ "ean": "0194501234567", "price": 54.90 }] }] }'
A product sent inline is saved too, new or existing, so this call works on its own. A test key saves nothing between calls. Once the product is saved with your live key, "product_ref": { "external_id": "GS-10442" } in its place is enough.
Basics
Keys and test mode
You create a key yourself under Integrations → Seller API in your recash dashboard; there is nothing to request or wait for. The key is shown once; recash stores only a hash and its last four characters. A key only ever acts for your own company. If recash pauses your company’s API access, every call answers 403 api_access_paused until it is resumed.
rk_live_…keys read and write your real data.rk_test_…keys read your real data and run every write in full, then roll it back. The answer looks the same and says"simulated": true. Nothing is saved, no webhook fires, no email goes out. A label request is checked like a real one and answers a clearly fake label; nothing is bought.
Regenerating a live key keeps the old one working for 7 days, so you can switch your system over without downtime; delete the old key sooner if you’re done. Regenerating a test key, or deleting any key, takes effect at once.
| Live key | Test key | |
|---|---|---|
| Requests per minute | 60 | 10 |
| Items per batch | 500 | 50 |
Rate limits are per key, counted in fixed 60-second windows. Above the limit you get 429 rate_limited with Retry-After in seconds.
curl "https://api.getrecash.com/v1/products?limit=1" \ -H "Authorization: Bearer $RECASH_API_KEY"
{
"request_id": "req_5d03a1e92c7b4f08a6d1b3e5f7092c41",
"simulated": true,
"error": {
"code": "rate_limited",
"message": "Rate limit of 10 requests a minute reached. Retry after 23 seconds."
}
}Basics
Batches and errors
Every write takes an items array. A batch answers 200 with one result per item, in the order you sent them, even when some items fail. One bad EAN never blocks the rest.
The whole request fails only when it can’t be read or isn’t allowed. Errors look the same everywhere: { "error": { "code", "message", "field" } } next to the request_id.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | The body is empty, is not valid JSON, or a batch has no non-empty items array. |
| 400 | batch_too_large | More items than the batch limit: 500 with a live key, 50 with a test key. |
| 400 | validation_failed | A query or path parameter, or the top level of the body, is invalid; field says which. |
| 400 | invalid_cursor | The cursor is altered, or is sent with other filters than it was issued for. |
| 401 | unauthorized | The key is missing, wrong, deleted or expired. |
| 403 | api_access_paused | recash paused your company’s API access. |
| 403 | seller_not_approved | Your company is not an approved seller on recash. |
| 404 | not_found | No such order on your account. |
| 422 | unprocessable | A recash rule refused the request; the message says why. |
| 429 | rate_limited | Rate limit reached, see Retry-After. |
| 500 | internal_error | Our fault; the answer carries a request_id to quote. |
Creating a label has a few more answers: 400 idempotency_key_required, 409 label_in_progress, 422 idempotency_key_reused, 422 address_rejected and 503 carrier_unavailable (nothing bought; retry with the same key). A 502 label_outcome_unknown, or 409 label_outcome_unknown on a repeat, means DHL may have created a shipment: do not retry, check GET /v1/orders/{id}, and send a new key only after recash confirms. See Order lifecycle.
Item error codes
| Code | When |
|---|---|
validation_failed | A field is missing or out of range; field says which. |
duplicate_in_request | The same product or listing appears twice in one batch; only the first is processed. |
unknown_brand | The brand is not on recash. Look it up with GET /v1/brands. |
unknown_category | A category id does not exist. Look it up with GET /v1/categories. |
product_not_found | product_id or external_id matches nothing of yours. |
size_not_found | No size with that ean or sku on the product. |
external_id_taken | Another of your products already has that id. |
listing_not_found | No listing of yours with that id. |
listing_exists | The product already has a shop listing; PATCH it. The result carries its listing_id. |
invalid_status_transition | The action does not fit the listing’s status; see Listing lifecycle. |
unprocessable | A recash rule refused this item, for example no default warehouse for a stock change. |
internal_error | Our fault; quote the request_id. |
{
"request_id": "req_8f2c41b07a9e4d5c93f1e6a2b4d7c0a9",
"simulated": false,
"summary": { "received": 3, "created": 1, "updated": 1, "failed": 1 },
"results": [
{ "index": 0, "status": "created" },
{ "index": 1, "status": "updated" },
{
"index": 2,
"status": "error",
"error": {
"code": "unknown_brand",
"message": "No active brand is called \"Nikee\". Look it up with GET /v1/brands.",
"field": "items[2].brand"
}
}
]
}Basics
Pagination
Lists of products, listings and orders come a page at a time. Pass limit (1 to 200, default 100) and, for the next page, the next_cursor from the last answer. next_cursor is null on the last page. Keep the same filters while paging; a cursor used with other filters answers 400 invalid_cursor.
- Products, full read: leave out
updated_since. Rows come in a fixed order, so a product changed while you page is neither skipped nor repeated. - Products, changes only: pass
updated_since. Rows come oldest change first. Store the lastupdated_atyou received and pass it next time; a product changed at exactly that instant can come again. A stock change you push counts as a change. - Listings come in a fixed order, filtered with
status. The answer also carriescountsper status across all your listings. - Orders come newest first, filtered with
status,payment_statusandcreated_since.
curl "https://api.getrecash.com/v1/products?limit=100" \ -H "Authorization: Bearer $RECASH_API_KEY" # The next page: send next_cursor back as cursor, with the same filters. NEXT_CURSOR=$(curl -s "https://api.getrecash.com/v1/products?limit=100" \ -H "Authorization: Bearer $RECASH_API_KEY" | jq -r '.next_cursor') curl "https://api.getrecash.com/v1/products?limit=100&cursor=$NEXT_CURSOR" \ -H "Authorization: Bearer $RECASH_API_KEY"
Basics
Statuses
Listing
| Status | Meaning |
|---|---|
pending_approval | Waiting for review by recash. Every new listing starts here, and so does one you activate. |
active | Approved and on sale in the shop. listing.approved tells you a listing got here. |
approved | Approved by recash but not on sale in the shop. You can deactivate it like an active listing. |
rejected | Not approved; see rejection_reason and review_note. |
soldout | No stock left to sell. |
inactive | Taken off the shop by you. |
rejection_reason is one of incorrect_product_info, missing_incorrect_images, price_not_competitive, moq_conditions_not_suitable, authenticity_compliance_unclear, not_allowed_category, duplicate_listing.
Order
| Field | Values |
|---|---|
status | pending, confirmed, shipped, cancelled, refunded, partially_refunded |
payment_status | pending, paid, failed, refunded, partially_refunded, refunded_with_voucher, cancelled |
shipment_status | packing, in_process, partially_shipped, shipped, delivered, cancelled |
Each shipment that GET /v1/orders/{id}/shipments returns has a status of its own: pending, shipped, in_transit, delivered, exception, returned.
Stock and lifecycles
How stock works
A product has sizes. Each size has one stock number. The product’s shop listing sells that stock at a price you set, with an optional cap per size (max_sellable_quantity). A product has one shop listing; asking for a second answers listing_exists with the existing listing_id.
Warehouses. The stock you send goes to your default warehouse. The stock you read back is your total across all warehouses, and a push never changes any other warehouse.
Stock and lifecycles
Keeping stock in sync
Send absolute numbers: “size 42 has 5”, never “add 2”. Send what your warehouse physically holds. recash subtracts the units of recash orders you haven’t confirmed yet, because your ERP may not know about them. The stock in the answer is what recash now holds in total, so it can be lower than what you sent.
- Push the full stock of changed sizes as often as you like.
- Confirm each recash order once your ERP has booked it (
POST /v1/orders/{id}/confirm). - On a
429or5xx, retry the same batch (afterRetry-Afteron a 429). Writes are keyed by yourexternal_id, so a retry updates instead of duplicating.
Stock and lifecycles
Listing lifecycle
A recash admin reviews every new listing before it goes live. Changing price, caps or terms of an active listing keeps it active. deactivate takes an active listing off the shop. activate puts an inactive or rejected listing back in review; any other status answers invalid_status_transition.
You hear the outcome as listing.approved or listing.rejected. A rejection carries the reason and a note.
Stock and lifecycles
Order lifecycle
recash lowers stock the moment a buyer orders, so reserve the units when order.created arrives. Payment can take minutes (card) or days (SEPA, Billie, invoice); order.paid tells you when it arrives. Each order you read or receive shows only your own items and amounts.
When to ship is up to you; nothing waits for payment. A label request needs an Idempotency-Key header and the weight of each parcel in grams. It answers 201 at once with a download link for the label PDF (valid for one hour) and the tracking number. Send the same key again to get the same label back instead of buying a second one.
If payment fails or an admin cancels, order.cancelled tells you to release the units. Tracking follows in order.updated and in GET /v1/orders/{id}/shipments.
confirmmarks your pending items on the order as confirmed. Calling it again confirms none.- A parcel weighs 1 to 31.500 grams; one label covers 1 to 20 parcels.
- With a test key the label is fake and nothing is bought. With a live key it is a real DHL label.
ORDER_ID=$(curl -s "https://api.getrecash.com/v1/orders?limit=1" \ -H "Authorization: Bearer $RECASH_API_KEY" | jq -r '.data[0].order_id') curl https://api.getrecash.com/v1/orders/$ORDER_ID/labels \ -H "Authorization: Bearer $RECASH_API_KEY" \ -H "Idempotency-Key: label-$ORDER_ID-1" \ -H "Content-Type: application/json" \ -d '{ "parcels": [{ "weight_grams": 1800 }] }'
A 503 carrier_unavailable bought nothing and can be retried with the same key; its Retry-After says when. A 502 or 409 label_outcome_unknown means DHL may have created a shipment but the result was lost: do not retry. Check GET /v1/orders/{id} for the order’s shipments, and use a new key only after recash confirms no label exists.
Webhooks
Webhooks
Add one HTTPS URL in the dashboard and tick the events you want (all are ticked by default). recash sends only those events, each as a signed POST with a JSON body. The URL must point to a public address, and redirects are not followed. Answer with any 2xx within 10 seconds and do the work afterwards.
- A failed delivery is retried 6 times, after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 15 hours (about 24 hours in total, 7 attempts). After that it stays failed.
- If deliveries keep failing for 3 days with no success in between, the endpoint is paused and you get an email. Nothing is sent to a paused endpoint, and events that happen meanwhile are not queued. Fix the endpoint, resume it in the dashboard, then read what you missed with
GET /v1/orders. - Every delivery and its response code is listed in the dashboard.
- An event can arrive twice, and a retried one can arrive after a newer one. Use its
idto ignore repeats: a retry keeps the id, andorder.created,order.paidandorder.cancelledhave one id per order.
Which events to listen to
- Inventory only: none.
- Listing products:
listing.approved(the listing is on sale) andlisting.rejected(fix it and activate it again). - Fulfilling orders:
order.created(reserve the units),order.paid(ship when you choose) andorder.cancelled(release the units). - Tracking, optional:
order.updated(shipped, then delivered).
| Attempt | Sent |
|---|---|
| 1 | At once |
| 2 | 1 minute after the previous one failed |
| 3 | 5 minutes after the previous one failed |
| 4 | 30 minutes after the previous one failed |
| 5 | 2 hours after the previous one failed |
| 6 | 6 hours after the previous one failed |
| 7 | 15 hours after the previous one failed |
Webhooks
Events and payloads
| Event | When |
|---|---|
order.created | A buyer ordered your items; stock is already lowered. |
order.paid | Payment arrived. |
order.updated | The order or its shipment changed: you confirmed items, or it shipped or was delivered. |
order.cancelled | Payment failed or the order was cancelled; release the units. |
listing.approved | A listing was approved and is active. |
listing.rejected | A listing was rejected, with a reason and a note. |
ping | You pressed Send test. Never retried, and not an event you tick. |
data holds the same object the matching GET returns, so one parser covers both: an order for order.* (GET /v1/orders/{id}), a listing for listing.* (an entry of GET /v1/listings), and {} for ping. An order holds only your own items and amounts, even when the buyer ordered from several sellers.
Only shop listings raise listing.* events. Each delivery also carries Content-Type: application/json and a User-Agent that starts with recash-webhooks/1.0.
{
"id": "evt_2b71c4e09a5f4d1b8c3e7a60d9f21b48",
"type": "order.paid",
"created_at": "2026-11-20T09:13:42.118Z",
"data": {
"order_id": "a51c9e07-3d2b-4c1c-9f6a-2b8d4e7c1f03",
"invoice_number": "18-0000",
"proforma_number": "PR-18-0000",
"status": "confirmed",
"payment_status": "paid",
"shipment_status": "packing",
"created_at": "2026-11-20T09:02:11.402Z",
"paid_at": "2026-11-20T09:13:40.000Z",
"seller_total_net": 164.7,
"ship_to": {
"contact_name": "Alex Example",
"recipient": "Example GmbH",
"street": "Musterstraße 12",
"postcode": "10115",
"city": "Berlin",
"country": "DE"
},
"items": [
{
"item_id": "3e90d1c4-7a2b-4e6f-8c15-9b0a4d2e6f38",
"product_id": "7d0a3c2e-5b14-4f8e-9a61-2c9b8e4f1d07",
"external_id": "GS-10442",
"variant_id": "e1f3b6a2-9c47-4d18-8b05-6a2e9f3c7d41",
"ean": "0194501234567",
"sku": null,
"size": "42",
"title": "Air Max 90",
"quantity": 3,
"seller_net_price": 54.9,
"status": "confirmed"
}
]
}
}{
"id": "evt_9c04d7a1e3b24f58a1d60e2b7c35f901",
"type": "listing.rejected",
"created_at": "2026-11-20T10:30:05.771Z",
"data": {
"listing_id": "AA10442",
"type": "shop",
"status": "rejected",
"product_id": "7d0a3c2e-5b14-4f8e-9a61-2c9b8e4f1d07",
"external_id": "GS-10442",
"order_type": "moq_only",
"min_quantity": 1,
"pack_size": null,
"allows_offers": false,
"free_shipping": false,
"sizes": [
{
"variant_id": "e1f3b6a2-9c47-4d18-8b05-6a2e9f3c7d41",
"ean": "0194501234567",
"sku": null,
"size": "42",
"price": 54.9,
"max_sellable_quantity": null,
"stock": 3
}
],
"rejection_reason": "price_not_competitive",
"review_note": "Please check the price against the shop.",
"created_at": "2026-11-19T16:20:00.000Z",
"updated_at": "2026-11-20T10:30:05.402Z"
}
}Webhooks
Checking the signature
Each delivery carries Recash-Signature: t=<unix time>,v1=<hex>. v1 is the HMAC-SHA256 of t + "." + raw body with your endpoint’s signing secret. Compute it on the raw body, before any JSON parsing; compare in constant time; and reject deliveries older than 5 minutes.
- Read the header and split it into
tandv1. - Reject the delivery if
tis more than 5 minutes from your clock. - Sign
t + "." + raw bodywith your secret and compare it tov1.
Why: without it, anyone who learns your webhook URL could send you a fake order.paid. The signing secret (it starts with whsec_) is shown once when you save the URL. You can generate a new one at any time; it replaces the old one immediately, and it too is shown once.
import crypto from "node:crypto"; function verify(rawBody, header, secret) { const parts = Object.fromEntries(header.split(",").map((p) => p.split("="))); const age = Date.now() / 1000 - Number(parts.t); if (!(Math.abs(age) <= 300)) return false; const expected = crypto .createHmac("sha256", secret) .update(parts.t + "." + rawBody) .digest("hex"); const given = Buffer.from(parts.v1 ?? ""); const wanted = Buffer.from(expected); return given.length === wanted.length && crypto.timingSafeEqual(given, wanted); }