تخطَّ إلى المحتوى
LOLIAN

المرجع

مرجع الواجهة

مولَّد من وصف الواجهة الحي، لذا لا يمكن أن يختلف عنها. يبقى النص التقني بالإنجليزية في كل اللغات.

بداية سريعة

أرسل مفتاحك في ترويسة Authorization مع كل طلب. هذا الطلب لا يحتاج إلى نطاق، ويخبرك بالمفتاح الذي تراه الواجهة.

العنوان الأساسي
https://api.lolianstore.com
الإصدار
1.5.0
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/me" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

تقرأ الأمثلة عنوان الواجهة ومفتاحك من متغيرات البيئة (LOLIAN_API_URL وLOLIAN_API_KEY)، فلا يحتوي أي مثال منسوخ على بيانات سرية.

الإصدار الحالي 1.5.0. الإصدارات وحالات الإيقاف في سجل التغييرات. افتح سجل التغييرات

المصادقة

Send your API key as a bearer token: Authorization: Bearer lk1_<prefix>_<secret>. Create keys in your account (shown once). A key carries explicit scopes (listed on every operation); a call without the scope is 403 API_KEY_SCOPE_MISSING. Revocation is immediate. Never put a key in a browser.

النطاقات

لا يستطيع المفتاح إلا ما تتيحه نطاقاته. تُحدَّد النطاقات عند إنشاء المفتاح.

  • addresses:readRead your saved delivery addressesنقاط النهاية: 2
  • addresses:writeCreate, change and delete your saved delivery addressesنقاط النهاية: 3
  • catalog:readRead products, categories, brands, search and the sync feedنقاط النهاية: 8
  • orders:readRead your own orders and price quotesنقاط النهاية: 5
  • orders:writeCreate and pay orders, cancel your ownنقاط النهاية: 4
  • points:readRead your referral-points balance and historyنقاط النهاية: 2
  • profile:readRead your account's profile identity: first name, last name and whether your e-mail address and phone number are verifiedنقاط النهاية: —
  • referral:readRead your referral code, link and statisticsنقاط النهاية: 2
  • topups:writeStart wallet top-upsنقاط النهاية: 1
  • wallet:readRead your wallet balance and historyنقاط النهاية: 4

Personal data is returned only through the scope of its own area: profile:read is the only scope that returns the account's profile identity (GET /me); without it that call returns only the key's own facts.

حدود الطلبات

Every answer to an authenticated call, an error included, carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset; over the limit you get 429 with Retry-After (seconds). Cheap reads cost less than listings and searches; writes also spend from a write allowance.

الأخطاء

Every error has the same shape: {"error": {"code", "message", "details"}} with a stable machine code and a correlation_id in details to quote to support. Validation problems are 422.

عدم التكرار

Creating an order, starting a payment and creating a top-up require an Idempotency-Key header (8-128 characters of A-Za-z0-9._:-). Retrying the SAME request with the same key returns the original result (200) and never creates a second order or payment; the same key with a different request is 409.

التصفّح بالصفحات

Lists return next_cursor (opaque); pass it back as cursor. Catalogue prices are the caller's own price list, read from the account on every request.

الطلبات الشرطية

