İçeriğe geç
LOLIAN

Başvuru

API başvurusu

Canlı API tanımından üretilir; bu yüzden API'den sapamaz. Teknik metin her dilde İngilizce kalır.

Hızlı başlangıç

Anahtarınızı her çağrının Authorization başlığında gönderin. Bu çağrı kapsam gerektirmez ve API'nin hangi anahtarı gördüğünü söyler.

Temel adres
https://api.lolianstore.com
Sürüm
1.5.0
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/me" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Örnekler API adresini ve anahtarınızı ortamdan okur (LOLIAN_API_URL, LOLIAN_API_KEY); kopyalanan bir örnek hiçbir zaman gizli bilgi içermez.

Güncel sürüm 1.5.0. Sürümler ve kullanımdan kaldırmalar değişiklik günlüğündedir. Değişiklik günlüğünü aç

Kimlik doğrulama

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.

Kapsamlar

Bir anahtar yalnızca kapsamlarının izin verdiğini yapabilir. Kapsamlar anahtar oluşturulurken belirlenir.

  • addresses:readRead your saved delivery addressesUç noktalar: 2
  • addresses:writeCreate, change and delete your saved delivery addressesUç noktalar: 3
  • catalog:readRead products, categories, brands, search and the sync feedUç noktalar: 8
  • orders:readRead your own orders and price quotesUç noktalar: 5
  • orders:writeCreate and pay orders, cancel your ownUç noktalar: 4
  • points:readRead your referral-points balance and historyUç noktalar: 2
  • profile:readRead your account's profile identity: first name, last name and whether your e-mail address and phone number are verifiedUç noktalar: —
  • referral:readRead your referral code, link and statisticsUç noktalar: 2
  • topups:writeStart wallet top-upsUç noktalar: 1
  • wallet:readRead your wallet balance and historyUç noktalar: 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.

İstek sınırları

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.

Hatalar

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.

Idempotency

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.

Sayfalama

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.

Koşullu istekler

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

Para

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.

Fiyatlar ve hesaplar

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.

Sipariş yaşam döngüsü

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

Sürümleme ve kullanımdan kaldırma

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.

Ortak parametreler

Bu parametreler pek çok uç noktada aynı anlamla yer alır.

  • If-None-Matchbaşlık

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

  • localesorgu

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

  • currencysorgu

    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-Keybaşlık

    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.

Uç noktalar

Kimlik bilgileri

Developer Me

GET/api/v1/developer/me

Geçerli herhangi bir anahtar

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.

Yanıtlar
Örnekler
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/me" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Katalog

Get Brands

GET/api/v1/developer/brands

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

Parametreler
Yanıtlar
  • 200

    Successful Response

    DevBrandList

    Başlıklar: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    Başlıklar: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Hatalar

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

Örnekler
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

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

Parametreler
  • updated_aftersorgustring (date-time) | nullisteğe bağlı

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

  • cursorsorgustring | nullisteğe bağlı

    max 512 chars

  • limitsorguintegeristeğe bağlıvarsayılan 20

    1-50

  • localesorguLocale | nullisteğe bağlı

    Ortak parametreler bölümünde açıklanır

    ar · en · tr · fr

  • currencysorguCurrencyCode | nullisteğe bağlı

    Ortak parametreler bölümünde açıklanır

    TRY · USD · EUR · RUB

Yanıtlar
Örnekler
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

Kapsam: catalog:read

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

Yanıtlar
Örnekler
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

Kapsam: catalog:read

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

Parametreler
Yanıtlar
  • 200

    Successful Response

    DevCategoryList

    Başlıklar: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    Başlıklar: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Hatalar

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

Örnekler
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

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

