Aller au contenu
LOLIAN

Référence

Référence de l’API

Générée à partir de la description de l’API en production, elle ne peut donc pas s’en écarter. Le texte technique reste en anglais dans toutes les langues.

Démarrage rapide

Envoyez votre clé dans l’en-tête Authorization de chaque appel. Cet appel n’exige aucun scope et vous indique quelle clé l’API voit.

URL de base
https://api.lolianstore.com
Version
1.5.0
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/me" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Les extraits lisent l’adresse de l’API et votre clé dans l’environnement (LOLIAN_API_URL, LOLIAN_API_KEY) : un exemple copié ne contient donc jamais d’identifiant.

Version actuelle 1.5.0. Les dépréciations et les versions figurent dans le journal des modifications. Ouvrir le journal des modifications

Authentification

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.

Scopes

Une clé ne peut faire que ce que ses scopes autorisent. Les scopes sont fixés à la création de la clé.

  • addresses:readRead your saved delivery addressesEndpoints: 2
  • addresses:writeCreate, change and delete your saved delivery addressesEndpoints: 3
  • catalog:readRead products, categories, brands, search and the sync feedEndpoints: 8
  • orders:readRead your own orders and price quotesEndpoints: 5
  • orders:writeCreate and pay orders, cancel your ownEndpoints: 4
  • points:readRead your referral-points balance and historyEndpoints: 2
  • profile:readRead your account's profile identity: first name, last name and whether your e-mail address and phone number are verifiedEndpoints: —
  • referral:readRead your referral code, link and statisticsEndpoints: 2
  • topups:writeStart wallet top-upsEndpoints: 1
  • wallet:readRead your wallet balance and historyEndpoints: 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.

Limites de débit

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.

Erreurs

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.

Idempotence

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.

Pagination

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.

Requêtes conditionnelles

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).

Montants

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.

Prix et comptes

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.

Cycle de vie d’une commande

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).

Versions et dépréciation

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.

Paramètres communs

Ces paramètres apparaissent sur de nombreux endpoints avec la même signification.

  • If-None-Matchen-tête

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

  • localerequête

    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).

  • currencyrequête

    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-Keyen-tête

    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.

Endpoints

Identifiants

Developer Me

GET/api/v1/developer/me

Toute clé valide

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.

Réponses
Exemples
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/me" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Catalogue

Get Brands

GET/api/v1/developer/brands

Scope: 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".

Paramètres
Réponses
  • 200

    Successful Response

    DevBrandList

    En-têtes : ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    En-têtes : ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Erreurs

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

Exemples
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

Scope: 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).

Paramètres
  • updated_afterrequêtestring (date-time) | nullfacultatif

    Only changes after this moment (ISO 8601; no zone = UTC). Omitted: from the beginning (prefer an initial import with the listing, then this from watermark).

  • cursorrequêtestring | nullfacultatif

    max 512 chars

  • limitrequêteintegerfacultatifpar défaut 20

    1-50

  • localerequêteLocale | nullfacultatif

    Décrit dans les paramètres communs

    ar · en · tr · fr

  • currencyrequêteCurrencyCode | nullfacultatif

    Décrit dans les paramètres communs

    TRY · USD · EUR · RUB

Réponses
Exemples
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

Scope: catalog:read

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

Réponses
Exemples
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

Scope: catalog:read

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

Paramètres
Réponses
  • 200

    Successful Response

    DevCategoryList

    En-têtes : ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    En-têtes : ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Erreurs

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

Exemples
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

Scope: 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.

Paramètres
  • If-None-Matchen-têtestringfacultatif

    Décrit dans les paramètres communs

  • sortrequêtestringfacultatifpar défaut 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

  • cursorrequêtestring | nullfacultatif

    max 512 chars

  • limitrequêteintegerfacultatifpar défaut 20

    1-50

  • localerequêteLocale | nullfacultatif

    Décrit dans les paramètres communs

    ar · en · tr · fr

  • currencyrequêteCurrencyCode | nullfacultatif

    Décrit dans les paramètres communs

    TRY · USD · EUR · RUB

  • category_idrequêtearray of string (uuid) | nullfacultatif

    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_idrequêtearray of string (uuid) | nullfacultatif

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

    max 25 items

  • brand_kindrequêtearray of string | nullfacultatif

    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

  • audiencerequêtearray of ProductAudience | nullfacultatif

    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_stockrequêteboolean | nullfacultatif

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

  • featuredrequêteboolean | nullfacultatif
  • min_pricerequêtenumber | string | nullfacultatif

    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_pricerequêtenumber | string | nullfacultatif

    Upper bound of the display price, see min_price.

  • searchrequêtestring | nullfacultatif

    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

Réponses
  • 200

    Successful Response

    DevProductList

    En-têtes : ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    En-têtes : ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Erreurs

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

Exemples
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}

Scope: catalog:read

