SociumMarket
Socium Market · API v1

Seller API

Connect your own system to the Socium marketplace the way you connect it to other marketplaces: items, stock, orders, buyer dialogs and payouts with a key; events to your address (webhooks); a catalogue from another marketplace in one CSV or JSON file.

  • REST and JSON
  • An sk_live_… key
  • HMAC-signed webhooks
  • CSV and JSON import

Getting started

  1. Open a shop: Seller cabinet → apply. Once the shop is approved, the API & integrations tab appears.
  2. Create a key: give it a name and access — read only or read and change. The key is shown once — keep it like a password. With two-factor protection on, Socium asks for the code.
  3. Add a webhook address (optional) and save its signing secret — it is also shown once.
  4. Move your catalogue in one file (API & integrations → Import items, or POST /import). The Socium team reviews new items and new descriptions; the price, visibility and stock change at once.

Keys, access and limits

API address: https://api.socium.tools/api/v1/seller. Every answer is JSON, amounts are USD cents, times are ISO 8601 with a time zone.

Authorization: Bearer sk_live_…

X-Api-Key: sk_live_… works too. A read-only key may call every GET; changes need a read-and-change key. Keys work while the shop is approved; a revoked key stops at once. A shop has up to 10 keys, each showing its last use and address.

  • 120 requests a minute per key. Over the limit the answer is 429 with Retry-After; what is left shows in X-RateLimit-Remaining on every answer, errors included.
  • Up to 5000 stock lines per request; an import takes up to 200 items and 20,000 lines in a file of up to 8 MB.
  • An error: {"detail": {"code": "item_not_found", "error": "Item not found"}}. Codes: 401 api_key_missing / api_key_invalid, 403 api_key_read_only / seller_not_approved, 404 …_not_found, 409 — the state does not allow it, 422 — invalid data, 429 rate_limited.
  • Every change made through the API goes to the shop's log (key, action, time, address), shown in the API & integrations tab.

Endpoints

MethodPathWhat it doesAccess
GET/meThe shop, the key, limits, the webhook eventsread
GET/categoriesCategories (their slug goes into category)read
GET/productsThe shop's items with stock; ?active=true, ?external_id=SKUread
POST/productsA new item: name, description, features[], category, price_cents, delivery_mode (automatic|manual), active, delivery_note, low_stock, guarantee_minutes, video_required, cashback_percent, external_id. The guarantee is in minutes from the market's list (0 — none); video_required — a replacement only with a video from the payment onchange
GET/products/{id}One itemread
PATCH/products/{id}Change any fields; a new name, description, features or category goes to reviewchange
GET/products/{id}/stockCounts (available / reserved / sold) and unsold lines, first characters only; ?after_id= pages onread
POST/products/{id}/stock{"lines": ["…", …]} — up to 5000 lines, one line = one unit. Repeats (already in stock, sold, repeated in the batch) are refused and counted in duplicates. Paid orders that waited for stock are delivered from the new lines at once (delivered_orders)change
DELETE/products/{id}/stock{"ids": [..]} or {"all": true} — remove undelivered lines (lines held by an unpaid order stay)change
GET/ordersPaid orders, newest first; ?since_id= — only newer ones, in order; ?status=. An order carries its terms at purchase (guarantee_minutes, video_required, guarantee_until, confirmed), bonuses and the promo code (bonus_cents, promo_discount_cents), the buyer's video link (evidence_url) and when they opened the goods (first_viewed_at)read
GET/orders/{order_id or code}An order by order_id or its code «SM-7K4Q-2D9F»read
POST/orders/{order_id}/fulfil{"content": "…"} — deliver a manual order: the text reaches the buyer's My orderschange
GET/dialogsDialogs with buyers; ?unread=trueread
GET/dialogs/{id}/messagesMessages; ?after= — only new ones; a read-and-change key marks them read (?mark_read=false — not); a read-only key changes nothingread
POST/dialogs/{id}/messages{"request_id": "uuid", "body": "…", "order_id": "…"} — reply; a repeat with the same request_id does not post twicechange
GET/balanceEarnings: pending_cents (in guarantee), earned_cents, available_cents, paid_cents, requested_cents, the commission, the minimum payoutread
GET/payoutsPayout requestsread
POST/payouts{"amount_cents": 5000} — request a payout to the details saved in the cabinet (they can be changed only there)change
POST/importA whole catalogue: CSV (Content-Type: text/csv) or JSON; ?dry_run=true only checkschange
GET/webhooks/deliveriesThe latest webhook deliveries and how they wentread

Orders and dialogs name the buyer by a masked name; their contacts stay with Socium. Contacts outside Socium are hidden in messages, as in the cabinet.

Examples

Create an item and upload stock

curl -X POST https://api.socium.tools/api/v1/seller/products \
  -H "Authorization: Bearer $SOCIUM_KEY" -H "Content-Type: application/json" \
  -d '{"external_id":"SKU-1","name":"Threads account aged 30 days","category":"accounts","price_cents":150}'

curl -X POST https://api.socium.tools/api/v1/seller/products/123/stock \
  -H "Authorization: Bearer $SOCIUM_KEY" -H "Content-Type: application/json" \
  -d '{"lines":["login1:pass1:mail1","login2:pass2:mail2"]}'
# → {"added":2,"duplicates":0,"empty":0,"stock":{"available":2,"reserved":0,"sold":0}}

Fetch new orders and deliver a manual one

curl "https://api.socium.tools/api/v1/seller/orders?since_id=4810" -H "Authorization: Bearer $SOCIUM_KEY"