Parametreler
  • If-None-Matchbaşlıkstringisteğe bağlı

    Ortak parametreler bölümünde açıklanır

  • sortsorgustringisteğe bağlıvarsayılan 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

  • cursorsorgustring | nullisteğe bağlı

    max 512 chars

  • limitsorguintegeristeğe bağlıvarsayılan 20

    1-50

  • localesorguLocale | nullisteğe bağlı

    Ortak parametreler bölümünde açıklanır

    ar · en · tr · fr

  • currencysorguCurrencyCode | nullisteğe bağlı

    Ortak parametreler bölümünde açıklanır

    TRY · USD · EUR · RUB

  • category_idsorguarray of string (uuid) | nullisteğe bağlı

    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_idsorguarray of string (uuid) | nullisteğe bağlı

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

    max 25 items

  • brand_kindsorguarray of string | nullisteğe bağlı

    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

  • audiencesorguarray of ProductAudience | nullisteğe bağlı

    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_stocksorguboolean | nullisteğe bağlı

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

  • featuredsorguboolean | nullisteğe bağlı
  • min_pricesorgunumber | string | nullisteğe bağlı

    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_pricesorgunumber | string | nullisteğe bağlı

    Upper bound of the display price, see min_price.

  • searchsorgustring | nullisteğe bağlı

    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

Yanıtlar
  • 200

    Successful Response

    DevProductList

    Başlıklar: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    Başlıklar: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Hatalar

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

Örnekler
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}

Kapsam: catalog:read

Parametreler
Yanıtlar
  • 200

    Successful Response

    DevProductResponse

    Başlıklar: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    Başlıklar: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Hatalar

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

Örnekler
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

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

Parametreler
  • If-None-Matchbaşlıkstringisteğe bağlı

    Ortak parametreler bölümünde açıklanır

  • localesorguLocale | nullisteğe bağlı

    Ortak parametreler bölümünde açıklanır

    ar · en · tr · fr

  • currencysorguCurrencyCode | nullisteğe bağlı

    Ortak parametreler bölümünde açıklanır

    TRY · USD · EUR · RUB

  • category_idsorguarray of string (uuid) | nullisteğe bağlı

    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_idsorguarray of string (uuid) | nullisteğe bağlı

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

    max 25 items

  • brand_kindsorguarray of string | nullisteğe bağlı

    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

  • audiencesorguarray of ProductAudience | nullisteğe bağlı

    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_stocksorguboolean | nullisteğe bağlı

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

  • featuredsorguboolean | nullisteğe bağlı
  • min_pricesorgunumber | string | nullisteğe bağlı

    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_pricesorgunumber | string | nullisteğe bağlı

    Upper bound of the display price, see min_price.

  • searchsorgustring | nullisteğe bağlı

    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

Yanıtlar
  • 200

    Successful Response

    ProductFacetsResponse

    Başlıklar: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    Başlıklar: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Hatalar

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

Örnekler
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}

Kapsam: catalog:read

Parametreler
Yanıtlar
  • 200

    Successful Response

    DevProductResponse

    Başlıklar: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 304

    Not modified: the answer you hold is current.

    Başlıklar: ETag, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Hatalar

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

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

Siparişler

List Orders

GET/api/v1/developer/orders

Kapsam: orders:read

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

Parametreler
  • cursorsorgustring | nullisteğe bağlı

    max 512 chars

  • limitsorguintegeristeğe bağlıvarsayılan 20

    1-50

  • statussorguOrderStatus | nullisteğe bağlı

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

  • payment_statussorguPaymentStatus | nullisteğe bağlı

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

  • localesorguLocale | nullisteğe bağlı

    Ortak parametreler bölümünde açıklanır

    ar · en · tr · fr

  • currencysorguCurrencyCode | nullisteğe bağlı

    Ortak parametreler bölümünde açıklanır

    TRY · USD · EUR · RUB

Yanıtlar
Örnekler
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

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

Parametreler
İstek gövdesi

