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

JTL Developers

API дропшиппинга для товаров с 1688

REST API для вашей ERP, системы заказов или собственного магазина: импортируйте товары фабрик с 1688, получайте стоимость с доставкой, оформляйте заказы с оплатой из кошелька JTLGO и получайте трек-номера через webhook. Тестовые ключи ничего не покупают и ничего не списывают.

Техническое руководство ниже — на английском, с теми же названиями эндпоинтов, полей и кодов ошибок, что и в API. Как включить API и начать работу, по-русски: Как подключить свою систему к JTLGO через API.

На этой странице (разделов: 15)
  1. 1. Быстрый старт
  2. 2. Аутентификация и ключи
  3. 3. Запросы, ответы и ошибки
  4. 4. Идемпотентность
  5. 5. Товары
  6. 6. Расчёт стоимости и цены
  7. 7. Заказы
  8. 8. Кошелёк и оплата
  9. 9. Доплата по весу
  10. 10. Вебхуки
  11. 11. Тестовый режим (песочница)
  12. 12. Лимиты запросов
  13. 13. Коды ошибок
  14. 14. Чек-лист перед запуском
  15. 15. История изменений и версии

JTLGO Dropshipping API — Developer Guide

Status: pilot (2026-11-23). API v1 is available to accounts JTLGO has enabled for the pilot. Fields may still be added (see §15). The machine-readable contract is openapi.yaml.

The JTLGO Dropshipping API lets your own system (ERP, OMS, a custom storefront, a marketplace connector) do what the JTLGO Shopify and WooCommerce apps do:

  1. Import a product from a 1688 factory seller and get its landed cost to your buyer’s country.
  2. Quote an order before you sell.
  3. Place an order with your buyer’s address. It is paid from your JTLGO wallet.
  4. Track it: we buy from the factory, receive and weigh the parcel at our warehouse in China, and ship it to your buyer. You get the tracking number by webhook or by polling.

You pay the landed cost: goods + China domestic freight + international freight. International freight includes a $1.00 parcel handling charge per order and, on DDP shipping routes, the import duties (DDP = Delivered Duty Paid: your buyer pays nothing on delivery). There is no other service fee and no subscription. All amounts are in USD. See §6.


Contents

  1. Quick start
  2. Authentication and keys
  3. Requests, responses and errors
  4. Idempotency
  5. Products
  6. Quotes and pricing
  7. Orders
  8. Wallet and payment
  9. Weight settlement
  10. Webhooks
  11. Test mode (sandbox)
  12. Rate limits
  13. Error codes
  14. Going live checklist
  15. Changelog and versioning

1. Quick start

Use a test key first (jtl_test_…). With a test key nothing is bought and no money is charged. See Test mode.

Base URL: https://api.jtlgo.com/open/v1

Step 0 — get a key. Ask JTLGO to enable the API pilot for your account. Then open Account → Developers and create a key with mode test. Copy it now: it is shown only once.

export JTLGO_KEY="jtl_test_..."

Step 1 — which countries can I ship to?

curl https://api.jtlgo.com/open/v1/destinations \
  -H "Authorization: Bearer $JTLGO_KEY"

Look at data[].country and data[].available. Only import for a country where available is true.

Step 2 — import a 1688 product for the US.

curl -X POST https://api.jtlgo.com/open/v1/products \
  -H "Authorization: Bearer $JTLGO_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source": "https://detail.1688.com/offer/731464528956.html",
    "destination_country": "US"
  }'

Check these fields in the response:

Field What to check
data.id The product id (keep it)
data.status Must be ready (or needs_weight, see §5)
data.variants[].sku The SKU you order with, e.g. JTL-731464528956-5177745329683
data.variants[].cost.available Must be true for the variant you want to sell
data.variants[].cost.landed_cost Cost of one unit, delivered to the buyer

Step 3 — quote the order (optional, nothing is stored).

curl -X POST https://api.jtlgo.com/open/v1/quotes \
  -H "Authorization: Bearer $JTLGO_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "destination_country": "US",
    "lines": [{ "sku": "JTL-731464528956-5177745329683", "quantity": 1 }]
  }'

Check data.total (for example {"amount": "25.04", "currency": "USD"}).

Step 4 — place the order. Use a sku from step 2.

curl -X POST https://api.jtlgo.com/open/v1/orders \
  -H "Authorization: Bearer $JTLGO_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "external_order_id": "SO-10023",
    "recipient": {
      "name": "Jane Doe", "phone": "+1 415 555 0100",
      "address1": "1 Market St", "city": "San Francisco", "state": "CA",
      "postal_code": "94105", "country": "US"
    },
    "lines": [{ "sku": "JTL-731464528956-5177745329683", "quantity": 1 }]
  }'

