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>.

  1. 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.
  2. Create one product and its listing in a single call to POST /v1/listings/batch. The brand must be one recash knows; find it with GET /v1/brands.
  3. Push a stock change with POST /v1/products/batch.
  4. Add a webhook URL in the dashboard and press Send test. You receive a signed ping.
  5. Swap in your live key. The same calls now save, and new listings go to admin review.
You want toCall
Create products and list them in one goPOST /v1/listings/batch with the product inline
Keep stock in step with your ERPPOST /v1/products/batch with only external_id and sizes
Change prices, caps or take a listing offPATCH /v1/listings/batch
Hear about ordersWebhooks order.created, order.paid, and more
Ship an orderPOST /v1/orders/{id}/labels; the label comes back in the answer

All ids, names and numbers in the examples are made up.

Step 2: list a product (test key)
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
    }]
  }'
Your systemrecashPOST /v1/listings/batch (test key)200, simulated: truePOST /v1/products/batch (stock)200, simulated: truewebhook ping (Send test)switch to the live keyPOST /v1/listings/batch (live key)200, listing pending_approval

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/batch creates products with their stock. Nothing appears in the shop.
  • Keep stock current: call it again with just external_id and the sizes’ stock. That sets the count, nothing more.
  • Start selling: POST /v1/listings/batch with product_ref puts 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.
POST /v1/products/batchPOST /v1/listings/batchPATCH /v1/listings/batchProductstitle, brand, images, sizesStockone number per sizeListingsprice, caps, termssells through
Price lives on the listing, never on the product. Stock can come in through products or listings and lands in the same place.
Inventory only: create a product with its stock, list nothing
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 }]
    }]
  }'
Later: start selling it
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 keyTest key
Requests per minute6010
Items per batch50050

Rate limits are per key, counted in fixed 60-second windows. Above the limit you get 429 rate_limited with Retry-After in seconds.

Your first call
curl "https://api.getrecash.com/v1/products?limit=1" \
  -H "Authorization: Bearer $RECASH_API_KEY"
Over the rate limit: 429, Retry-After: 23
{
  "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.

StatusCodeMeaning
400invalid_requestThe body is empty, is not valid JSON, or a batch has no non-empty items array.
400batch_too_largeMore items than the batch limit: 500 with a live key, 50 with a test key.
400validation_failedA query or path parameter, or the top level of the body, is invalid; field says which.
400invalid_cursorThe cursor is altered, or is sent with other filters than it was issued for.
401unauthorizedThe key is missing, wrong, deleted or expired.
403api_access_pausedrecash paused your company’s API access.
403seller_not_approvedYour company is not an approved seller on recash.
404not_foundNo such order on your account.
422unprocessableA recash rule refused the request; the message says why.
429rate_limitedRate limit reached, see Retry-After.
500internal_errorOur 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

CodeWhen
validation_failedA field is missing or out of range; field says which.
duplicate_in_requestThe same product or listing appears twice in one batch; only the first is processed.
unknown_brandThe brand is not on recash. Look it up with GET /v1/brands.
unknown_categoryA category id does not exist. Look it up with GET /v1/categories.
product_not_foundproduct_id or external_id matches nothing of yours.
size_not_foundNo size with that ean or sku on the product.
external_id_takenAnother of your products already has that id.
listing_not_foundNo listing of yours with that id.
listing_existsThe product already has a shop listing; PATCH it. The result carries its listing_id.
invalid_status_transitionThe action does not fit the listing’s status; see Listing lifecycle.
unprocessableA recash rule refused this item, for example no default warehouse for a stock change.
internal_errorOur fault; quote the request_id.
Every batch answers in this shape
{
  "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 last updated_at you 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 carries counts per status across all your listings.
  • Orders come newest first, filtered with status, payment_status and created_since.
First page, then the next (needs jq)
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

StatusMeaning
pending_approvalWaiting for review by recash. Every new listing starts here, and so does one you activate.
activeApproved and on sale in the shop. listing.approved tells you a listing got here.
approvedApproved by recash but not on sale in the shop. You can deactivate it like an active listing.
rejectedNot approved; see rejection_reason and review_note.
soldoutNo stock left to sell.
inactiveTaken 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

FieldValues
statuspending, confirmed, shipped, cancelled, refunded, partially_refunded
payment_statuspending, paid, failed, refunded, partially_refunded, refunded_with_voucher, cancelled
shipment_statuspacking, 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.

ProductAir Max 90Size 42stock 3Size 43stock 0Shop listing54.90 € per unit
Selling one unit lowers the size’s stock, so everything you read for that size sees it.

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.

  1. Push the full stock of changed sizes as often as you like.
  2. Confirm each recash order once your ERP has booked it (POST /v1/orders/{id}/confirm).
  3. On a 429 or 5xx, retry the same batch (after Retry-After on a 429). Writes are keyed by your external_id, so a retry updates instead of duplicating.
Your ERPrecashsize 42 stock 5order.created (2 units)stock 3push stock 5 (order not booked yet)5 minus 2 unconfirmed = 3POST /v1/orders/{id}/confirmpush stock 3stock 3

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.

pending_approvalactiveinactiverejectedPOST /v1/listings/batchadmin approvesPATCH deactivateadmin rejectsPATCH activateActivate sends a listing back to review.

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.

  • confirm marks 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.
Your systemrecashorder.created (reserve the units)GET /v1/orders/{id} (optional)POST /v1/orders/{id}/confirmorder.paidPOST /v1/orders/{id}/labels201, label link and tracking numberorder.updated (shipped, then delivered)any time before hand-overorder.cancelled (release the units)
Create a label for your newest order (needs jq)
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 id to ignore repeats: a retry keeps the id, and order.created, order.paid and order.cancelled have one id per order.

Which events to listen to

  • Inventory only: none.
  • Listing products: listing.approved (the listing is on sale) and listing.rejected (fix it and activate it again).
  • Fulfilling orders: order.created (reserve the units), order.paid (ship when you choose) and order.cancelled (release the units).
  • Tracking, optional: order.updated (shipped, then delivered).
Event happensDelivery savedPOST to your URL, signedDeliveredWait, then retryup to 6 timesEndpoint pausedemail sent2xxerror or timeoutstill failing after 3 days
AttemptSent
1At once
21 minute after the previous one failed
35 minutes after the previous one failed
430 minutes after the previous one failed
52 hours after the previous one failed
66 hours after the previous one failed
715 hours after the previous one failed

Webhooks

Events and payloads

EventWhen
order.createdA buyer ordered your items; stock is already lowered.
order.paidPayment arrived.
order.updatedThe order or its shipment changed: you confirmed items, or it shipped or was delivered.
order.cancelledPayment failed or the order was cancelled; release the units.
listing.approvedA listing was approved and is active.
listing.rejectedA listing was rejected, with a reason and a note.
pingYou 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.

order.paid
{
  "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"
      }
    ]
  }
}
listing.rejected
{
  "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.

  1. Read the header and split it into t and v1.
  2. Reject the delivery if t is more than 5 minutes from your clock.
  3. Sign t + "." + raw body with your secret and compare it to v1.

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.

Node.js
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);
}