curl -X POST https://api.socium.tools/api/v1/seller/orders/SM-7K4Q-2D9F/fulfil \
  -H "Authorization: Bearer $SOCIUM_KEY" -H "Content-Type: application/json" \
  -d '{"content":"Access: …"}'

Webhooks

Addresses are set in the API & integrations tab (up to 5, public https:// only; each with its own events or all of them). Socium sends a POST with JSON:

POST https://your-server/socium
Content-Type: application/json
X-Socium-Event: order.paid
X-Socium-Event-Id: 6f1c…   (the same for all your addresses — drop repeats by it)
X-Socium-Delivery: 9812
X-Socium-Signature: t=1764500000,v1=5d41402abc4b2a76b9719d911017c592…

{"id":"6f1c…","event":"order.paid","created_at":"2026-11-30T12:00:00+00:00","shop":"my-shop",
 "data":{"order_id":"store_…","code":"SM-7K4Q-2D9F","product_id":123,"product_name":"…","quantity":1,
         "amount_cents":150,"currency":"USD","status":"delivered","delivery_mode":"automatic","dialog_id":55}}
EventWhen
order.createdAn order of your item is placed and waits for payment
order.paidPaid; an automatic item is delivered at once
order.manual_requiredA paid manual order waits for your delivery (POST /orders/{id}/fulfil)
order.deliveredDelivered from stock (delivered_by: stock) or by you (seller)
order.confirmedThe buyer confirmed receipt (confirmed_by: buyer) or the guarantee ended (guarantee)
order.cancelledAn unpaid order was cancelled (its invoice expired or was cancelled)
order.refunded, order.replacedMoney returned to the buyer, units replaced
message.newA buyer's or a Socium arbitrator's message in a dialog
dispute.opened, dispute.closedA dispute opened, a dispute settled (outcome)
stock.low, stock.outStock fell to the low_stock level, the item ran out
payout.requested, payout.paid, payout.rejectedA payout request and its decision
product.moderatedAn item (or its change) approved or rejected
webhook.testThe Test button in the cabinet

Checking the signature

The signature is HMAC-SHA256 of <t>.<the raw request body> with your whsec_… secret. Compare in constant time and drop requests older than 5 minutes.

# Python
import hashlib, hmac, time
def valid(secret: str, header: str, body: bytes) -> bool:
    parts = dict(item.split("=", 1) for item in header.split(","))
    if abs(time.time() - int(parts["t"])) > 300:
        return False
    expected = hmac.new(secret.encode(), parts["t"].encode() + b"." + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts["v1"])

// Node.js
const crypto = require("crypto");
function valid(secret, header, rawBody) {
  const parts = Object.fromEntries(header.split(",").map(p => p.split("=")));
  if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false;
  const expected = crypto.createHmac("sha256", secret).update(parts.t + "." + rawBody).digest("hex");
  return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}
  • A 2xx answer within 10 seconds delivers it. Otherwise we retry after 1 min, 5 min, 15 min, 1 h, 3 h, 6 h, 12 h and 24 h; then the delivery is marked «not delivered» and can be sent again from the cabinet.
  • A new address and a changed one are confirmed with the 2FA code when it is on, and a letter tells you of them. The Test button works up to 5 times a minute.
  • Redirects are not followed. After 50 failures in a row the address is switched off and you are notified; switch it on again in the cabinet.
  • Events may arrive out of order: rely on the order's status and, when in doubt, call GET /orders/{id}.
  • The delivery log (30 days) is in the cabinet and at GET /webhooks/deliveries.

Catalogue import

One file moves items together with their stock. An item is matched by external_id (your SKU), else by its exact name: a repeated import updates items instead of doubling them. Only the fields a row gives change. A row with a mistake is skipped and reported, the rest is applied. dry_run checks the file and changes nothing.

CSV

The first row names the columns (separated by , ; or a tab): external_id, name, description, price (USD: 1.50, 1,50, $1.50; or price_cents), category, delivery_mode (automatic/manual), active (yes/no), features (separated by ; or new lines), delivery_note, low_stock, guarantee_hours (the guarantee in hours from the market's list, 0 — none), video_required (yes/no), cashback_percent (cashback in bonuses, 0–90), stock (stock lines in one cell, one per line — quote the cell) or stock_line (one line; several CSV rows with one external_id add up to one item).

external_id,name,description,price,category,delivery_mode,active,stock
SKU-1,Threads account aged 30 days,Email and 2FA,1.50,accounts,automatic,yes,"login1:pass1
login2:pass2"
SKU-2,Account setup by hand,Within a day,12.00,services,manual,yes,

JSON

{"products": [
  {"external_id": "SKU-1", "name": "Threads account aged 30 days", "price": "1.50", "category": "accounts",
   "stock": ["login1:pass1", "login2:pass2"]},
  {"external_id": "SKU-2", "name": "Account setup by hand", "price_cents": 1200, "category": "services", "delivery_mode": "manual"}
]}
curl -X POST "https://api.socium.tools/api/v1/seller/import?dry_run=true" \
  -H "Authorization: Bearer $SOCIUM_KEY" -H "Content-Type: text/csv" --data-binary @catalogue.csv
# → {"dry_run":true,"created":2,"updated":0,"unchanged":0,"stock_added":0,"errors":[],"items":[…]}

Rules

  • The marketplace rules apply. The Socium team reviews new items and changed descriptions — through the API just as in the cabinet.
  • Payment, delivery, the guarantee and disputes go through Socium. Do not take buyers to other messengers: such messages are flagged and the contacts hidden.
  • Keep keys and secrets on your side like passwords. A leaked key — revoke it in the cabinet and make a new one.

Questions about connecting — write to Socium support.