Check data.id (for example TEST-20261123-A1B2C3), data.status (processing means it is paid), data.charge.total and data.payment.status.

Step 5 — follow the order. GET /orders/{id}, or register a webhook (§10). With a test key, move the order forward yourself with POST /sandbox/orders/{id}/advance (§11).


2. Authentication and keys

The Open API is enabled per account during the pilot: contact JTLGO to join. Once enabled, create keys yourself in jtlgo.com → Account → Developers.

  • A key is shown once, when it is created. We store only a hash. If you lose it, revoke it there and create a new one.
  • Up to 10 active keys per account (expired keys do not count).
  • We email the account owner when a key is created or revoked. If you did not expect the email, revoke the key and change your password.
  • Changing your password does not revoke keys. Revoke them yourself.

Send the key in the Authorization header:

Authorization: Bearer jtl_live_8Hk2…
Prefix Mode Effect
jtl_live_ live Real purchases, real wallet charges
jtl_test_ test Orders are marked test, never bought, paid from a test balance

Each key has scopes. Keys get all six unless you untick some under More settings when you create the key on the account page. Give each system only what it needs.

Scope Allows
catalog:read GET /destinations, GET /products…
catalog:write POST /products, PATCH /products/{id}/variants/{sku_id}
orders:read GET /orders…, POST /quotes, GET /events
orders:write POST /orders, /pay, /cancel, POST /sandbox/orders/{id}/advance
wallet:read GET /wallet
webhooks:manage /webhook-endpoints…

Optional per key (also under More settings): an IP allowlist (up to 20 single addresses; IPv6 is compared in normalised form) and an expiry date. The allowlist is a second lock, not the only one: keep the key itself secret.

Test keys and your live catalog. Imported products are shared by both modes. A test key can import and read products, but it cannot change what your live orders are charged:

  • PATCH /products/{id}/variants/{sku_id} needs a jtl_live_ key (403 live_key_required).
  • POST /products with "refresh": true needs a jtl_live_ key (403 live_key_required).
  • POST /products with a test key for a product you already imported always returns the existing product unchanged ("reused": true). It does not re-read 1688 or re-price.

A key belongs to your JTLGO account. Products and orders made with it are the same ones you see on your account page, so your team can follow them there too.

Never put a key in a browser, mobile app or public repository. Call the API from your server.


3. Requests, responses and errors

  • JSON in, JSON out, UTF-8. Send Content-Type: application/json on requests with a body.
  • Field names are snake_case.
  • Money is an object with a decimal string: {"amount": "25.04", "currency": "USD"}. All amounts are USD. Do not parse them into a float for accounting; use a decimal type.
  • Timestamps are ISO 8601 UTC: 2026-11-20T08:15:00Z.
  • Single resources come back as {"data": {…}}. Lists come back as {"data": […], "next_cursor": "…"}.
  • Pagination: pass next_cursor back as ?cursor= until it is null. limit is 1–100 (default 20). The cursor is opaque; its format may change.
  • Request bodies are limited to 64 KB (413 payload_too_large).
  • Every response has an X-Request-Id header. Quote it when you contact us.

Errors use HTTP status codes and one body shape:

{
  "error": {
    "type": "invalid_request",
    "code": "invalid_quantity",
    "message": "lines[0].quantity must be a whole number from 1 to 999",
    "param": "lines[0].quantity",
    "request_id": "req_7f3c2a9d"
  }
}

type, code, message and request_id are always there. Some errors add more fields:

Error Extra fields
Most 400 errors param: the field that is wrong, e.g. lines[0].quantity
400 recipient_incomplete fields: the missing recipient fields, e.g. ["phone", "postal_code"]
402 insufficient_balance required and available (money): what the order costs and what you have
409 price_changed current_total (money): the total we would charge now
HTTP type Meaning
400 invalid_request Bad input. Fix it and send again.
401 authentication Missing, wrong, revoked or expired key
402 payment_required Wallet balance too low
403 permission The key or account may not do this (see the list below)
404 not_found No such resource in your account
409 conflict The current state does not allow it (already shipped, product not ready, price changed)
413 invalid_request Request body over 64 KB
429 rate_limit Slow down; see Retry-After. The code is rate_limited
502/503 upstream 1688 or a carrier is not answering; retry with backoff
500 internal Our bug; retry with backoff and tell us the request_id

A 403 has one of these codes: insufficient_scope (the key lacks the scope), ip_not_allowed (request IP not on the key’s allowlist), api_not_enabled (the account is not enabled for the API), account_unavailable (the JTLGO account is not active), live_key_required, test_mode_only or site_unsupported. See §13.