The catalogue reads (categories, brands, products, facets, one product) carry an ETag; send it back as If-None-Match and an unchanged answer is 304 with no body. The tag covers the body, which holds your own prices, so a tag is never valid for another account. The sync feed and GET /catalog/meta are not conditional (they carry the server's clock).

المال

Amounts are decimal strings; never floats. The wallet is one USD balance. Points are a separate integer balance that can pay a whole order; they are not money.

الأسعار والحسابات

A key acts for the account that created it and carries no pricing authority: every catalogue, quote and order answer is priced from that account's classification, read on every request. A customer account's key sees the retail price list; a trader account's key sees its trade price in the same price field. An answer never carries both price lists and no field names the other one. What a quote shows is what the order charges: nothing is added for ordering through the API.

دورة حياة الطلب

POST /orders (with an Idempotency-Key) prices the lines on the server, reserves the stock and starts the payment in the payment_method you name: wallet, nowpayments_crypto or points (an API order cannot be paid any other way). A wallet or points payment settles at once (paid); a crypto payment keeps the order pending_payment until the network confirms it (payment_review while a person checks an unusual amount). An unpaid order expires (expired) and gives its stock back; POST /orders/{order_id}/cancel cancels your own unpaid order. A paid order then moves through confirmed, processing, packed, shipped, out_for_delivery and delivered; refunds are listed at GET /orders/{order_id}/refunds. Read GET /orders/{order_id} for the current state (there are no webhooks yet).

الإصدارات والإيقاف

GET /changelog (no key needed) lists every release and every deprecation notice as JSON. A deprecated operation is marked deprecated here and answers with Deprecation, Sunset and Link headers; its notice names the day it may stop working and what to use instead.

المعاملات المشتركة

تظهر هذه المعاملات في نقاط نهاية كثيرة بالمعنى نفسه.

  • If-None-Matchترويسة

    The ETag of an answer you already hold: when it is still current the answer is 304 with no body.

  • localeاستعلام

    Language of names and descriptions: tr, en, ar, fr. Omitted: the first supported Accept-Language tag, else tr; a language that is not supported is tr (never an error, and never your account's preference: an integration's output must not change when someone edits a profile). A product without a translation in it falls back to English, then to the lowest-numbered language it has (content.is_fallback).

  • currencyاستعلام

    Optional display currency (USD, TRY, EUR, RUB): adds display_price, converted from the stored exchange rate. The authoritative price is always in the product's own currency.

  • Idempotency-Keyترويسة

    8-128 characters of A-Za-z0-9._:-. Generate a fresh one per intended action (a UUID is ideal) and reuse it ONLY to retry that same action.

نقاط النهاية

بيانات الاعتماد

Developer Me

GET/api/v1/developer/me

أي مفتاح صالح

Which key is calling: a connectivity and credentials check that any valid key may make, with no particular scope. It names the key (id, name, prefix, scopes, expiry, creation). The key owner's own first and last name and whether their e-mail address and phone number are verified are returned ONLY to a key that holds profile:read; for any other key those four fields are absent.

الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/me" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

الكتالوج

Get Brands

GET/api/v1/developer/brands

النطاق: catalog:read

Active catalogue brands (curated brands first, alphabetical; unbranded last). A product may also carry a free-typed brand name: product.brand.kind == "custom".

المعاملات
الاستجابات
  • 200

    Successful Response

    DevBrandList

    الترويسات: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    الترويسات: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • الأخطاء

    400, 401, 403, 404, 409, 422, 429, 500, 503

أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/brands" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Catalog Changes

GET/api/v1/developer/catalog/changes

النطاق: catalog:read

Everything that changed since updated_after, oldest first: a product's new full form, or removed when it left the catalogue. Page with cursor while next_cursor is set; when it is null, remember watermark and send it as the next updated_after. Applying a change twice is harmless. A change counts when anything a consumer sees changed: price, stock, status, the product's text, audience, variants, pictures, category or brand (not the exchange rate).

المعاملات
الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/catalog/changes" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Catalog Meta

GET/api/v1/developer/catalog/meta

النطاق: catalog:read

Languages, display currencies, limits and the server clock (use server_time as the anchor of an initial import, see GET /catalog/changes).

الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/catalog/meta" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

List Categories

GET/api/v1/developer/categories

النطاق: catalog:read

The active category tree, flat and depth-first, with each category's path. Products are published into leaf categories (is_leaf).

المعاملات
الاستجابات
  • 200

    Successful Response

    DevCategoryList

    الترويسات: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    الترويسات: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • الأخطاء

    400, 401, 403, 404, 409, 422, 429, 500, 503

أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/categories" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

List Products

GET/api/v1/developer/products

النطاق: catalog:read

Products on sale, filtered, sorted and paged by cursor. Filters are those of the website (category_id, brand_id, brand_kind, audience, in_stock, featured, min_price, max_price, search); the price you see and filter by is your own price list.

المعاملات
  • If-None-Matchترويسةstringاختياري

    موصوف ضمن المعاملات المشتركة

  • sortاستعلامstringاختياريالافتراضي newest

    newest (default); price_asc / price_desc order by the price converted to currency (required then); name by the case-folded name in locale. Every order ends with the product id, so pages are stable. A cursor belongs to the sort, currency and locale it was issued for.

    newest · price_asc · price_desc · name

  • cursorاستعلامstring | nullاختياري

    max 512 chars

  • limitاستعلامintegerاختياريالافتراضي 20

    1-50

  • localeاستعلامLocale | nullاختياري

    موصوف ضمن المعاملات المشتركة

    ar · en · tr · fr

  • currencyاستعلامCurrencyCode | nullاختياري

    موصوف ضمن المعاملات المشتركة

    TRY · USD · EUR · RUB

  • category_idاستعلامarray of string (uuid) | nullاختياري

    One or more categories (repeat the parameter); each one's descendants are included (Watches lists Men's, Women's and Unisex watches). A product matching ANY of them is selected.

    max 25 items

  • brand_idاستعلامarray of string (uuid) | nullاختياري

    One or more brand rows (repeat the parameter), the Unbranded sentinel included. Combined with brand_kind as a UNION.

    max 25 items

  • brand_kindاستعلامarray of string | nullاختياري

    curated = a catalog brand, custom = Other Brands (an admin-typed name not in the catalog), unbranded = no brand. Matches brand.kind of the response. Selecting both brand_id and brand_kind returns the UNION of the two.

    max 3 items

  • audienceاستعلامarray of ProductAudience | nullاختياري

    Who the product is for: men, women, unisex or general. One value, several separated by commas (audience=men,unisex), or the parameter repeated; a product matching ANY of them is selected. Exact: men does not include unisex. An unknown value is a 422.

    max 25 chars

  • in_stockاستعلامboolean | nullاختياري

    Only products (or with a variant) that can be bought now.

  • featuredاستعلامboolean | nullاختياري
  • min_priceاستعلامnumber | string | nullاختياري

    Lower bound of the DISPLAY price (in currency, rounded to its minor unit; converted server-side from the active FX rate). Without currency it compares the raw base amounts. At most 14 integer and 4 decimal digits (a price column's range).

  • max_priceاستعلامnumber | string | nullاختياري

    Upper bound of the display price, see min_price.

  • searchاستعلامstring | nullاختياري

    Case-insensitive substring of any locale's translated product name, the product SKU, the brand name (a catalogue brand's or a free-typed one) or the SKU of one of its variants that is on sale. % and _ are literal characters, not wildcards. Results are not ranked and accents are not folded (hermes does not match Hermès).

    1-100 chars

الاستجابات
  • 200

    Successful Response

    DevProductList

    الترويسات: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    الترويسات: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • الأخطاء

    400, 401, 403, 404, 409, 422, 429, 500, 503

أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/products" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Get Product By Slug

GET/api/v1/developer/products/by-slug/{slug}

النطاق: catalog:read

المعاملات
الاستجابات
  • 200

    Successful Response

    DevProductResponse

    الترويسات: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    الترويسات: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • الأخطاء

    400, 401, 403, 404, 409, 422, 429, 500, 503

أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/products/by-slug/SLUG" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Product Facets

GET/api/v1/developer/products/facets

النطاق: catalog:read

Counts per category / brand / availability and the price range for the current filter (the same parameters as the listing), in your own price list.

المعاملات
  • If-None-Matchترويسةstringاختياري

    موصوف ضمن المعاملات المشتركة

  • localeاستعلامLocale | nullاختياري

    موصوف ضمن المعاملات المشتركة

    ar · en · tr · fr

  • currencyاستعلامCurrencyCode | nullاختياري

    موصوف ضمن المعاملات المشتركة

    TRY · USD · EUR · RUB

  • category_idاستعلامarray of string (uuid) | nullاختياري

    One or more categories (repeat the parameter); each one's descendants are included (Watches lists Men's, Women's and Unisex watches). A product matching ANY of them is selected.

    max 25 items

  • brand_idاستعلامarray of string (uuid) | nullاختياري

    One or more brand rows (repeat the parameter), the Unbranded sentinel included. Combined with brand_kind as a UNION.

    max 25 items

  • brand_kindاستعلامarray of string | nullاختياري

    curated = a catalog brand, custom = Other Brands (an admin-typed name not in the catalog), unbranded = no brand. Matches brand.kind of the response. Selecting both brand_id and brand_kind returns the UNION of the two.

    max 3 items

  • audienceاستعلامarray of ProductAudience | nullاختياري

    Who the product is for: men, women, unisex or general. One value, several separated by commas (audience=men,unisex), or the parameter repeated; a product matching ANY of them is selected. Exact: men does not include unisex. An unknown value is a 422.

    max 25 chars

  • in_stockاستعلامboolean | nullاختياري

    Only products (or with a variant) that can be bought now.

  • featuredاستعلامboolean | nullاختياري
  • min_priceاستعلامnumber | string | nullاختياري

    Lower bound of the DISPLAY price (in currency, rounded to its minor unit; converted server-side from the active FX rate). Without currency it compares the raw base amounts. At most 14 integer and 4 decimal digits (a price column's range).

  • max_priceاستعلامnumber | string | nullاختياري

    Upper bound of the display price, see min_price.

  • searchاستعلامstring | nullاختياري

    Case-insensitive substring of any locale's translated product name, the product SKU, the brand name (a catalogue brand's or a free-typed one) or the SKU of one of its variants that is on sale. % and _ are literal characters, not wildcards. Results are not ranked and accents are not folded (hermes does not match Hermès).

    1-100 chars

الاستجابات
  • 200

    Successful Response

    ProductFacetsResponse

    الترويسات: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    الترويسات: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • الأخطاء

    400, 401, 403, 404, 409, 422, 429, 500, 503

أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/products/facets" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Get Product

GET/api/v1/developer/products/{product_id}

النطاق: catalog:read

المعاملات
الاستجابات
  • 200

    Successful Response

    DevProductResponse

    الترويسات: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    الترويسات: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • الأخطاء

    400, 401, 403, 404, 409, 422, 429, 500, 503

أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/products/PRODUCT_ID" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

الطلبات

List Orders

GET/api/v1/developer/orders

النطاق: orders:read

Your orders, newest first, from every source (website, Telegram, Mini App and API).

المعاملات
  • cursorاستعلامstring | nullاختياري

    max 512 chars

  • limitاستعلامintegerاختياريالافتراضي 20

    1-50

  • statusاستعلامOrderStatus | nullاختياري

    pending_payment · payment_review · paid · confirmed · processing · packed · shipped · out_for_delivery · delivered · cancelled · refunded · expired

  • payment_statusاستعلامPaymentStatus | nullاختياري

    created · pending · awaiting_customer · awaiting_review · processing · paid · failed · expired · cancelled · refunded · partially_refunded

  • localeاستعلامLocale | nullاختياري

    موصوف ضمن المعاملات المشتركة

    ar · en · tr · fr

  • currencyاستعلامCurrencyCode | nullاختياري

    موصوف ضمن المعاملات المشتركة

    TRY · USD · EUR · RUB

الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/orders" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Create Order

POST/api/v1/developer/orders

النطاق: orders:write

Places an order. The server prices every line from your account's price list, checks stock and reserves it, adds shipping, and starts the payment you chose. 201 the first time; 200 with the same order when you retry with the same Idempotency-Key and the same body (nothing new happens); 409 CHECKOUT_IDEMPOTENCY_KEY_REUSED for the same key with a different body.

المعاملات
نص الطلب

DevOrderRequestمطلوب

  • client_referencestring | nullاختياري

    Your own order reference (stored with the order, returned on every read). Not unique: use Idempotency-Key for retries.

    max 64 chars · pattern ^[A-Za-z0-9][A-Za-z0-9._:/ \-]{0,63}$

  • currencyCurrencyCodeاختياريالافتراضي USD

    The currency the order is priced and settled in (default USD).

    TRY · USD · EUR · RUB

  • linesarray of DevLineInمطلوب

    At most 50 lines; one line per product/variant (repeat a line and the request is refused rather than merged).

    1-50 items

  • localeLocaleاختياريالافتراضي tr

    The language the product names on the order are written in (default tr; a language that is not supported is tr).

    ar · en · tr · fr

  • pay_currencystring | nullاختياري

    The coin for nowpayments_crypto (e.g. usdttrc20, btc).

    pattern ^[A-Za-z0-9]{1,20}$

  • payment_methodPaymentMethodمطلوب

    wallet, points (a whole order paid with your points) or nowpayments_crypto (with pay_currency). Others are 422 API_PAYMENT_METHOD_NOT_ALLOWED.

    wallet · nowpayments_crypto · iban · cash · cod · telegram_stars · points

  • shipping_address_idstring (uuid)مطلوب

    An address saved in your account (website, Mini App or Telegram bot).

الاستجابات
  • 200

    Replay: the same Idempotency-Key and the same request were already accepted; this is what was stored. Nothing new was created.

    DevOrderCreated

    الترويسات: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 201

    Created.

    DevOrderCreated

    الترويسات: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • الأخطاء

    400, 401, 403, 404, 409, 422, 429, 500, 503

أمثلة

النص هو المثال الوارد في وصف الواجهة.

curl
curl -X POST "https://api.lolianstore.com/api/v1/developer/orders" \
  -H "Authorization: Bearer $LOLIAN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "client_reference": "ERP-1001",
  "lines": [
    {
      "product_id": "5b0b7a58-8f3a-4f4e-9d3e-0a6f4d2d7c11",
      "quantity": 2
    }
  ],
  "payment_method": "wallet",
  "shipping_address_id": "c2d4e6f8-0a1b-4c3d-8e5f-6a7b8c9d0e33"
}'

