RitePlaz Marketplace API

Connect your own systems, such as a warehouse, accounting or order management system, to your RitePlaz Marketplace store: read your listings, orders and payouts, manage listings, decide cancellation and return requests, add tracking to orders you ship yourself, and get order events by webhook. The API is part of the Premium plan.

API keys

  • Create keys in your dashboard under Marketplace, API. Only the store owner and admins can, and the store owner must be on the Premium plan (not billed through Shopify).
  • Choose what each key may read: read listings, read orders, read payouts, manage listings, act on orders. A store can have 10 active keys.
  • The key is shown once. RitePlaz keeps only a hash of it, so a lost key can't be shown again: revoke it and create a new one. The store owners get a notification whenever a key is created.
  • Keep keys secret and on your server. Anyone with an orders key can read your buyers' names and shipping addresses. Buyers' email addresses and phone numbers are never returned.
  • If the store leaves the Premium plan, its keys stop working until it is back on Premium.

Rules and monitoring

  • Use the API only for your own store, and buyer information only to fulfill, support and account for those orders.
  • Don't sell or share buyer information, use it for marketing, or try to reach data that isn't your store's.
  • Stay within the rate limits: poll with updated_since instead of downloading everything again.
  • Keep keys secret, give each system its own key, and revoke a key you think was exposed.
  • RitePlaz logs each request (time, endpoint, result, key and IP address, kept 30 days) and watches for misuse and leaked keys. We may revoke a key or suspend a store's API access, and the store owners are told why. The full rules are in Section 15 of the Terms.

Making a request

Send the key as a Bearer token over HTTPS. Responses are JSON.

curl https://riteplaz.com/api/v1/marketplace/orders?limit=20 \
  -H "Authorization: Bearer rpk_live_YOUR_KEY"
  • Amounts are whole cents (5150 = $51.50). Dates are ISO 8601 in UTC.
  • Lists return data, has_more and next_cursor. Pass cursor=next_cursor for the next page. limit is 50 by default and at most 100.
  • To keep a copy in sync, ask for orders?updated_since= the time of your last sync.
  • Each key can make 120 requests a minute. Over that you get 429 with a Retry-After header.

Endpoints

Base URL: https://riteplaz.com/api/v1/marketplace

RequestPermissionReturns
GET /meanyThe store and key making the request. Use it to test a key.
GET /listingslistings:readYour listings, newest first.Query: status = active | unlisted | hidden, limit, cursor
GET /listings/{id}listings:readOne listing.
GET /ordersorders:readYour orders, newest first, with items, shipping address, tracking, open requests and payout.Query: status = placed | cancel_requested | canceled | return_requested | return_rejected | returned, updated_since (ISO 8601), limit, cursor
GET /orders/{number}orders:readOne order by its number, for example RPS-7K3D9Q.
GET /payoutspayouts:readEach order's payout and your held, paid and reversed totals.Query: status = held | paid | reversed | canceled, limit, cursor
GET /productslistings:readYour catalog products and whether each is listed, to choose what to list.Query: listed = all | listed | unlisted, q (title search), page
POST /listingslistings:writeList a product (or list it again). Returns the listing.Query: Body: { "product_id": "...", "category": "apparel" }
PATCH /listings/{id}listings:writeChange the category, pause (active: false) or list again (active: true).Query: Body: { "category": "...", "active": false }
DELETE /listings/{id}listings:writeTake the product out of the Marketplace. You can list it again later.
POST /orders/{number}/requestorders:writeApprove or decline the buyer's open cancellation or return request. Approving refunds the buyer. Returns the order.Query: Body: { "decision": "approve" | "decline", "note": "optional, shown to the buyer when declining" }
POST /orders/{number}/shipmentsorders:writeAdd tracking to an order you ship yourself (Self-Fulfillment). The buyer is emailed. Provider orders get tracking on their own. Returns the order.Query: Body: { "tracking_number": "...", "carrier": "USPS", "tracking_url": "https://...", "status": "shipped" | "delivered" }

Making changes

  • Changes need a key with listings:write or orders:write. They follow the same rules as your dashboard: an active Premium plan, the Marketplace connected, and listings RitePlaz removed stay removed.
  • Send JSON with Content-Type: application/json. Unknown fields are refused, so typos don't go unnoticed.
  • Approving a request refunds the buyer at once and can't be undone. Your systems should only approve what you would approve by hand.
  • Repeating a request is safe: listing an already-listed product keeps it listed, and sending the same tracking again updates it. A request decided already answers 409 no_open_request.
  • Changes are logged like every other request and show up in your webhooks as usual (for example order.canceled after an approved cancellation).