Branch on error.code, never on message (messages may be reworded).


4. Idempotency

Network failures happen. These endpoints accept an Idempotency-Key header:

  • POST /products
  • POST /orders
  • POST /orders/{id}/pay
  • POST /orders/{id}/cancel
  • POST /webhook-endpoints
  • POST /webhook-endpoints/{id}/rotate-secret

All other endpoints ignore the header.

The idempotency key is 8–128 characters of A-Z a-z 0-9 . _ : -. We store it per API key, so systems that use different API keys cannot clash.

  • Same key, same request, within 24 hours → you get the first response again. The work is not done twice. A replayed response has the header Idempotent-Replayed: true.
  • This includes 4xx answers. For example, if /pay answered 402 insufficient_balance, top up your wallet and retry with a new key.
  • 5xx answers are not stored, so you can retry those with the same key.
  • Same key, different request → 409 idempotency_key_reused. “Same request” means the same method, the same path and the same JSON body. We compare the parsed body: spaces and line breaks do not matter, but the order of the fields does. Build the body the same way each time.
  • If the first request is still running you get 409 idempotency_in_progress. Retry after a few seconds. If our side dropped that request (for example during a restart), the key is released after at most 2 minutes.

POST /orders is also idempotent on external_order_id, permanently: one external_order_id = one JTLGO order, forever. A repeat returns 200 with the original order; the first creation returns 201. This is what protects you from paying twice. Always send your own order id.


5. Products

Import

POST /products
{ "source": "731464528956", "destination_country": "US" }

source is a 1688 offer id or a detail.1688.com / m.1688.com URL. Other sites are refused.

What import does:

  1. Reads the live listing: title, images, variants, stock, prices, weights, minimum order.
  2. Supplier check — we only take 1688 factory sellers, no pre-sale listings, dispatch promised within 72 hours. Others are blocked with supplier_not_factory, supplier_preorder or supplier_slow_dispatch.
  3. Compliance — prohibited goods and brand-risk checks. Unclear cases go to needs_review; our team decides within one business day.
  4. Landed cost for every variant to the destination country (see §6).
  5. English title and option names.

A product is imported per destination country. To sell the same item in the US and Germany, import it twice (destination_country: "US" and "DE"). Each import has its own id.

Importing again. If you import the same offer for the same country again:

When With a live key With a test key
Within 1 hour of the last pricing Existing product, 200, "reused": true Same
Later We read 1688 again and re-price: 201, "reused": false, new 7-day price lock Existing product, 200, "reused": true
With "refresh": true We read 1688 again and re-price at once: 201, "reused": false 403 live_key_required

Every POST /products call counts toward the import limits (§12), also when it returns an existing product. To read a product you already imported, use GET /products/{id} (it does not count toward the import limits).

Product images come from the 1688 listing as they are. They may show Chinese text.

Product status

status Can order? What to do
ready yes —
needs_weight variants with a weight, yes Send the missing weights (below)
needs_review no Wait for product.blocked or a status change
blocked no See block_reasons; pick another supplier
unavailable no Delisted on 1688, or no variant can ship

Minimum order above 1. We ship one order to one buyer, so we cannot buy from a seller that does not sell single units. If min_order_qty is more than 1, every variant has cost.available: false with unavailable_reason: "min_order_above_one", the product is unavailable, and an order for it is refused with 409 product_not_ready. Pick a listing that sells single units.

Variants and SKUs

Each variant has a stable sku like JTL-731464528956-5177745329683 (JTL-{offer id}-{sku_id}). Use it as the SKU in your own catalog. You can then order with just {"sku": "...", "quantity": 1}.

A product without variants has one variant with sku_id: "" (empty). Its sku ends in -0, for example JTL-731464528956-0. In URL paths, write its sku_id as _.

Missing weights

Some factories do not state a variant’s weight. Those variants have weight_source: "none" and cost.available: false. Give us your best estimate:

PATCH /products/{product_id}/variants/{sku_id}
{ "weight_kg": 0.42, "length_cm": 20, "width_cm": 15, "height_cm": 5 }
  • Use _ as sku_id for a product without variants.
  • weight_kg must be 0.01–30. Each dimension must be 0–200 cm.
  • You can only set weights the supplier did not give (409 weight_not_editable).
  • This needs a live key.
  • The parcel is weighed at our warehouse anyway — see §9.

Price lock and automatic refresh

Each product has price_locked_until: 7 days after it was last priced. Until then, quotes and orders use the supplier price we read then. We do not read 1688 again for them (only a new import, see above, or the refresh below does).