Paramètres
Réponses
  • 200

    Successful Response

    DevProductResponse

    En-têtes : ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    En-têtes : ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Erreurs

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

Exemples
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

Scope: 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.

Paramètres
  • If-None-Matchen-têtestringfacultatif

    Décrit dans les paramètres communs

  • localerequêteLocale | nullfacultatif

    Décrit dans les paramètres communs

    ar · en · tr · fr

  • currencyrequêteCurrencyCode | nullfacultatif

    Décrit dans les paramètres communs

    TRY · USD · EUR · RUB

  • category_idrequêtearray of string (uuid) | nullfacultatif

    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_idrequêtearray of string (uuid) | nullfacultatif

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

    max 25 items

  • brand_kindrequêtearray of string | nullfacultatif

    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

  • audiencerequêtearray of ProductAudience | nullfacultatif

    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_stockrequêteboolean | nullfacultatif

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

  • featuredrequêteboolean | nullfacultatif
  • min_pricerequêtenumber | string | nullfacultatif

    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_pricerequêtenumber | string | nullfacultatif

    Upper bound of the display price, see min_price.

  • searchrequêtestring | nullfacultatif

    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

Réponses
  • 200

    Successful Response

    ProductFacetsResponse

    En-têtes : ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    En-têtes : ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Erreurs

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

Exemples
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}

Scope: catalog:read

Paramètres
Réponses
  • 200

    Successful Response

    DevProductResponse

    En-têtes : ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    En-têtes : ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Erreurs

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

Exemples
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/products/PRODUCT_ID" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Commandes

List Orders

GET/api/v1/developer/orders

Scope: orders:read

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

Paramètres
  • cursorrequêtestring | nullfacultatif

    max 512 chars

  • limitrequêteintegerfacultatifpar défaut 20

    1-50

  • statusrequêteOrderStatus | nullfacultatif

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

  • payment_statusrequêtePaymentStatus | nullfacultatif

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

  • localerequêteLocale | nullfacultatif

    Décrit dans les paramètres communs

    ar · en · tr · fr

  • currencyrequêteCurrencyCode | nullfacultatif

    Décrit dans les paramètres communs

    TRY · USD · EUR · RUB

Réponses
Exemples
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

Scope: 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.

Paramètres
Corps de la requête

DevOrderRequestobligatoire

  • client_referencestring | nullfacultatif

    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}$

  • currencyCurrencyCodefacultatifpar défaut USD

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

    TRY · USD · EUR · RUB

  • linesarray of DevLineInobligatoire

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

    1-50 items

  • localeLocalefacultatifpar défaut 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 | nullfacultatif

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

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

  • payment_methodPaymentMethodobligatoire

    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)obligatoire

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

Réponses
  • 200

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

    DevOrderCreated

    En-têtes : RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 201

    Created.

    DevOrderCreated

    En-têtes : RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Erreurs

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

Exemples

Le corps est l’exemple fourni dans la description de l’API.

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}

Scope: orders:read

Paramètres
Réponses
Exemples
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

Scope: 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.

Paramètres
Réponses
Exemples
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

Scope: orders:read

Paramètres
Réponses
Exemples
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

Scope: 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.

Paramètres
Corps de la requête

DevStartPaymentRequestobligatoire

  • pay_currencystring | nullfacultatif

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

  • payment_methodPaymentMethodobligatoire

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

Réponses
  • 200

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

    DevOrderPaymentResponse

    En-têtes : RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 201

    Created.

    DevOrderPaymentResponse

    En-têtes : RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Erreurs

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

Exemples

Le corps est l’exemple fourni dans la description de l’API.

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

Scope: orders:write

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

Paramètres
Corps de la requête

DevSwitchCoinRequestobligatoire

  • pay_currencystringobligatoire

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

Réponses
Exemples

Le corps est l’exemple fourni dans la description de l’API.

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

Scope: orders:read

Paramètres
  • order_idcheminstring (uuid)obligatoire
Réponses
Exemples
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

Scope: 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.

Paramètres
Corps de la requête

DevQuoteRequestobligatoire

  • currencyCurrencyCodefacultatifpar défaut USD

    TRY · USD · EUR · RUB

  • linesarray of DevLineInobligatoire

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

    1-50 items

  • localeLocalefacultatifpar défaut tr

    ar · en · tr · fr

  • shipping_address_idstring (uuid) | nullfacultatif

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

Réponses
Exemples

Le corps est l’exemple fourni dans la description de l’API.

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"
}'

Portefeuille

Get Wallet

GET/api/v1/developer/wallet

Scope: wallet:read

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

Paramètres
Réponses
Exemples
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

Scope: wallet:read

Paramètres
  • limitrequêteintegerfacultatifpar défaut 15

    1-50

Réponses
Exemples
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

Scope: 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.

Paramètres
Corps de la requête