curl -X POST https://riteplaz.com/api/v1/marketplace/orders/RPS-7K3D9Q/shipments \
  -H "Authorization: Bearer rpk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "tracking_number": "9400111899223344556677", "carrier": "USPS" }'

An order

status is the Marketplace status (cancellation and return requests); fulfillment_status is the order's production and shipping progress in your store. Sales tax is collected and paid by RitePlaz, so it is not part of your amounts.

{
  "number": "RPS-7K3D9Q",
  "status": "placed",
  "fulfillment_status": "shipped",
  "placed_at": "2026-11-15T18:04:11.000Z",
  "updated_at": "2026-11-17T09:12:40.000Z",
  "currency": "USD",
  "items": [
    { "title": "Unisex Full Zip Hoodie", "variant": "Black / 3XL", "sku": "HOOD-BLK-3XL", "quantity": 1, "unit_price_cents": 5150 }
  ],
  "subtotal_cents": 5150,
  "fee_cents": 258,
  "payout_cents": 4892,
  "refunded_cents": 0,
  "shipping_address": { "name": "Jane Doe", "line1": "1 Main St", "line2": null, "city": "Springfield", "state": "IL", "postal_code": "62701", "country": "US" },
  "shipments": [
    { "carrier": "USPS", "tracking_number": "9400...", "tracking_url": "https://...", "shipped_at": "2026-11-17T09:12:40.000Z", "delivered_at": null }
  ],
  "open_request": null,
  "payout": { "status": "held", "available_after": "2026-12-01T09:12:40.000Z", "hold_days_after_shipping": 14, "released_at": null }
}

Webhooks

Add up to 5 addresses under Marketplace, API, Webhooks, and choose the events each one receives. RitePlaz sends a POST with a JSON body to the address when the event happens. Only public https addresses on the standard port can be used, and redirects are not followed.

order.createdA buyer paid for an order
order.shippedA package shipped (sent for each package)
order.deliveredThe order was delivered
order.canceledThe order was canceled and refunded
order.returnedA return was approved and refunded
cancellation.requestedThe buyer asked to cancel
return.requestedThe buyer asked for a return
payout.releasedThe order's payout was released to you
test.pingSent only when you press Send test

The body is the event with the full order, in the same shape the API returns. id stays the same when a message is retried or resent, so use it to ignore duplicates.

{
  "id": "evt_5f0c9b2e7a1d4c3b8e6f0a12",
  "type": "order.shipped",
  "created_at": "2026-11-17T09:12:41.000Z",
  "data": { "order": { "number": "RPS-7K3D9Q", "status": "placed", "fulfillment_status": "shipped", ... } }
}

Checking the signature

Each message has a RitePlaz-Signature: t=<unix time>,v1=<signature> header. The signature is the hex HMAC-SHA256 of <t>.<raw body> using the address's signing secret (shown once when you add the address, or when you press New secret). Check it on the raw body before parsing, and refuse messages more than 5 minutes old.

import crypto from "node:crypto";

function verify(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const expected = crypto.createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
  const a = Buffer.from(expected);
  const b = Buffer.from(parts.v1 ?? "");
  return fresh && a.length === b.length && crypto.timingSafeEqual(a, b);
}
  • Answer with any 2xx status within 10 seconds. Do slow work after answering.
  • Anything else is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours, then marked failed. You can resend any message from the delivery log.
  • After 25 failed attempts in a row, RitePlaz switches the address off and tells the store owners. Fix it and switch it back on.
  • Messages can arrive out of order. Use the order's updated_at, or fetch the order from the API, when order matters.

Errors

{ "error": { "code": "insufficient_scope", "message": "This key can't do that..." } }
  • 401 missing_api_key, invalid_api_key (wrong key), revoked_api_key
  • 403 insufficient_scope (the key lacks the permission), plan_required (the store is not on an active Premium plan, or its API access is suspended)
  • 400 invalid_parameter, invalid_limit, invalid_date, invalid_cursor, invalid_body
  • 404 not_found (not in your store)
  • 409 no_open_request, not_self_fulfilled, order_closed, hidden_by_riteplaz
  • 422 listing_failed (with the reason), invalid_request
  • 403 account_restricted (the store owner's account can't make changes)
  • 429 rate_limited