We check products before their lock runs out. Once a day, we re-read from 1688 the products whose lock ends within about a day (status ready or needs_weight), soonest first. Each run handles a limited number of products. If a product cannot be read, we try it again after about a day and a half. After a successful refresh the product gets a new 7-day lock, and:

  • a variant’s landed cost went up by more than 3%, a variant is now out of stock, or a variant can no longer ship → product.price_changed webhook and an email to you;
  • the listing was removed → product.unavailable;
  • the supplier no longer passes the supplier check → product.blocked.

Price drops and smaller changes send no webhook; the product simply shows the new cost.

If you quote or order a product whose lock has already run out, we re-read 1688 first and use the new price. This happens with live and test keys.

The USD amounts are worked out again each time you quote or order. They can differ a little from the variant cost you saw at import. Use expected_total on POST /orders to refuse an order that would cost more than you expect.


6. Quotes and pricing

POST /quotes
{
  "destination_country": "US",
  "lines": [ { "sku": "JTL-731464528956-5177745329683", "quantity": 2 } ]
}

The quote is exactly what POST /orders would charge right now. Nothing is stored. The response has goods, domestic_freight, international_freight, total, chargeable_weight_kg, price_locked_until, lines and warnings. If a price lock had run out and we re-priced, warnings contains price_lock_expired_repriced.

How an order is priced:

Part How
Goods 1688 unit price × quantity, converted to USD
China domestic freight Once per supplier in the order, from the supplier’s freight template
International freight All lines ship as one parcel on the destination’s shipping route. Priced on the total actual weight of the items plus a small packaging allowance. Import duties are included on DDP routes.
Parcel handling $1.00 per order. It is part of international_freight, not a separate field.
Service fee none

Rules:

  • All lines in one order must have the same destination country (they share one parcel and one shipping route). Otherwise: 409 mixed_destinations.
  • International freight uses actual weight, not volume. chargeable_weight_kg is the weight the shipping route bills; the route may round it up (for example to its minimum weight). The per-variant field cost.billed_on_volume is false for current prices; older records may still show true.
  • The real parcel is weighed at our warehouse. Any difference is settled later (§9).
  • Worked example (Nov 2026, phone stand, 1688 offer 731464528956, to the US): goods $4.01 + China freight $1.28 + international freight $19.75 (US DDP freight $18.75 + $1.00 parcel handling) = $25.04.

Two ways to write an order line

Line format Example How we find the product
sku {"sku": "JTL-731464528956-5177745329683", "quantity": 1} The product you imported for this offer and the order’s destination country
product_id + sku_id {"product_id": "6744a1f0c2d9b3e1a8f01234", "sku_id": "5177745329683", "quantity": 1} Exactly that product

The order’s destination country is destination_country on a quote, and recipient.country on an order.

  • sku line, product not imported for that country → 404 product_not_found.
  • sku line in a quote without destination_country, and you imported the item for more than one country → 400 invalid_request (param: "destination_country"). Send destination_country whenever you import the same item for several countries.
  • product_id line, but that product was imported for another country → 409 destination_mismatch.
  • product_id that is not in your account → 404 product_not_found.
  • sku_id or sku variant that the product does not have → 400 variant_not_found.
  • quantity is a whole number from 1 to 999. An order has at most 50 lines.

7. Orders

Create

POST /orders
{
  "external_order_id": "SO-10023",
  "external_order_name": "#10023",
  "recipient": {
    "name": "...", "phone": "...", "address1": "...", "address2": "",
    "city": "...", "state": "CA", "postal_code": "...", "country": "US"
  },
  "lines": [ { "sku": "JTL-731464528956-5177745329683", "quantity": 1 } ],
  "payment": { "auto_pay": true },
  "expected_total": { "amount": "26.00", "currency": "USD" },
  "metadata": { "channel": "my-store-eu" }
}
  • external_order_id is required, at most 120 characters (longer is 400 invalid_request). It is your own order id; see §4.
  • recipient is your buyer. It is used only for shipping and is never saved to your address book.
    • phone is required by every carrier we use. If it is empty we use the phone on your JTLGO account (in both modes).
    • recipient.email is accepted but not used yet.
    • If fields are missing, 400 recipient_incomplete lists them in fields with the names above (name, phone, address1, city, postal_code, country).
  • Country codes must be exactly two letters ("US", not "USA").
  • recipient.country is the order’s destination country. Products must be imported for it (see Two ways to write an order line).
  • expected_total (optional): if our total is higher, the order is refused with 409 price_changed and current_total in the error. Nothing is created. amount must be a decimal string or number such as "26.00" (anything else is 400 invalid_request).
  • payment.auto_pay must be true or false (a string such as "false" is 400). Default true.
  • If a product’s 7-day price lock has run out, the order (or quote) refreshes the price first. If 1688 cannot be read, you get 502 source_unavailable. We do not try that product again for 30 minutes, so retry after that or import it again.
  • metadata: up to 20 string pairs of your own, returned on the order and in webhooks.