Get Order

GET/api/v1/developer/orders/{order_id}

النطاق: orders:read

المعاملات
الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/orders/ORDER_ID" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Cancel Order

POST/api/v1/developer/orders/{order_id}/cancel

النطاق: orders:write

Cancels your own UNPAID order and releases its stock. Idempotent. A paid order is unwound through a refund by the store's staff, not by this call.

المعاملات
الاستجابات
أمثلة
curl
curl -X POST "https://api.lolianstore.com/api/v1/developer/orders/ORDER_ID/cancel" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

List Order Payments

GET/api/v1/developer/orders/{order_id}/payments

النطاق: orders:read

المعاملات
الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/orders/ORDER_ID/payments" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Start Order Payment

POST/api/v1/developer/orders/{order_id}/payments

النطاق: orders:write

Starts (or retries) a payment on your unpaid order. The amount is the order's own total. 201 for a new attempt, 200 for a replay of the same Idempotency-Key.

المعاملات
نص الطلب

DevStartPaymentRequestمطلوب

  • pay_currencystring | nullاختياري

    pattern ^[A-Za-z0-9]{1,20}$

  • payment_methodPaymentMethodمطلوب

    wallet · nowpayments_crypto · iban · cash · cod · telegram_stars · points

الاستجابات
  • 200

    Replay: the same Idempotency-Key and the same request were already accepted; this is what was stored. Nothing new was created.

    DevOrderPaymentResponse

    الترويسات: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 201

    Created.

    DevOrderPaymentResponse

    الترويسات: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • الأخطاء

    400, 401, 403, 404, 409, 422, 429, 500, 503