DevOrderRequestzorunlu

  • client_referencestring | nullisteğe bağlı

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

  • currencyCurrencyCodeisteğe bağlıvarsayılan USD

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

    TRY · USD · EUR · RUB

  • linesarray of DevLineInzorunlu

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

    1-50 items

  • localeLocaleisteğe bağlıvarsayılan 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 | nullisteğe bağlı

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

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

  • payment_methodPaymentMethodzorunlu

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

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

Yanıtlar
  • 200

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

    DevOrderCreated

    Başlıklar: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 201

    Created.

    DevOrderCreated

    Başlıklar: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Hatalar

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

Örnekler

Gövde, API tanımında verilen örnektir.

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}

Kapsam: orders:read

Parametreler
Yanıtlar
Örnekler
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

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

Parametreler
Yanıtlar
Örnekler
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

Kapsam: orders:read

Parametreler
Yanıtlar
Örnekler
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

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

Parametreler
İstek gövdesi

DevStartPaymentRequestzorunlu

  • pay_currencystring | nullisteğe bağlı

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

  • payment_methodPaymentMethodzorunlu

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

Yanıtlar
  • 200

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

    DevOrderPaymentResponse

    Başlıklar: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 201

    Created.

    DevOrderPaymentResponse

    Başlıklar: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Hatalar

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

Örnekler

Gövde, API tanımında verilen örnektir.

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

Kapsam: orders:write

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

Parametreler
İstek gövdesi

DevSwitchCoinRequestzorunlu

  • pay_currencystringzorunlu

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

Yanıtlar
Örnekler

Gövde, API tanımında verilen örnektir.

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

Kapsam: orders:read

Parametreler
  • order_idyolstring (uuid)zorunlu
Yanıtlar
Örnekler
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

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

Parametreler
İstek gövdesi

DevQuoteRequestzorunlu

  • currencyCurrencyCodeisteğe bağlıvarsayılan USD

    TRY · USD · EUR · RUB

  • linesarray of DevLineInzorunlu

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

    1-50 items

  • localeLocaleisteğe bağlıvarsayılan tr

    ar · en · tr · fr

  • shipping_address_idstring (uuid) | nullisteğe bağlı

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

Yanıtlar
Örnekler

Gövde, API tanımında verilen örnektir.

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

Cüzdan

Get Wallet

GET/api/v1/developer/wallet

Kapsam: wallet:read

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

Parametreler
Yanıtlar
Örnekler
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

Kapsam: wallet:read

Parametreler
  • limitsorguintegeristeğe bağlıvarsayılan 15

    1-50

Yanıtlar
Örnekler
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

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

Parametreler
İstek gövdesi

DevTopUpCreateRequestzorunlu

  • amountnumber | stringzorunlu

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

  • currencyCurrencyCodezorunlu

    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 | nullisteğe bağlı

    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_methodPaymentMethodzorunlu

    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

Yanıtlar
  • 200

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

    WalletTopUpResponse

    Başlıklar: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • 201

    Created.

    WalletTopUpResponse

    Başlıklar: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Hatalar

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

Örnekler

Gövde, API tanımında verilen örnektir.

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}

Kapsam: wallet:read

Parametreler
  • topup_idyolstring (uuid)zorunlu
Yanıtlar
Örnekler
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

Kapsam: wallet:read

Parametreler
Yanıtlar
Örnekler
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/wallet/transactions" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Puanlar

Get Points

GET/api/v1/developer/points

Kapsam: points:read

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

Yanıtlar
Örnekler
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

Kapsam: points:read

Your points history, newest first.

Parametreler
  • cursorsorgustring | nullisteğe bağlı

    max 512 chars

  • limitsorguintegeristeğe bağlıvarsayılan 20

    1-100

Yanıtlar
Örnekler
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/points/transactions" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Davet

Get Referral

GET/api/v1/developer/referral

Kapsam: referral:read

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

Yanıtlar
Örnekler
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

Kapsam: referral:read

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

Parametreler
  • cursorsorgustring | nullisteğe bağlı

    max 512 chars

  • limitsorguintegeristeğe bağlıvarsayılan 20

    1-100