Invoices and payment notices go to you, never to your buyer.

Order status

status Meaning Your action
awaiting_payment Created; not paid Top up your wallet, then POST /orders/{id}/pay
processing Paid; we buy from the factory, receive and pack —
awaiting_top_up Weighed heavier than quoted: a weight surcharge is due (§9) Pay the surcharge on the account page to release the parcel
ready_to_ship Weighed and settled —
shipped Handed to the carrier; shipment.tracking_number is set Pass the tracking number to your buyer
delivered The carrier reports delivery —
cancelled Cancelled —

The usual path is awaiting_payment → processing → ready_to_ship → shipped → delivered. awaiting_top_up can come between processing and ready_to_ship.

Cancelling (below):

From Result
awaiting_payment cancelled at once
processing, awaiting_top_up, ready_to_ship (paid, not shipped) Status stays; cancellation.status becomes requested. Later cancelled (order.cancelled) or the request is refused (order.cancellation_rejected)
shipped, delivered 409 order_not_cancellable

Typical timing: supplier dispatch ≤ 72 h, warehouse receive + pack 1–2 days, then the shipping route’s transit time (transit_text on /destinations).

Read

GET /orders/ORD-20261120-BDFAA
GET /orders/ext:SO-10023
GET /orders?status=shipped&updated_after=2026-11-20T00:00:00Z

ext: + your external_order_id finds an order by your own id.

GET /orders returns your orders newest first. Query parameters:

Parameter Meaning
status Only orders with this status
external_order_id Only the order with this id of yours
created_after ISO 8601 time; orders created after it
updated_after ISO 8601 time; orders changed after it
limit 1–100, default 20
cursor next_cursor from the previous page

With status, a page can hold fewer than limit orders. Keep following next_cursor until it is null.

Cancel

POST /orders/{id}/cancel
{ "reason": "Buyer changed mind" }
  • Not paid yet → cancelled at once.
  • Paid, not shipped → the goods may already be bought. The order gets cancellation.status: "requested". Our team answers within one business day with order.cancelled (refund to your wallet, minus any supplier cost we cannot get back; we tell you about it) or order.cancellation_rejected.
  • Shipped → 409 order_not_cancellable.
  • Cancelling an order that is already cancelled returns it unchanged.

8. Wallet and payment

Orders are paid from your JTLGO wallet (USD). GET /wallet returns available (your balance), pending_orders_total (what your unpaid API orders cost) and top_up_url.

Topping up your wallet. There is no API for this.

  1. Open top_up_url (Account → Wallet → Top up by bank transfer).
  2. Send a bank transfer to the account shown there.
  3. Enter the amount, the payer name and the bank reference on that page.
  4. We match it with our bank statement and add the amount that actually arrived (after any bank fees) to your wallet. The minimum is shown on that page (USD 50 at launch).

Wallet funds can only be spent on orders. They cannot be withdrawn.

How orders get paid.

  1. With payment.auto_pay: true (the default), a new order is paid the moment it is created.
  2. If the balance is not enough, the order is still created and stays awaiting_payment. You get order.payment_failed with failure_reason: "insufficient_balance" (and one email per order per day).
  3. When your wallet top-up is added, orders that are still awaiting_payment are paid automatically, oldest first, until the balance runs out. Orders you created with payment.auto_pay: false are skipped; they wait for you.
  4. To pay an order yourself, call POST /orders/{id}/pay. If the balance is too low you get 402 insufficient_balance with required and available.

Unpaid orders are not bought. We do not cancel them for you: cancel orders you no longer want (POST /orders/{id}/cancel).

Refunds (cancellations, weight refunds) go back to your wallet.


9. Weight settlement

We quote on the weight we know (the supplier’s figure, or yours). At our warehouse the packed parcel is weighed:

Result What happens Event
Within tolerance Nothing order.weight_settled
Lighter The difference is refunded to your wallet order.weight_settled (negative weight_settlement.difference)
Heavier A weight surcharge is due. The order goes to awaiting_top_up and the parcel is held until it is paid order.top_up_due

The API names use “top up” for the weight surcharge: status awaiting_top_up, event order.top_up_due, weight_settlement.status top_up_due / top_up_paid. This is not the same as topping up your wallet.

During the pilot, pay a weight surcharge on your JTLGO account page, or arrange it with JTLGO. POST /orders/{id}/pay answers 409 top_up_pay_unsupported for it.


10. Webhooks

Register an HTTPS endpoint:

POST /webhook-endpoints
{
  "url": "https://erp.example.com/hooks/jtlgo",
  "events": ["order.paid", "order.shipped", "order.top_up_due"]
}
  • The response contains secret (whsec_…). It is shown once.
  • Up to 5 endpoints per account in each mode (live and test count separately; 409 webhook_limit_reached).
  • The URL must be https, on port 443, with a public host name (400 webhook_url_invalid).
  • Send an Idempotency-Key so a retried registration does not create a second endpoint.

Manage endpoints:

Request What it does
GET /webhook-endpoints Your endpoints in this mode, oldest first
DELETE /webhook-endpoints/{id} Removes the endpoint (204)
POST /webhook-endpoints/{id}/test Sends a signed ping now
POST /webhook-endpoints/{id}/rotate-secret New secret, shown once; the old one stops at once
POST /webhook-endpoints/{id}/enable Turns a disabled endpoint back on

POST /webhook-endpoints/{id}/test answers with delivered, status_code, duration_ms and error. It is limited to 5 per minute per account.

To rotate without losing events: call rotate-secret, then deploy the new secret. Deliveries that fail verification in between are retried (first retry after 1 minute), so nothing is lost.

Event types

Event When
order.created Order created (any channel: API, your account page)
order.paid Payment recorded
order.payment_failed Auto-pay failed (e.g. insufficient_balance)
order.top_up_due Weighed heavier; a weight surcharge is due
order.weight_settled Weighed; no difference, refunded, or the surcharge was paid
order.shipped Номер отслеживания available
order.delivered Delivered
order.cancelled Cancelled (by you, or by our team after your cancellation request)
order.cancellation_rejected Paid-order cancellation refused
product.price_changed Automatic refresh: landed cost up by more than 3%, or a variant is out of stock or can no longer ship
product.unavailable Delisted / nothing can ship
product.blocked Supplier or compliance check now fails
ping POST /webhook-endpoints/{id}/test

Payload

{
  "id": "evt_01JD2X8M3K9Q",
  "type": "order.shipped",
  "created_at": "2026-11-26T03:12:44Z",
  "mode": "live",
  "data": {
    "order": {
      "id": "ORD-20261120-BDFAA",
      "status": "shipped",
      "shipment": { "carrier": "USPS", "tracking_number": "9400…" },
      "…": "…"
    }
  }
}

data holds the full resource (order or product) as GET would return it at that moment.

Verifying the signature

Every delivery has these headers:

JTLGO-Signature: t=1795662764,v1=5c1e…
JTLGO-Event-Id: evt_01JD2X8M3K9Q

t is the Unix time of the delivery attempt. v1 is HMAC-SHA256(secret, t + "." + raw_body) in hex. Verify against the raw body bytes, compare in constant time, and reject if t is more than 5 minutes old.

// Node.js (Express):
// app.post('/hooks/jtlgo', express.raw({ type: 'application/json' }), handler)
const crypto = require('node:crypto');
function verify(rawBody, header, secret, toleranceSec = 300) {
  const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
  const expected = crypto.createHmac('sha256', secret)
    .update(`${t}.${rawBody}`).digest('hex');
  const a = Buffer.from(expected, 'hex');
  const b = Buffer.from(parts.v1 || '', 'hex');
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}
# Python
import hmac, hashlib, time
def verify(raw_body: bytes, header: str, secret: str, tolerance=300) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    t = int(parts.get("t", "0"))
    if abs(time.time() - t) > tolerance:
        return False
    signed = f"{t}.".encode() + raw_body
    expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts.get("v1", ""))
// PHP
function jtlgo_verify(string $raw, string $header, string $secret, int $tol = 300): bool {
  parse_str(str_replace(',', '&', $header), $p);
  if (abs(time() - (int)($p['t'] ?? 0)) > $tol) return false;
  $expected = hash_hmac('sha256', $p['t'] . '.' . $raw, $secret);
  return hash_equals($expected, $p['v1'] ?? '');
}

Delivery rules

  • Answer 2xx within 10 seconds. This is a hard limit for the whole request, including the response body. Do the work afterwards (queue it).
  • Webhooks are per mode: endpoints created with a test key receive test events only, and live endpoints live events only. "*" in events subscribes to everything.
  • Live order events are found by a check that runs every minute, so expect up to a few minutes of delay.
  • The error of a test delivery is a category: timeout, unreachable, tls_error, address_not_allowed or http_{status} (for example http_500).
  • A failed delivery is retried with backoff: 1 min, 5 min, 30 min, 2 h, 6 h, 12 h (7 tries over about 21 h).
  • After 3 days of continuous failure the endpoint is disabled. Fix your receiver, then call POST /webhook-endpoints/{id}/enable (the secret stays the same).
  • If the Open API is turned off for your account, queued deliveries are dropped and no new order events are made. When it is turned back on, events resume.
  • Delivery is at least once and not ordered. De-duplicate on id. Treat the data.order.status / updated_at in the payload (or a fresh GET) as the truth.