أمثلة

النص هو المثال الوارد في وصف الواجهة.

curl
curl -X POST "https://api.lolianstore.com/api/v1/developer/orders/ORDER_ID/payments" \
  -H "Authorization: Bearer $LOLIAN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "payment_method": "wallet"
}'

Switch Payment Coin

POST/api/v1/developer/orders/{order_id}/payments/{payment_id}/switch-coin

النطاق: orders:write

Pay a crypto order in another coin, while the provider has seen no funds.

المعاملات
نص الطلب

DevSwitchCoinRequestمطلوب

  • pay_currencystringمطلوب

    pattern ^[A-Za-z0-9]{1,20}$

الاستجابات
أمثلة

النص هو المثال الوارد في وصف الواجهة.

curl
curl -X POST "https://api.lolianstore.com/api/v1/developer/orders/ORDER_ID/payments/PAYMENT_ID/switch-coin" \
  -H "Authorization: Bearer $LOLIAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "pay_currency": "ltc"
}'

List Order Refunds

GET/api/v1/developer/orders/{order_id}/refunds

النطاق: orders:read

المعاملات
  • order_idمسارstring (uuid)مطلوب
الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/orders/ORDER_ID/refunds" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Quote Lines

POST/api/v1/developer/quotes

النطاق: orders:read