DevTopUpCreateRequestobligatoire

  • amountnumber | stringobligatoire

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

  • currencyCurrencyCodeobligatoire

    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 | nullfacultatif

    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_methodPaymentMethodobligatoire

    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

Réponses
  • 200

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

    WalletTopUpResponse

    En-têtes : RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 201

    Created.

    WalletTopUpResponse

    En-têtes : RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Erreurs

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

Exemples

Le corps est l’exemple fourni dans la description de l’API.

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}

Scope: wallet:read

Paramètres
  • topup_idcheminstring (uuid)obligatoire
Réponses
Exemples
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

Scope: wallet:read

Paramètres
Réponses
Exemples
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/wallet/transactions" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Points

Get Points

GET/api/v1/developer/points

Scope: points:read

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

Réponses
Exemples
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

Scope: points:read

Your points history, newest first.

Paramètres
  • cursorrequêtestring | nullfacultatif

    max 512 chars

  • limitrequêteintegerfacultatifpar défaut 20

    1-100

Réponses
Exemples
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/points/transactions" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Parrainage

Get Referral

GET/api/v1/developer/referral

Scope: referral:read

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

Réponses
Exemples
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

Scope: referral:read

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

Paramètres
  • cursorrequêtestring | nullfacultatif

    max 512 chars

  • limitrequêteintegerfacultatifpar défaut 20

    1-100

Réponses
Exemples
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/referral/rewards" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Adresses

List Addresses

GET/api/v1/developer/addresses

Scope: addresses:read

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

Réponses
Exemples
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

Scope: 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.

Corps de la requête

DevAddressCreateobligatoire

  • apartment_unitstring | nullfacultatif

    max 50 chars

  • buildingstring | nullfacultatif

    max 50 chars

  • citystringobligatoire

    1-100 chars

  • countrystringobligatoire

    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 | nullfacultatif

    max 1000 chars

  • districtstring | nullfacultatif

    max 100 chars

  • google_maps_urlstring | nullfacultatif

    max 2048 chars

  • is_defaultbooleanfacultatifpar défaut false
  • labelAddressLabelfacultatifpar défaut home

    home · work · other

  • latitudenumber | string | nullfacultatif

    -90-90

  • longitudenumber | string | nullfacultatif

    -180-180

  • phone_numberstringobligatoire

    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 | nullfacultatif

    max 20 chars

  • recipient_first_namestring | nullfacultatif

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

    max 100 chars

  • recipient_full_namestring | nullfacultatif

    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 | nullfacultatif

    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 | nullfacultatif

    max 100 chars

  • streetstringobligatoire

    1-255 chars

Réponses
Exemples

Le corps est l’exemple fourni dans la description de l’API.

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}

Scope: addresses:read

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

Paramètres
  • address_idcheminstring (uuid)obligatoire
Réponses
Exemples
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}

Scope: 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.

Paramètres
  • address_idcheminstring (uuid)obligatoire
Corps de la requête

DevAddressUpdateobligatoire

  • apartment_unitstring | nullfacultatif

    max 50 chars

  • buildingstring | nullfacultatif

    max 50 chars

  • citystringfacultatif

    1-100 chars

  • countrystringfacultatif

    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 | nullfacultatif

    max 1000 chars

  • districtstring | nullfacultatif

    max 100 chars

  • google_maps_urlstring | nullfacultatif

    max 2048 chars

  • is_defaultbooleanfacultatif
  • labelAddressLabelfacultatif

    home · work · other

  • latitudenumber | string | nullfacultatif

    -90-90

  • longitudenumber | string | nullfacultatif

    -180-180

  • phone_numberstringfacultatif

    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 | nullfacultatif

    max 20 chars

  • recipient_first_namestringfacultatif

    1-100 chars

  • recipient_full_namestringfacultatif

    1-200 chars

  • recipient_last_namestringfacultatif

    1-100 chars

  • state_province_regionstring | nullfacultatif

    max 100 chars

  • streetstringfacultatif

    1-255 chars

Réponses
Exemples

Le corps est l’exemple fourni dans la description de l’API.

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}

Scope: 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.

Paramètres
  • address_idcheminstring (uuid)obligatoire
Réponses
  • 204

    Successful Response

    En-têtes : RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Erreurs

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

Exemples
curl
curl -X DELETE "https://api.lolianstore.com/api/v1/developer/addresses/ADDRESS_ID" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Documents de référence

The Developer API changelog and deprecation notices

GET/api/v1/developer/changelog

Aucune clé requise

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.

Paramètres
Réponses
Exemples
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/changelog"

Codes d’état

Les codes d’état d’erreur et d’échec avec lesquels les endpoints peuvent répondre. Chaque erreur a une seule forme ; c’est son code stable sur lequel votre code doit se baser.

  • 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.

Schémas

Les structures utilisées dans les requêtes et les réponses. Un champ marqué comme obligatoire est toujours présent.

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