Missed events

GET /events lists the events of the last 30 days for the key’s mode, oldest first.

Parameter Meaning
type Only this event type, e.g. order.shipped
created_after ISO 8601 time; events after it
limit 1–100, default 20
cursor next_cursor from the previous page

11. Test mode (sandbox)

Keys starting jtl_test_ run in test mode on the same host:

  • Imports read real 1688 data and count toward your import limits. A product you already imported is returned unchanged (see §5).
  • Orders are created with mode: "test" and an id starting TEST-. They are never bought or shipped.
  • Test orders are paid from a test balance of $1,000 per order. A larger order gets insufficient_balance, so you can test that path too. GET /wallet shows $1,000.
  • Quotes and prices are real: they come from products you really imported.
  • Test orders are invisible to live keys and the other way round. They are deleted 90 days after creation.
  • GET /orders filters (status, external_order_id, created_after, updated_after) work as in live mode.

Move a test order through its life and get the real webhooks:

POST /sandbox/orders/{id}/advance
{ "to": "shipped" }

POST /sandbox/orders/{id}/advance
{ "to": "awaiting_top_up", "weight_difference_usd": "1.20" }

POST /sandbox/orders/{id}/advance
{ "to": "ready_to_ship", "weight_difference_usd": "-0.80" }
  • to is one of processing, awaiting_top_up, ready_to_ship, shipped, delivered. An unpaid order is marked paid first.
  • awaiting_top_up needs a positive weight_difference_usd (the weight surcharge).
  • A negative weight_difference_usd on ready_to_ship, shipped or delivered simulates a weight refund (weight_settlement.status: "refunded"). Without it the weight is settled with no difference.
  • Moving back, or to the stage the order is already at, is 409 invalid_transition. So is advancing a cancelled order.
  • Cancelling a paid test order sets cancellation.status: "requested", and it stays requested: nobody answers test requests. Cancelling an unpaid test order cancels it at once.

12. Rate limits

What Limit
All requests 120 / minute per key
POST /products (import) 10 / minute and 300 / 24 hours per account
POST /orders 60 / minute per account
POST /webhook-endpoints/{id}/test 5 / minute per account
Requests that fail authentication 30 / minute per IP address

The daily import limit is not a calendar day. It is a 24-hour window that starts with your first counted import.

Rate-limited responses carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. A 429 also carries Retry-After: the seconds until that limit resets. Back off exponentially with jitter on 429 and 5xx.

Imports are limited because each one reads the live 1688 listing and runs compliance checks. Reading a product you already imported (GET /products/{id}) does not count toward them.


13. Error codes

Authentication and permission