What these lines would cost you: unit prices (your price list), the shipping fee for the address, the total, the conversions used and issues (closed codes) that would refuse the order. Read-only and not a promise: the order re-prices authoritatively.

المعاملات
نص الطلب

DevQuoteRequestمطلوب

  • currencyCurrencyCodeاختياريالافتراضي USD

    TRY · USD · EUR · RUB

  • linesarray of DevLineInمطلوب

    At most 50 lines; one line per product/variant (repeat a line and the request is refused rather than merged).

    1-50 items

  • localeLocaleاختياريالافتراضي tr

    ar · en · tr · fr

  • shipping_address_idstring (uuid) | nullاختياري

    Without an address the shipping fee, hence the total, is unknown.

الاستجابات
أمثلة

النص هو المثال الوارد في وصف الواجهة.

curl
curl -X POST "https://api.lolianstore.com/api/v1/developer/quotes" \
  -H "Authorization: Bearer $LOLIAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "currency": "USD",
  "lines": [
    {
      "product_id": "5b0b7a58-8f3a-4f4e-9d3e-0a6f4d2d7c11",
      "quantity": 3
    }
  ],
  "shipping_address_id": "c2d4e6f8-0a1b-4c3d-8e5f-6a7b8c9d0e33"
}'

المحفظة

Get Wallet

GET/api/v1/developer/wallet

النطاق: wallet:read

Your wallet balance. The wallet is one USD balance; display converts it to ?currency=.

المعاملات
الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/wallet" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

List Topups

GET/api/v1/developer/wallet/topups

النطاق: wallet:read