Yanıtlar
Örnekler
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/referral/rewards" \
  -H "Authorization: Bearer $LOLIAN_API_KEY"

Adresler

List Addresses

GET/api/v1/developer/addresses

Kapsam: addresses:read

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

Yanıtlar
Örnekler
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

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

İstek gövdesi

DevAddressCreatezorunlu

  • apartment_unitstring | nullisteğe bağlı

    max 50 chars

  • buildingstring | nullisteğe bağlı

    max 50 chars

  • citystringzorunlu

    1-100 chars

  • countrystringzorunlu

    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 | nullisteğe bağlı

    max 1000 chars

  • districtstring | nullisteğe bağlı

    max 100 chars

  • google_maps_urlstring | nullisteğe bağlı

    max 2048 chars

  • is_defaultbooleanisteğe bağlıvarsayılan false
  • labelAddressLabelisteğe bağlıvarsayılan home

    home · work · other

  • latitudenumber | string | nullisteğe bağlı

    -90-90

  • longitudenumber | string | nullisteğe bağlı

    -180-180

  • phone_numberstringzorunlu

    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 | nullisteğe bağlı

    max 20 chars

  • recipient_first_namestring | nullisteğe bağlı

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

    max 100 chars

  • recipient_full_namestring | nullisteğe bağlı

    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 | nullisteğe bağlı

    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 | nullisteğe bağlı

    max 100 chars

  • streetstringzorunlu

    1-255 chars

Yanıtlar
Örnekler

Gövde, API tanımında verilen örnektir.

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}

Kapsam: addresses:read

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

Parametreler
  • address_idyolstring (uuid)zorunlu
Yanıtlar
Örnekler
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}

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

Parametreler
  • address_idyolstring (uuid)zorunlu
İstek gövdesi

DevAddressUpdatezorunlu

  • apartment_unitstring | nullisteğe bağlı

    max 50 chars

  • buildingstring | nullisteğe bağlı

    max 50 chars

  • citystringisteğe bağlı

    1-100 chars

  • countrystringisteğe bağlı

    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 | nullisteğe bağlı

    max 1000 chars

  • districtstring | nullisteğe bağlı

    max 100 chars

  • google_maps_urlstring | nullisteğe bağlı

    max 2048 chars

  • is_defaultbooleanisteğe bağlı
  • labelAddressLabelisteğe bağlı

    home · work · other

  • latitudenumber | string | nullisteğe bağlı

    -90-90

  • longitudenumber | string | nullisteğe bağlı

    -180-180

  • phone_numberstringisteğe bağlı

    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 | nullisteğe bağlı

    max 20 chars

  • recipient_first_namestringisteğe bağlı

    1-100 chars

  • recipient_full_namestringisteğe bağlı

    1-200 chars

  • recipient_last_namestringisteğe bağlı

    1-100 chars

  • state_province_regionstring | nullisteğe bağlı

    max 100 chars

  • streetstringisteğe bağlı

    1-255 chars

Yanıtlar
Örnekler

Gövde, API tanımında verilen örnektir.

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}

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

Parametreler
  • address_idyolstring (uuid)zorunlu
Yanıtlar
  • 204

    Successful Response

    Başlıklar: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset

  • Hatalar

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

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

Başvuru belgeleri

The Developer API changelog and deprecation notices

GET/api/v1/developer/changelog

Anahtar gerekmez

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.

Parametreler
Yanıtlar
Örnekler
curl
curl -X GET "https://api.lolianstore.com/api/v1/developer/changelog"

Durum kodları

Uç noktaların yanıtlayabileceği hata ve başarısızlık durumları. Her hatanın tek bir biçimi vardır; kodunuz kararını kararlı hata koduna göre vermelidir.

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

Şemalar

İstek ve yanıtlarda kullanılan yapılar. Zorunlu işaretli alan her zaman bulunur.

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