code HTTP Meaning
missing_api_key 401 No Authorization: Bearer header
invalid_api_key 401 Key unknown, revoked or expired
api_not_enabled 403 The account is not enabled for the Open API
account_unavailable 403 The JTLGO account is not active
insufficient_scope 403 The key lacks the scope
ip_not_allowed 403 Request IP is not on the key’s allowlist
live_key_required 403 That change affects live orders; use a jtl_live_ key
test_mode_only 403 /sandbox/* needs a jtl_test_ key
site_unsupported 403 Dropshipping is not available for this account’s site

Products and destinations

code HTTP Meaning
invalid_source 400 source is not a 1688 offer id or URL
destination_unsupported 400 We have no shipping route to that country
destination_unavailable 503 The shipping route for that country is paused
source_not_found 404 The 1688 listing does not exist or was removed
source_unavailable 502 1688 did not answer (also when an expired price cannot be refreshed: retry after 30 minutes)
product_not_found 404 No such product in your account, or a sku not imported for that country
product_not_ready 409 Product is needs_review, blocked or unavailable
variant_not_found 400 sku_id / sku is not on that product
variant_unpriced 409 The variant needs a weight or cannot ship
weight_not_editable 409 The supplier already gave that weight
invalid_weight 400 Weight not between 0.01 and 30 kg, or dimensions not between 0 and 200 cm

Quotes and orders

code HTTP Meaning
invalid_quantity 400 Quantity is not a whole number from 1 to 999
parcel_too_heavy 409 The combined parcel is over the shipping route’s weight limit
mixed_destinations 409 Lines for different countries in one order
destination_mismatch 409 A product_id line was imported for another country than the order’s
recipient_incomplete 400 Missing address fields (see fields)
price_changed 409 Total above expected_total (see current_total)
order_not_found 404 No such order in your account and mode
order_not_cancellable 409 Already shipped

Payment

code HTTP Meaning
insufficient_balance 402 Wallet too low (see required and available)
order_not_payable 409 Already paid or cancelled
top_up_pay_unsupported 409 A weight surcharge is paid on the account page for now
payment_failed 409 The wallet refused the payment for another reason (see message)

Idempotency

code HTTP Meaning
idempotency_key_reused 409 Same key, different request
idempotency_in_progress 409 The first request with this key is still running; retry shortly
invalid_idempotency_key 400 Key is not 8–128 characters of A-Z a-z 0-9 . _ : -

Webhooks and sandbox

code HTTP Meaning
webhook_url_invalid 400 Not https, not a public host, or not port 443
webhook_limit_reached 409 5 endpoints already in this mode
webhook_not_found 404 No such endpoint in this account and mode
invalid_transition 409 Sandbox: the test order is already at or past that stage, or is cancelled

General

code HTTP Meaning
invalid_request 400 A parameter is missing or malformed (see param)
invalid_json 400 The body is not valid JSON
invalid_cursor 400 cursor was not one we returned
payload_too_large 413 Request body over 64 KB
not_found 404 No such endpoint (check the method and path)
rate_limited 429 Too many requests; see Retry-After
temporarily_unavailable 503 A dependency is briefly unavailable; retry with backoff
internal_error 500 Our bug; quote request_id

14. Going live checklist

  • Built and tested end-to-end with a jtl_test_ key, including /sandbox/.../advance.
  • Always send external_order_id; retry POST /orders on timeouts with the same id.
  • Send destination_country on quotes if you import the same item for several countries.
  • Webhook signature verified on the raw body; events de-duplicated on id.
  • Handling order.payment_failed and order.top_up_due (otherwise parcels wait).
  • Handling product.price_changed / unavailable / blocked in your catalog.
  • Recipient phone always sent.
  • Live key stored on your server only, with only the scopes it needs, and an IP allowlist if your servers have fixed IPs.
  • Rotating a key: create a new one, deploy it, then revoke the old one.
  • Wallet topped up, or auto_pay: false and your own payment flow via /pay.

15. Changelog and versioning

The version is in the path (/open/v1). Within v1 we only make additive changes: new endpoints, new optional fields, new event types, new enum values, new error codes. Your code must ignore unknown fields and accept unknown enum values. Breaking changes go to /v2, with at least 6 months of overlap and email notice.

Date Change
2026-11-23 v1 pilot: self-service keys on the account page, test mode, webhooks (with rotate-secret and enable), email notice for key changes
2026-11-23 Pilot fixes before launch: external_order_id over 120 characters is refused; sku lines can need destination_country; test-mode order filters; test-key imports never re-price

API дропшиппинга: частые вопросы

Есть ли API для дропшиппинга с 1688?
Да. API дропшиппинга JTLGO — это REST API (v1, в пилотном режиме). Ваша ERP, система заказов или собственный магазин может импортировать товары с 1688 по ссылке или ID предложения, видеть стоимость каждого варианта с доставкой в страну покупателя, оформлять заказы с оплатой из кошелька JTLGO и получать трек-номера через webhook или опросом API.
Сколько стоит API?
Платы за API и подписки нет. Каждый заказ оплачивается по цене с доставкой: товар, доставка по Китаю и международная доставка. В международную доставку входит сбор $1.00 за обработку посылки, а на маршрутах DDP — ещё и ввозные пошлины. Все суммы указаны в USD.
Можно ли протестировать, ничего не покупая?
Да. Ключи, которые начинаются с jtl_test_, работают в тестовом режиме: заказы помечаются как тестовые, ничего не закупается и реальные деньги не списываются.
Чем это отличается от покупки на 1688 напрямую?
1688 продаёт только внутри Китая, на китайском языке и покупателям с китайским аккаунтом и адресом. С API JTLGO вы работаете на английском и в долларах США: мы выкупаем товар у продавца на 1688, принимаем и взвешиваем посылку на нашем складе в Китае и отправляем её вашему покупателю, а на маршрутах DDP пошлины уже оплачены.
Нужно ли писать код, чтобы работать по дропшиппингу с JTLGO?
Только для подключения собственной системы. Магазины на Shopify и WooCommerce подключаются без кода в разделе «Подключение магазинов» вашего аккаунта JTLGO. API нужен для ERP, систем заказов и магазинов, сделанных на заказ.
Как получить доступ?
API работает в пилотном режиме. Попросите нас включить его для вашего аккаунта, а затем создайте тестовые и боевые ключи в разделе «Аккаунт › Разработчикам».