المعاملات
  • limitاستعلامintegerاختياريالافتراضي 15

    1-50

الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/wallet/topups" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Create Topup

POST/api/v1/developer/wallet/topups

النطاق: topups:write

Starts a wallet top-up paid with crypto. 201 for a new top-up, 200 for a replay of the same Idempotency-Key (it never starts a second payment). The wallet is credited only when the provider confirms the payment, never by this call.

المعاملات
نص الطلب

DevTopUpCreateRequestمطلوب

  • amountnumber | stringمطلوب

    Amount to add, in currency (at most that currency's minor units). Subject to the per-currency min/max.

  • currencyCurrencyCodeمطلوب

    The currency amount is in. USD credits that many USD; any other currency is a funding currency: the wallet is credited the quoted USD value (see topup.requested_amount_usd / fx_rate_snapshot), fixed at creation. Crypto pays the USD value.

    TRY · USD · EUR · RUB

  • pay_currencystring | nullاختياري

    REQUIRED: the coin to pay with, one of GET /api/v1/checkout/crypto-currencies. The same Idempotency-Key with another coin is WALLET_TOPUP_IDEMPOTENCY_KEY_REUSED (409).

    pattern ^[A-Za-z0-9]{1,20}$

  • payment_methodPaymentMethodمطلوب

    nowpayments_crypto: top-ups through the Developer API are paid with crypto (any other value is refused with API_PAYMENT_METHOD_NOT_ALLOWED).

    wallet · nowpayments_crypto · iban · cash · cod · telegram_stars · points

الاستجابات
  • 200

    Replay: the same Idempotency-Key and the same request were already accepted; this is what was stored. Nothing new was created.

    WalletTopUpResponse

    الترويسات: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 201

    Created.

    WalletTopUpResponse

    الترويسات: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • الأخطاء

    400, 401, 403, 404, 409, 422, 429, 500, 503

أمثلة

النص هو المثال الوارد في وصف الواجهة.

curl
curl -X POST "https://api.lolianstore.com/api/v1/developer/wallet/topups" \
  -H "Authorization: Bearer $LOLIAN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": "50.00",
  "currency": "USD",
  "pay_currency": "usdttrc20",
  "payment_method": "nowpayments_crypto"
}'

Get Topup

GET/api/v1/developer/wallet/topups/{topup_id}

النطاق: wallet:read

المعاملات
  • topup_idمسارstring (uuid)مطلوب
الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/wallet/topups/TOPUP_ID" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Get Wallet Transactions

GET/api/v1/developer/wallet/transactions

النطاق: wallet:read

المعاملات
الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/wallet/transactions" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

النقاط

Get Points

GET/api/v1/developer/points

النطاق: points:read

Your available and pending points and the conversion terms in force.

الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/points" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Get Points History

GET/api/v1/developer/points/transactions

النطاق: points:read

Your points history, newest first.

المعاملات
  • cursorاستعلامstring | nullاختياري

    max 512 chars

  • limitاستعلامintegerاختياريالافتراضي 20

    1-100

الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/points/transactions" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

الإحالة

Get Referral

GET/api/v1/developer/referral

النطاق: referral:read

Your referral code (created on first use), links, the program's terms and your numbers.

الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/referral" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Get Referral Rewards

GET/api/v1/developer/referral/rewards

النطاق: referral:read

The rewards your referrals' first events produced, newest first.

المعاملات
  • cursorاستعلامstring | nullاختياري

    max 512 chars

  • limitاستعلامintegerاختياريالافتراضي 20

    1-100

الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/referral/rewards" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

العناوين

List Addresses

GET/api/v1/developer/addresses

النطاق: addresses:read

Your saved delivery addresses, oldest first. At most 10 per account.

الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/addresses" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Create Address

POST/api/v1/developer/addresses

النطاق: addresses:write

Saves a delivery address. Name the recipient with recipient_first_name (+ optional recipient_last_name) or the legacy recipient_full_name; phone_number, country, city and street are required. Your first address is your default; is_default: true makes this one the default (the previous default is cleared). 409 ADDRESS_LIMIT_REACHED once you hold 10.

نص الطلب

