Перейти к содержимомуПерейти к навигацииПерейти к поиску

AI Consultant

Online

Hello! I can help you understand how the platform works.

SECONDARY INDUSTRIAL SUPPLY
/
РестОк.про
AboutTourPricingAuctionsFor holdingsJournalKnowledge baseDemoContacts
Log inSign upSign up
§DEV / API

API for partners

OAuth2 (client_credentials), REST resources for the catalog and orders, signed webhooks and a TypeScript SDK.

§01 — CAPABILITIES

Four integration surfaces

§01 — CATALOG API

Catalog

REST access to items, categories and stock levels. Pagination, filters, ETag.

Documentation
§02 — ORDERS API

Orders

Create, cancel and track deals. Escrow statuses and closing documents.

Documentation
§03 — WEBHOOKS

Webhooks

HMAC signatures, retries with backoff, and events for logistics, financing and settlements.

Documentation
§04 — SDK

TypeScript SDK

The SDK is in preparation. Start with the live OpenAPI spec and the Postman collection — quickstart below.

Documentation
§02 — QUICK START

Your first request in a minute

GET/api/partner/v1/catalog/search
partner / v1 / catalog / search
$ curl -H "Authorization: Bearer ${TOKEN}" \
       "https://api.restok.pro/api/partner/v1/catalog/search?q=задвижка"
{
  "success": true,
  "data": [
    { "id": "SKU-10234", "title": "Задвижка стальная 30с41нж DN100", "region": "RU-MSK" },
    { "id": "SKU-10891", "title": "Задвижка чугунная 30ч6бр DN80",  "region": "RU-SPE" }
  ],
  "meta": { "page": 1, "total": 248 }
}
§03 — WEBHOOKS

Signed events

The platform delivers events (logistics, financing, settlements) as a POST request to your HTTPS endpoint. Every delivery is signed with HMAC-SHA256: the X-Restok-Signature header = sha256=HMAC(secret, `${timestamp}.${body}`), where timestamp comes from X-Restok-Timestamp. A 2xx response means delivered; otherwise we retry up to 5 times with exponential backoff (5s → 40s), then dead-letter it. The signing secret is issued once, when you create the subscription.

HMACsignature verification on your side (Node.js)
verify-webhook.mjs
import crypto from 'node:crypto';

// Заголовки доставки: X-Restok-Signature ("sha256=<hex>"),
// X-Restok-Timestamp (unix-секунды), X-Restok-Event, X-Restok-Delivery.
function verifyRestokWebhook(headers, rawBody, secret) {
  const ts = headers['x-restok-timestamp'];
  const expected = 'sha256=' + crypto
    .createHmac('sha256', secret)          // secret — whsec_… из ответа на создание подписки
    .update(`${ts}.${rawBody}`)           // timestamp связан подписью (анти-replay)
    .digest('hex');
  const given = Buffer.from(headers['x-restok-signature'] ?? '');
  return given.length === Buffer.byteLength(expected)
    && crypto.timingSafeEqual(given, Buffer.from(expected))
    && Math.abs(Date.now() / 1000 - Number(ts)) < 300; // окно 5 минут
}
§05 — ERRORS & LIMITS

A predictable contract

§06 — INTEGRATIONS

1C and EDI — honest status

§04 — RESOURCES

Documentation and tools

01OpenAPI 3.0 specA full description of endpoints, schemas and errors.02Postman collectionReady-made requests to test your integration fast.03SDK on GitHubIn preparation — use the OpenAPI spec and Postman collection (quickstart above).04API changelogVersioning, breaking changes and deprecations.
§05 — ACCESS

Request an API key

Give us your email and company — we'll get in touch and send your client_id, client_secret and a link to the sandbox.

  • ✓ OAuth2
  • ✓ Sandbox free
  • ✓ SLA 99.9%
РестОк.про

The AI platform for secondary industrial supply

KorpService Consulting LLC · INN 6500026576 · OGRN 1256500005024 · 25 Lunnogo Sveta St., office 12, Yuzhno-Sakhalinsk, 693004, Russia

Calls+7 (4242) 61-77-55

Telegram / WhatsApp+7 962 127-77-55

Emailinfo@restok.pro

Log inSign up
NEWSLETTER

Product

PricingTourAuctionsFor holdingsFor sellersDemo

Company

AboutEconomics scenariosFor partnersPress kitJournalContacts

Support

Knowledge baseHelpDevelopersSecurity

Legal

PrivacyTermsPersonal data consentCookie policy
© 2026 RESTOK.PRO · All rights reserved
For Developers — RESTOK.PRO