DevAddressCreateمطلوب

  • apartment_unitstring | nullاختياري

    max 50 chars

  • buildingstring | nullاختياري

    max 50 chars

  • citystringمطلوب

    1-100 chars

  • countrystringمطلوب

    ISO 3166-1 alpha-2 code (TR, FR; any case), or a country name the store recognises (Turkey, Türkiye, Turquie, تركيا), stored as the code. Anything else is refused.

    1-100 chars

  • delivery_notesstring | nullاختياري

    max 1000 chars

  • districtstring | nullاختياري

    max 100 chars

  • google_maps_urlstring | nullاختياري

    max 2048 chars

  • is_defaultbooleanاختياريالافتراضي false
  • labelAddressLabelاختياريالافتراضي home

    home · work · other

  • latitudenumber | string | nullاختياري

    -90-90

  • longitudenumber | string | nullاختياري

    -180-180

  • phone_numberstringمطلوب

    6 to 15 digits, optionally starting with +; spaces, dashes, dots and brackets are ignored and Arabic-Indic / Persian digits are converted. Stored as +<digits> when a + was given, else <digits>.

    1-32 chars

  • postal_codestring | nullاختياري

    max 20 chars

  • recipient_first_namestring | nullاختياري

    The recipient's first name (required unless recipient_full_name is sent).

    max 100 chars

  • recipient_full_namestring | nullاختياري

    The LEGACY way to name the recipient (kept for older clients): split at the first space into first and last name. Send recipient_first_name / recipient_last_name instead. If both forms are sent they must agree (first + space + last), or the request is a 422.

    1-200 chars

  • recipient_last_namestring | nullاختياري

    The recipient's last name (required unless recipient_full_name is sent, which must then hold a first and a last name).

    max 100 chars

  • state_province_regionstring | nullاختياري

    max 100 chars

  • streetstringمطلوب

    1-255 chars

الاستجابات
أمثلة

النص هو المثال الوارد في وصف الواجهة.

curl
curl -X POST "https://api.lolianstore.com/api/v1/developer/addresses" \
  -H "Authorization: Bearer $LOLIAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "apartment_unit": "12",
  "building": "Block B",
  "city": "Istanbul",
  "country": "TR",
  "delivery_notes": "Ring twice",
  "district": "Beyoglu",
  "is_default": true,
  "label": "home",
  "phone_number": "+90 555 123 45 67",
  "postal_code": "34430",
  "recipient_first_name": "Layla",
  "recipient_last_name": "Haddad",
  "street": "Istiklal Ave 1"
}'

Get Address

GET/api/v1/developer/addresses/{address_id}

النطاق: addresses:read

One of your addresses. An id that is not yours is 404 ADDRESS_NOT_FOUND, like an id that does not exist.

المعاملات
  • address_idمسارstring (uuid)مطلوب
الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/addresses/ADDRESS_ID" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Update Address

PATCH/api/v1/developer/addresses/{address_id}

النطاق: addresses:write

Changes the fields in the body and nothing else. An optional field sent as null (or blank) is cleared; a required one cannot be. is_default: true makes this address the default.

المعاملات
  • address_idمسارstring (uuid)مطلوب
نص الطلب

DevAddressUpdateمطلوب

  • apartment_unitstring | nullاختياري

    max 50 chars

  • buildingstring | nullاختياري

    max 50 chars

  • citystringاختياري

    1-100 chars

  • countrystringاختياري

    ISO 3166-1 alpha-2 code (TR, FR; any case), or a country name the store recognises (Turkey, Türkiye, Turquie, تركيا), stored as the code. Anything else is refused.

    1-100 chars

  • delivery_notesstring | nullاختياري

    max 1000 chars

  • districtstring | nullاختياري

    max 100 chars

  • google_maps_urlstring | nullاختياري

    max 2048 chars

  • is_defaultbooleanاختياري
  • labelAddressLabelاختياري

    home · work · other

  • latitudenumber | string | nullاختياري

    -90-90

  • longitudenumber | string | nullاختياري

    -180-180

  • phone_numberstringاختياري

    6 to 15 digits, optionally starting with +; spaces, dashes, dots and brackets are ignored and Arabic-Indic / Persian digits are converted. Stored as +<digits> when a + was given, else <digits>.

    1-32 chars

  • postal_codestring | nullاختياري

    max 20 chars

  • recipient_first_namestringاختياري

    1-100 chars

  • recipient_full_namestringاختياري

    1-200 chars

  • recipient_last_namestringاختياري

    1-100 chars

  • state_province_regionstring | nullاختياري

    max 100 chars

  • streetstringاختياري

    1-255 chars

الاستجابات
أمثلة

النص هو المثال الوارد في وصف الواجهة.

curl
curl -X PATCH "https://api.lolianstore.com/api/v1/developer/addresses/ADDRESS_ID" \
  -H "Authorization: Bearer $LOLIAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "apartment_unit": null,
  "is_default": true,
  "recipient_last_name": "Haddad-Khan"
}'

Delete Address

DELETE/api/v1/developer/addresses/{address_id}

النطاق: addresses:write

Deletes one of your addresses. Orders already placed keep their own copy of it. Deleting your default leaves you without one: the next order must name an address.

المعاملات
  • address_idمسارstring (uuid)مطلوب
الاستجابات
  • 204

    Successful Response

    الترويسات: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • الأخطاء

    400, 401, 403, 404, 409, 422, 429, 500, 503

أمثلة
curl
curl -X DELETE "https://api.lolianstore.com/api/v1/developer/addresses/ADDRESS_ID" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

مستندات مرجعية

The Developer API changelog and deprecation notices

GET/api/v1/developer/changelog

لا يلزم مفتاح

The history of this API, newest release first, and the notices of what will stop working and when (empty while nothing is deprecated). The same for everyone, in every environment, and needs no key. A route listed in a notice also answers with Deprecation, Sunset and Link headers. Cached by the client for five minutes and revalidated by ETag.

المعاملات
الاستجابات
أمثلة
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/changelog"

رموز الحالة

حالات الخطأ والفشل التي قد تردّ بها نقاط النهاية. لكل خطأ شكل واحد، ورمزه الثابت هو ما ينبغي أن يعتمد عليه كودك.

  • 400The request cannot be completed as sent.
  • 401Missing, invalid, expired or revoked token.
  • 403Authenticated, but not allowed.
  • 404No such resource (or not yours).
  • 409Conflicts with the current state.
  • 422Invalid input; details.fields lists it.
  • 429Rate limited; see details.retry_after_seconds.
  • 500Unexpected error; quote the correlation id.
  • 503A dependency is unavailable; retry after Retry-After seconds.

المخططات

الأشكال المستخدمة في الطلبات والاستجابات. الحقل المعلَّم بأنه مطلوب موجود دائمًا.

AddressLabel
ApiDeprecation
app__orders__schemas__PaginationMeta
app__users__schemas__PaginationMeta
app__wallet__schemas__PaginationMeta
ChangelogChange
ChangelogEntry
ChangeType
CheckoutPaymentResult
CheckoutQuoteResponse
CryptoInstructionsSchema
CryptoMinimumSchema
CurrencyCode
CustomerContactSnapshot
CustomerPayment
CustomerPaymentList
CustomerRefund
CustomerRefundList
DevAddress
DevAddressCreate
DevAddressList
DevAddressUpdate
DevAvailability
DevBrand
DevBrandList
DevBrandRef
DevCatalogMeta
DevCategory
DevCategoryList
DevCategoryRef
DevChange
DevChangeFeed
DevColor
DevContent
DevDisplayPrice
DeveloperChangelog
DeveloperMeOut
DeveloperScope
DevLanguage
DevLineIn
DevMedia
DevOrderCreated
DevOrderDetail
DevOrderList
DevOrderPaymentResponse
DevOrderRequest
DevOrderSummary
DevPagination
DevPathItem
DevPrice
DevProduct
DevProductList
DevProductResponse
DevQuoteRequest
DevStartPaymentRequest
DevSwitchCoinRequest
DevTopUpCreateRequest
DevVariant
ErrorBody
ErrorDetails
ErrorResponse
FacetAudience
FacetAvailability
FacetBrand
FacetCategory
FacetPrice
FxRateSource
FxSnapshot
FxUsedOut
IbanTransferInstructionsSchema
LedgerEntryDirection
LedgerEntryResponse
LedgerTransactionResponse
LedgerTransactionType
Locale
LocaleMeta
OrderItemLine
OrderSource
OrderStatus
PaymentMethod
PaymentMethodSummary
PaymentStatus
PointsBalanceOut
PointsEntryOut
PointsEntryType
PointsHistoryOut
ProductAudience
ProductFacetsResponse
ReferralLinksOut
ReferralOut
ReferralProgramOut
ReferralRewardListOut
ReferralRewardOut
ReferralStatsOut
RefundReason
RefundStatus
RewardStatus
ShippingFeeSnapshot
ShippingQuoteOut
ShippingSnapshot
TrackingInfo
TransactionOriginResponse
WalletAccountListResponse
WalletAccountResponse
WalletDebitSchema
WalletDebitView
WalletDisplay
WalletHistoryKind
WalletTopUpDetail
WalletTopUpListResponse
WalletTopUpPaymentResult
WalletTopUpResponse
WalletTopUpStatus
WalletTransactionListResponse
WalletTransactionStatus