Opla
Sommaire

Développeurs

API partenaire Opla

Publiez et synchronisez votre catalogue (boutique en ligne, ERP, tableur) sur Opla, suivez les ventes et imprimez les étiquettes, depuis votre propre système.

Obtenir mes clés

Collez ce texte dans Claude, ChatGPT ou votre assistant habituel, puis dites-lui quel outil vous utilisez (WooCommerce, Odoo, PrestaShop, un tableur…) : il a toute la doc pour écrire le connecteur avec vous. Votre clé n'y figure pas.

Obtenir vos clés

La documentation est ouverte à tous. L'adresse de l'API et vos clés se trouvent dans votre espace API, une fois ces étapes passées.

  1. Une adresse d'expédition

    Votre compte vendeur Opla porte une adresse complète : les colis partent de là, et l'API refuse une annonce sans elle.

  2. Une carte, 0 €

    Enregistrez une carte, rien n'est débité. Vous recevez l'adresse de l'API et une clé de test opla_test_… : tout s'essaie dans le bac à sable, rien n'est publié.

  3. Un palier pour publier

    Choisissez le palier qui correspond à votre nombre d'annonces : la clé opla_live_… publie pour de bon. Le code ne change pas, seule la clé change.

Ouvrir mon espace API

Deux variables d'environnement

export OPLA_API_URL="https://…/v1"
export OPLA_API_KEY="opla_test_…"

Les exemples lisent l'adresse dans OPLA_API_URL et la clé dans OPLA_API_KEY. Elles n'apparaissent jamais dans le code.

Démarrage rapide

Six appels pour brancher votre catalogue, à essayer d'abord avec votre clé opla_test_… sur le bac à sable. Mettez l'adresse de l'API dans la variable d'environnement OPLA_API_URL et la clé dans OPLA_API_KEY : les exemples les lisent là, elles n'apparaissent jamais dans le code.

  1. Vérifiez votre clé

    GET /account rend votre palier, le nombre d'annonces actives, si l'adresse d'expédition du compte vendeur est complète et environment (sandbox ou production). Un 401 : la clé est absente, erronée ou révoquée.

    curl "$OPLA_API_URL/account" \
      -H "Authorization: Bearer $OPLA_API_KEY"
  2. Validez un échantillon

    POST /listings/validate vérifie jusqu'à 100 annonces sans rien publier. Chaque verdict dit ce qui ne va pas (error, issues). Les codes de catégorie, d'état, de taille, de couleur et de matière viennent de GET /reference.

    curl -X POST "$OPLA_API_URL/listings/validate" \
      -H "Authorization: Bearer $OPLA_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "listings": [
        {
          "externalId": "SKU-10442",
          "title": "Linen midi dress",
          "description": "Worn twice, no marks. Length 110 cm.",
          "category": "SUMMER_DRESSES",
          "condition": "like-new",
          "brand": "Sézane",
          "priceCents": 4500,
          "images": [
            "https://cdn.your-shop.example/p/10442-1.jpg",
            "https://cdn.your-shop.example/p/10442-2.jpg"
          ],
          "sizes": [
            "38-M"
          ],
          "colors": [
            "BLUE"
          ],
          "materials": [
            "linen"
          ]
        },
        {
          "externalId": "SKU-10443",
          "title": "Linen midi dress",
          "description": "Worn twice, no marks. Length 110 cm.",
          "category": "WOMEN_ROOT",
          "condition": "like-new",
          "brand": "Sézane",
          "priceCents": 4500,
          "images": [
            "https://cdn.your-shop.example/p/10442-1.jpg",
            "https://cdn.your-shop.example/p/10442-2.jpg"
          ],
          "sizes": [
            "38-M"
          ],
          "colors": [
            "BLUE"
          ],
          "materials": [
            "linen"
          ]
        }
      ]
    }'
  3. Importez par travail

    POST /jobs accepte jusqu'à 1 000 annonces et répond 202 avec l'adresse du travail. Envoyez un Idempotency-Key : en cas de coupure, renvoyez la même requête avec la même clé, sans risque de doublon.

    curl -X POST "$OPLA_API_URL/jobs" \
      -H "Authorization: Bearer $OPLA_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
      "type": "upsert_listings",
      "listings": [
        {
          "externalId": "SKU-10442",
          "title": "Linen midi dress",
          "description": "Worn twice, no marks. Length 110 cm.",
          "category": "SUMMER_DRESSES",
          "condition": "like-new",
          "brand": "Sézane",
          "priceCents": 4500,
          "images": [
            "https://cdn.your-shop.example/p/10442-1.jpg",
            "https://cdn.your-shop.example/p/10442-2.jpg"
          ],
          "sizes": [
            "38-M"
          ],
          "colors": [
            "BLUE"
          ],
          "materials": [
            "linen"
          ]
        },
        {
          "externalId": "SKU-10443",
          "title": "Floral wrap dress",
          "description": "New with tags, never worn.",
          "category": "SUMMER_DRESSES",
          "condition": "new-with-tags",
          "brand": "Rouje",
          "priceCents": 6900,
          "images": [
            "https://cdn.your-shop.example/p/10443-1.jpg"
          ],
          "sizes": [
            "36-S"
          ],
          "colors": [
            "PINK"
          ],
          "materials": [
            "cotton"
          ]
        }
      ]
    }'
  4. Suivez le travail

    Interrogez GET /jobs/{jobId} toutes les 10 à 30 secondes jusqu'à completed, puis lisez GET /jobs/{jobId}/items?result=invalid,refused,failed pour corriger ce qui n'est pas passé.

    curl "$OPLA_API_URL/jobs/job_2FK8vSEnwNq-SNW8" \
      -H "Authorization: Bearer $OPLA_API_KEY"
  5. Synchronisez les états

    À intervalle régulier, GET /listings?updatedSince=… rend chaque annonce dont l'état a changé : décisions de modération, ventes, retraits. Gardez le dernier updatedAt reçu et repassez-le la fois suivante.

    curl "$OPLA_API_URL/listings?updatedSince=2026-12-01T00:00:00Z" \
      -H "Authorization: Bearer $OPLA_API_KEY"
  6. Expédiez les ventes

    GET /orders liste les commandes à expédier ; POST /orders/{orderId}/label rend l'étiquette PDF. Sur le bac à sable, POST /sandbox/listings/{externalId}/sell simule une vente pour tester ce parcours de bout en bout.

    curl -X POST "$OPLA_API_URL/orders/che_e02e0a2fe22414aebc4166b480b8496a/label" \
      -H "Authorization: Bearer $OPLA_API_KEY"

Schémas

Comment une annonce, un import et une commande avancent, en un coup d'œil.

Cycle de vie d'une annonce

PUT · POST /jobs202queuedrefusedrègle : palier, adresse…failedtechnique : renvoyerpending_moderationrejectedmodération : corrigerlivesolddeletedune commande à expédierretirée par vous

Chaque écriture est acceptée tout de suite (202), puis publiée et modérée. Les états en rouge disent pourquoi dans refusal ou rejection : corrigez, puis renvoyez l'annonce.

Un import, étape par étape

Votre systèmeOpla APIPOST /jobsjusqu'à 1 000 annonces202 · Location: /v1/jobs/{id}GET /jobs/{id}toutes les 10 à 30 sstatus: "completed"GET /jobs/{id}/items?result=…seulement ce qui a échouéles annonces à corrigerGET /listings?updatedSince=…ensuite, à intervalle réguliermodération, ventes

Les travaux d'un même compte passent un par un, dans l'ordre. Opla ralentit le rythme quand la modération est chargée : comptez en minutes pour un gros import.

D'une vente à l'étiquette

  1. Un acheteur paie sur Opla : la commande est à expédier.

    to_ship
  2. Votre système la voit en interrogeant les commandes.

    GET /orders?status=to_ship
  3. Il demande l'étiquette Mondial Relay ou InPost (PDF).

    POST /orders/{orderId}/label
  4. Le colis est déposé en point relais avant la date limite.

    shippingDeadline
  5. Le suivi du transporteur la fait avancer.

    shipped → delivered
  6. L'acheteur valide : l'argent est versé.

    completed

Il n'y a pas d'appel « expédié » : le suivi du transporteur fait avancer la commande. Aucune donnée personnelle de l'acheteur n'est transmise.

Démarrer

  1. Votre clé

    Vos clés et l'adresse de l'API se trouvent dans votre espace API (opla.co/account/api), une fois une carte enregistrée (0 €). La clé de test opla_test_… est gratuite et ouvre le bac à sable : annonces et ventes simulées, étiquette d'exemple, rien n'est publié sur Opla. La clé opla_live_… publie pour de bon ; elle se génère une fois l'abonnement payé. Envoyez-la dans l'en-tête Authorization: Bearer <clé>. Elle n'est affichée qu'une fois : gardez-la sur votre serveur, jamais dans une page web ni un dépôt public.

  2. Le référentiel

    GET /reference donne les catégories, états, tailles, couleurs et matières attendus. Seules les catégories finales sont acceptées. Gardez-le en cache et rechargez-le quand sa version change.

  3. Publier et mettre à jour

    Chaque annonce porte votre propre référence, externalId (souvent le SKU). PUT /listings/{externalId} crée ou met à jour une annonce : envoyez-la complète, un envoi identique ne coûte rien. Pour un import ou une mise à jour en masse, testez un échantillon avec POST /listings/validate, puis déposez un travail avec POST /jobs (jusqu'à 1 000 annonces, en-tête Idempotency-Key conseillé). La réponse 202 donne l'adresse du travail : suivez GET /jobs/{jobId} jusqu'à completed, puis lisez GET /jobs/{jobId}/items?result=invalid,refused,failed pour corriger ce qui n'est pas passé. La publication passe par la modération d'Opla : GET /listings?updatedSince=… vous rend chaque annonce dont l'état a changé (live, rejected, refused, vendue).

  4. Vendu ailleurs : retirez l'annonce aussitôt

    Dès qu'un article n'est plus en stock chez vous, appelez DELETE /listings/{externalId}. Un article déjà vendu sur Opla répond listing_sold : ne le vendez pas ailleurs.

  5. Commandes et étiquettes

    GET /orders liste les commandes payées à expédier. POST /orders/{orderId}/label donne l'étiquette Mondial Relay ou InPost à imprimer ; le colis part au point relais indiqué. Aucune donnée personnelle de l'acheteur n'est transmise.

Palier et limites

Votre palier fixe le nombre d'annonces actives, avec 10 % de tolérance. Au-delà, une nouvelle annonce est refusée (listing_cap_reached) et il faut passer au palier supérieur. Les brouillons ne comptent pas. Par minute : 600 lectures et 60 écritures ; les en-têtes X-RateLimit-Remaining et X-RateLimit-Reset donnent ce qui reste, et sur un 429 attendez la durée de Retry-After. Un travail compte pour une seule écriture ; Opla le traite à son rythme, plus lentement quand la modération est chargée. Chaque réponse porte un X-Request-Id à nous donner en cas de souci, et chaque erreur un code stable (error) avec un message dans la langue demandée par Accept-Language.

Erreurs

Toutes les erreurs ont la même forme : { "error": "<code>", "message": "…" }. Réagissez au code, affichez le message (dans la langue d'Accept-Language). Réessayez 429 et 5xx avec un délai croissant ; un 4xx ne se renvoie pas tel quel.

  • duplicate_external_idHTTP 400

    The same externalId appears twice in one job.

    Keep one entry per reference (see externalIds).

  • image_url_refusedHTTP 400

    A photo URL is not a public https address, or could not be downloaded.

    Serve the photos over public https (no login, no signed URL that expires within the hour).

  • invalid_categoryHTTP 400

    Unknown category, or not a leaf.

    Use a leaf code from GET /reference.

  • invalid_external_idHTTP 400

    An externalId is not 1 to 64 letters, digits, ., _, : or -.

    Normalise your reference (e.g. replace spaces).

  • invalid_inputHTTP 400

    The body does not match the schema.

    Read issues (path, code, message) and fix each field.

  • price_too_highHTTP 400

    Above the maximum price.

    See rules.maxPriceCents in GET /reference.

  • price_too_lowHTTP 400

    Below the minimum price.

    See rules.minPriceCents in GET /reference.

  • too_many_imagesHTTP 400

    More than 8 photos.

    Send the 8 best, cover first.

  • unauthorizedHTTP 401

    The key is missing, malformed or revoked.

    Check the Authorization: Bearer header and that the key is still active on your API page.

  • account_blockedHTTP 403

    The Opla seller account is blocked.

    Contact Opla support.

  • account_deletedHTTP 403

    The Opla seller account was deleted.

    Contact Opla support.

  • email_not_confirmedHTTP 403

    The seller account has not confirmed its email address.

    Confirm it from the Opla app, then send the listing again.

  • partner_suspendedHTTP 403

    API access of this account is suspended.

    Contact Opla.

  • phone_verification_requiredHTTP 403

    Listings above 300 € need a verified phone number (or a Pro account).

    Verify the phone in the Opla app, or lower the price.

  • not_foundHTTP 404

    Unknown resource for this account (listing, job or order).

    Check the identifier; another account’s resources always answer 404.

  • concurrent_updateHTTP 409Oui, plus tard

    Another request changed the same listing at the same moment.

    Send the request again; a whole-listing PUT is safe to repeat.

  • idempotency_key_reusedHTTP 409

    This Idempotency-Key was used with a different body.

    Use a new key for a new job; reuse a key only to retry the same body.

  • label_not_availableHTTP 409Oui, plus tard

    No label for this order: cancelled, hand delivery, or the carrier is still creating it.

    Retry in a few minutes; reason gives the detail.

  • listing_cap_reachedHTTP 409

    The active listing cap of your tier, plus 10 %, is reached.

    Unpublish listings or move up a tier (nextTier). Updates and drafts still work.

  • listing_not_liveHTTP 409

    Sandbox: the listing to sell is not live (draft, under moderation or deleted).

    Publish the listing (PUT with status active) and wait for live before simulating a sale.

  • listing_soldHTTP 409

    The listing sold on Opla; it can no longer change.

    Do not sell it elsewhere; read the order with GET /orders.

  • publish_suspendedHTTP 409

    Publishing is temporarily suspended for this seller account.

    Contact Opla support.

  • seller_address_incompleteHTTP 409

    The seller account has no complete shipping address, so no label could be created.

    Complete it in the Opla app or website. Drafts are still accepted meanwhile.

  • batch_too_largeHTTP 413

    More than 100 listings in POST /listings/validate.

    Split the sample.

  • job_too_largeHTTP 413

    More than 1,000 items in a job.

    Split into several jobs.

  • rate_limitedHTTP 429Oui, plus tard

    Too many requests this minute.

    Wait Retry-After seconds. For many listings, use a job.

  • too_many_jobsHTTP 429Oui, plus tard

    25 jobs are already open for this account.

    Wait for the first ones to complete (GET /jobs), then submit again.

  • internal_errorHTTP 500Oui, plus tard

    Unexpected error on Opla’s side.

    Retry with exponential backoff; if it persists, send Opla the X-Request-Id.

Référence technique

En anglais, générée depuis la spécification OpenAPI 1.2.1, qui fait foi.

Connect your own catalogue (WooCommerce, Odoo, a custom back office…) to your Opla seller account: publish and update listings by your own reference (externalId), unpublish them the moment they sell elsewhere, and read the orders paid on Opla.

Getting a key. Each key belongs to one Opla seller account. Test keys are free once you have saved a card (nothing is charged); a production key comes with a monthly plan, charged when you activate it, and carries the active-listing cap of its tier. Both are created on your API page on opla.co.

Sandbox, then production. Build and test your connector with an opla_test_… key, on the same host as production. With a test key, everything is simulated: listings go through the same checks (shape, catalogue rules, photos downloaded) but are never published and never reach buyers, POST /sandbox/listings/{externalId}/sell simulates a sale and its order, and POST /orders/{orderId}/label returns a sample label. Up to 1,000 active test listings. When your connector is ready, subscribe and switch to your opla_live_… key: nothing else changes in your code. Sandbox data never becomes real.

Typical connector

  1. GET /reference once, cache it, and reload it only when version changes.
  2. Build a mapping from your categories, conditions and sizes to Opla codes.
  3. POST /listings/validate on a sample (dry run, up to 100).
  4. Import and bulk updates: POST /jobs (up to 1,000 listings per job), then follow GET /jobs/{jobId} until completed and read the failures with GET /jobs/{jobId}/items?result=invalid,refused,failed.
  5. Day-to-day changes (price, stock, one new item): PUT /listings/{externalId}. Unpublish with DELETE /listings/{externalId} as soon as an item sells elsewhere.
  6. Follow moderation and sales with GET /listings?updatedSince=… (keep the latest updatedAt you saw), and poll GET /orders for new orders to ship, then POST /orders/{orderId}/label.

Asynchronous by design. Every listing goes through Opla's usual publication and moderation, like a listing posted from the app. Writes answer 202 once accepted; the final state comes later. Jobs are processed one at a time per account, in order, at a pace that never delays other sellers: expect a few thousand listings per hour, less when Opla's moderation is busy.

Limits (per account): 600 reads and 60 writes per minute. Every authenticated response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds) for the bucket of the route; a 429 carries Retry-After. Up to 25 open jobs. Every response carries X-Request-Id: quote it when you contact Opla.

Errors always carry a stable error code and a message in the language of Accept-Language (fr, en, es, pt, nl; English by default). Branch on error, never on message. Retry 429 and 5xx with exponential backoff; never retry a 4xx unchanged.

Pagination. Lists return nextCursor; pass it as cursor to get the next page and stop when it is null. A filtered page may hold fewer items than limit, even none: only a null cursor means the end.

Compatibility. Within /v1, Opla only adds: new endpoints, new optional fields, new values in state, result and error. Ignore what you do not know. Changes are listed in x-changelog.

Account

Your partner account, tier and listing usage

GET/account

curl "$OPLA_API_URL/account" \
  -H "Authorization: Bearer $OPLA_API_KEY"
Exemple de réponse · 200
{
  "partnerId": "your-shop",
  "name": "Your Shop",
  "environment": "production",
  "status": "active",
  "tier": "upTo5000",
  "listings": {
    "active": 4210,
    "cap": 5000,
    "hardCap": 5500,
    "overCap": false,
    "nextTier": "upTo25000"
  },
  "sellerAddressComplete": true,
  "rateLimits": {
    "readsPerMinute": 600,
    "writesPerMinute": 60
  },
  "jobs": {
    "maxItems": 1000,
    "maxOpen": 25
  }
}

Réponses

  • 200AccountAccount
    • partnerIdstringobligatoire
    • namestringobligatoire
    • environmentstringobligatoire

      production · sandbox

    • statusstringobligatoire

      active · suspended

    • tierstringobligatoire

      upTo5000: up to 5,000 active listings · upTo25000: up to 25,000 · upTo50000: up to 50,000 · over50000: custom cap

      upTo5000 · upTo25000 · upTo50000 · over50000

    • listingsobjectobligatoire
    • listings.activeintegerobligatoire
    • listings.capintegerobligatoire
    • listings.hardCapintegerobligatoire
    • listings.overCapbooleanobligatoire

      Above the paid cap

    • listings.nextTierstring

      upTo5000: up to 5,000 active listings · upTo25000: up to 25,000 · upTo50000: up to 50,000 · over50000: custom cap

    • sellerAddressCompletebooleanobligatoire

      Without a complete shipping address, listings can only be drafts

    • rateLimitsobjectobligatoire
    • rateLimits.readsPerMinuteinteger
    • rateLimits.writesPerMinuteinteger
    • jobsobjectobligatoire
    • jobs.maxItemsinteger
    • jobs.maxOpeninteger
  • 401Missing, invalid or revoked key (unauthorized)Error
  • 403API access suspended (partner_suspended)Error

Reference

Categories, conditions, sizes, colours, materials and validation rules

GET/reference

Everything needed to map your catalogue to Opla codes. Only leaf categories are valid in a listing. A leaf with a sizeGrid takes size codes from sizes[sizeGrid]. Cache the response and reload it when version changes (the version does not depend on the language).

curl "$OPLA_API_URL/reference?lang=en" \
  -H "Authorization: Bearer $OPLA_API_KEY"
Exemple de réponse · 200
{
  "version": "22d7efa24d5243b007ad7a4adcc08945",
  "locale": "en",
  "categories": [
    {
      "code": "WOMEN_ROOT",
      "title": "Women",
      "leaf": false,
      "categories": [
        {
          "code": "WOMENS",
          "title": "Clothing",
          "leaf": false,
          "categories": [
            {
              "code": "DRESSES",
              "title": "Dresses",
              "leaf": false,
              "categories": [
                {
                  "code": "SUMMER_DRESSES",
                  "title": "Summer dresses",
                  "leaf": true,
                  "sizeGrid": "women",
                  "weightGrams": 450
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "conditions": [
    {
      "code": "like-new",
      "title": "Very good condition",
      "description": "Worn very little; no visible flaws; clean."
    }
  ],
  "sizes": {
    "women": [
      {
        "code": "36-S",
        "title": "UK 8 (S)"
      },
      {
        "code": "38-M",
        "title": "UK 10 (M)"
      }
    ]
  },
  "colors": [
    {
      "code": "BLUE",
      "title": "Blue"
    }
  ],
  "materials": [
    {
      "code": "linen",
      "title": "Linen"
    }
  ],
  "weightBracketsGrams": [
    250,
    500,
    1000,
    2000,
    3000,
    4000,
    5000,
    7000,
    10000,
    15000,
    20000,
    25000,
    30000
  ],
  "rules": {
    "currency": "EUR",
    "minPriceCents": 10,
    "maxPriceCents": 100000,
    "highValueThresholdCents": 30000,
    "maxImages": 8,
    "titleMaxLength": 120,
    "descriptionMaxLength": 2000,
    "maxSizes": 5,
    "maxColors": 2,
    "maxMaterials": 3,
    "batchMaxItems": 100
  }
}

Paramètres

  • langquery · string

    Language of the titles (defaults to Accept-Language, then English)

    fr · en · es · pt · nl

Réponses

  • 200Reference dataReference
    • versionstringobligatoire
    • localestringobligatoire
    • categoriesReferenceCategory[]obligatoire
    • categories[].codestringobligatoire
    • categories[].titlestringobligatoire
    • categories[].leafbooleanobligatoire
    • categories[].sizeGridstring

      shoes · adult · children · bras · rings · women

    • categories[].weightGramsinteger
    • categories[].categoriesReferenceCategory[]
    • categories[].categories[].codestringobligatoire
    • categories[].categories[].titlestringobligatoire
    • categories[].categories[].leafbooleanobligatoire
    • categories[].categories[].sizeGridstring

      shoes · adult · children · bras · rings · women

    • categories[].categories[].weightGramsinteger
    • categories[].categories[].categoriesReferenceCategory[]
    • conditionsobject[]obligatoire
    • conditions[].codestring
    • conditions[].titlestring
    • conditions[].descriptionstring
    • sizesobjectobligatoire

      Size codes per grid (shoes, adult, children, bras, rings, women)

    • colorsCodeTitle[]obligatoire
    • colors[].codestringobligatoire
    • colors[].titlestringobligatoire
    • materialsCodeTitle[]obligatoire
    • materials[].codestringobligatoire
    • materials[].titlestringobligatoire
    • weightBracketsGramsinteger[]obligatoire
    • rulesobjectobligatoire
    • rules.currencystring
    • rules.minPriceCentsinteger
    • rules.maxPriceCentsinteger
    • rules.highValueThresholdCentsinteger
    • rules.maxImagesinteger
    • rules.titleMaxLengthinteger
    • rules.descriptionMaxLengthinteger
    • rules.maxSizesinteger
    • rules.maxColorsinteger
    • rules.maxMaterialsinteger
    • rules.batchMaxItemsinteger
  • 401Missing, invalid or revoked key (unauthorized)Error

Listings

List your listings, page by page

GET/listings

Ordered by externalId, or by last update when updatedSince is given. The state returned is read from the Opla listing at request time.

updatedSince returns the listings whose state changed since then: your own writes, and also moderation decisions (within minutes) and sales (within the hour). Store the latest updatedAt you received and pass it next time. To catch sales immediately, poll GET /orders.

state filters on the state recorded at the last change (comma-separated). A page may hold fewer than limit listings when filtering: follow nextCursor until it is null.

curl "$OPLA_API_URL/listings?updatedSince=2026-12-01T00:00:00Z" \
  -H "Authorization: Bearer $OPLA_API_KEY"
Exemple de réponse · 200
{
  "listings": [
    {
      "externalId": "SKU-10442",
      "state": "live",
      "articleId": "art_52a0081e81888684f8fe8a86a0c27d34",
      "url": "https://opla.co/product/art_52a0081e81888684f8fe8a86a0c27d34",
      "countsTowardCap": true,
      "upToDate": true,
      "createdAt": "2026-12-01T22:31:41.633Z",
      "updatedAt": "2026-12-01T22:34:12.008Z"
    },
    {
      "externalId": "SKU-10457",
      "state": "rejected",
      "articleId": "art_6fc1021db8c0253ac449fbea4c02a573",
      "url": null,
      "countsTowardCap": false,
      "upToDate": true,
      "rejection": {
        "category": "off_platform_contact",
        "title": "External contact details",
        "description": "Your listing points outside Opla."
      },
      "createdAt": "2026-12-01T22:31:51.434Z",
      "updatedAt": "2026-12-01T22:40:03.512Z"
    }
  ],
  "nextCursor": "eyJwYXJ0bmVySWQiOiJ5b3VyLXNob3AiLCJleHRlcm5hbElkIjoiU0tVLTEwNDU3In0"
}

Paramètres

  • cursorquery · string

    nextCursor from the previous page

  • limitquery · integer
  • updatedSincequery · string (date-time)

    ISO 8601 date-time

  • statequery · string

    Comma-separated states, e.g. rejected,refused,failed

Réponses

  • 200A page of listingsobject
    • listingsListing[]obligatoire
    • listings[].externalIdstringobligatoire
    • listings[].statestringobligatoire

      queued: accepted, being published · live: on sale · pending_moderation: being reviewed · rejected: refused by moderation (see rejection) · draft · sold · deleted · refused: the last version was refused at publication (see refusal) · failed: technical failure, send the listing again

      queued · live · pending_moderation · rejected · draft · sold · deleted · refused · failed

    • listings[].articleIdstring | nullobligatoire
    • listings[].urlstring | nullobligatoire

      Public page

    • listings[].countsTowardCapbooleanobligatoire
    • listings[].upToDatebooleanobligatoire

      The last version you sent is applied to the Opla listing

    • listings[].refusalobject
    • listings[].refusal.codestring
    • listings[].refusal.messagestring | null
    • listings[].refusal.statusinteger
    • listings[].rejectionobject

      Moderation decision, when state is rejected

    • listings[].rejection.categorystring
    • listings[].rejection.titlestring
    • listings[].rejection.descriptionstring
    • listings[].createdAtstring (date-time)obligatoire
    • listings[].updatedAtstring (date-time)obligatoire
    • nextCursorstring | nullobligatoire
  • 401Missing, invalid or revoked key (unauthorized)Error

Validate up to 100 listings without publishing anything

POST/listings/validate

Runs the checks of a PUT (shape, category, price, photos URLs, seller address) with no side effect and no quota. Account-level rules (suspension, verification above 300 €) are applied at publication time.

Requête
curl -X POST "$OPLA_API_URL/listings/validate" \
  -H "Authorization: Bearer $OPLA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "listings": [
    {
      "externalId": "SKU-10442",
      "title": "Linen midi dress",
      "description": "Worn twice, no marks. Length 110 cm.",
      "category": "SUMMER_DRESSES",
      "condition": "like-new",
      "brand": "Sézane",
      "priceCents": 4500,
      "images": [
        "https://cdn.your-shop.example/p/10442-1.jpg",
        "https://cdn.your-shop.example/p/10442-2.jpg"
      ],
      "sizes": [
        "38-M"
      ],
      "colors": [
        "BLUE"
      ],
      "materials": [
        "linen"
      ]
    },
    {
      "externalId": "SKU-10443",
      "title": "Linen midi dress",
      "description": "Worn twice, no marks. Length 110 cm.",
      "category": "WOMEN_ROOT",
      "condition": "like-new",
      "brand": "Sézane",
      "priceCents": 4500,
      "images": [
        "https://cdn.your-shop.example/p/10442-1.jpg",
        "https://cdn.your-shop.example/p/10442-2.jpg"
      ],
      "sizes": [
        "38-M"
      ],
      "colors": [
        "BLUE"
      ],
      "materials": [
        "linen"
      ]
    }
  ]
}'
Exemple de réponse · 207
{
  "results": [
    {
      "status": 200,
      "externalId": "SKU-10442",
      "valid": true
    },
    {
      "status": 400,
      "externalId": "SKU-10443",
      "valid": false,
      "error": "invalid_category",
      "message": "Choose a more specific category from the list to publish your listing."
    }
  ]
}

Corps de la requête ListingBatch

  • listingsobject & ListingInput[]obligatoire

    0–100 items

  • listings[].externalIdstringobligatoire

    pattern ^[A-Za-z0-9._:-]{1,64}$

  • listings[].titlestringobligatoire

    3–120 chars

  • listings[].descriptionstring

    0–2000 chars

  • listings[].categorystringobligatoire

    Code of a LEAF category from /reference

  • listings[].conditionstringobligatoire

    new-with-tags · new · like-new · good · fair

  • listings[].brandstringobligatoire

    Free text; use the brand as printed on the item

  • listings[].priceCentsintegerobligatoire

    Price in euro cents. Above 30,000 the seller account must be Pro or verified.

    10–100000

  • listings[].imagesstring (uri)[]obligatoire

    Public https URLs, cover first. JPEG, PNG, WebP, AVIF or HEIC, 10 MB max each.

    1–8 items

  • listings[].sizesstring[]

    Size codes from /reference (sizes[sizeGrid] of the category)

    0–5 items

  • listings[].colorsstring[]

    0–2 items

  • listings[].materialsstring[]

    0–3 items

  • listings[].weightBracketGramsinteger

    Parcel weight bracket; defaults to the category weight

    250 · 500 · 1000 · 2000 · 3000 · 4000 · 5000 · 7000 · 10000 · 15000 · 20000 · 25000 · 30000

  • listings[].statusstring

    A draft is stored but not visible and does not use a slot

    active · draft

Réponses

  • 207One verdict per listingobject
    • resultsValidationResult[]obligatoire
    • results[].statusintegerobligatoire
    • results[].externalIdstringobligatoire
    • results[].validbooleanobligatoire
    • results[].errorstring
    • results[].messagestring
    • results[].issuesobject[]

      Field errors, for invalid_input

    • results[].issues[].pathstring
    • results[].issues[].codestring
    • results[].issues[].messagestring
  • 400invalid_input (see issues), invalid_external_id, invalid_category, price_too_low, price_too_high, too_many_images, image_url_refusedError
  • 401Missing, invalid or revoked key (unauthorized)Error

Read one listing and its state

GET/listings/{externalId}

curl "$OPLA_API_URL/listings/SKU-10442" \
  -H "Authorization: Bearer $OPLA_API_KEY"
Exemple de réponse · 200
{
  "externalId": "SKU-10442",
  "state": "live",
  "articleId": "art_52a0081e81888684f8fe8a86a0c27d34",
  "url": "https://opla.co/product/art_52a0081e81888684f8fe8a86a0c27d34",
  "countsTowardCap": true,
  "upToDate": true,
  "createdAt": "2026-12-01T22:31:41.633Z",
  "updatedAt": "2026-12-01T22:34:12.008Z"
}

Paramètres

  • externalIdpath · stringobligatoire

    Your own reference for the item (SKU, product id…)

Réponses

  • 200ListingListing
    • externalIdstringobligatoire
    • statestringobligatoire

      queued: accepted, being published · live: on sale · pending_moderation: being reviewed · rejected: refused by moderation (see rejection) · draft · sold · deleted · refused: the last version was refused at publication (see refusal) · failed: technical failure, send the listing again

      queued · live · pending_moderation · rejected · draft · sold · deleted · refused · failed

    • articleIdstring | nullobligatoire
    • urlstring | nullobligatoire

      Public page

    • countsTowardCapbooleanobligatoire
    • upToDatebooleanobligatoire

      The last version you sent is applied to the Opla listing

    • refusalobject
    • refusal.codestring
    • refusal.messagestring | null
    • refusal.statusinteger
    • rejectionobject

      Moderation decision, when state is rejected

    • rejection.categorystring
    • rejection.titlestring
    • rejection.descriptionstring
    • createdAtstring (date-time)obligatoire
    • updatedAtstring (date-time)obligatoire
  • 401Missing, invalid or revoked key (unauthorized)Error
  • 404Unknown for this account (not_found)Error

Create or update a listing by your reference (idempotent)

PUT/listings/{externalId}

Accepted synchronously, published asynchronously: the answer is 202 queued, then the photos are downloaded and the listing goes through Opla's usual publication and moderation. Sending the same body again returns 200 unchanged and does nothing.

Only a listing that becomes active uses a slot of your tier (creation, or a draft set to active). Updates and drafts never count. Above your paid cap, a 10 % tolerance applies; beyond it, creations are refused with 409 listing_cap_reached.

Requête
curl -X PUT "$OPLA_API_URL/listings/SKU-10442" \
  -H "Authorization: Bearer $OPLA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Linen midi dress",
  "description": "Worn twice, no marks. Length 110 cm.",
  "category": "SUMMER_DRESSES",
  "condition": "like-new",
  "brand": "Sézane",
  "priceCents": 4500,
  "images": [
    "https://cdn.your-shop.example/p/10442-1.jpg",
    "https://cdn.your-shop.example/p/10442-2.jpg"
  ],
  "sizes": [
    "38-M"
  ],
  "colors": [
    "BLUE"
  ],
  "materials": [
    "linen"
  ]
}'
Exemple de réponse · 200
{
  "externalId": "SKU-10442",
  "state": "unchanged",
  "articleId": "art_52a0081e81888684f8fe8a86a0c27d34"
}

Paramètres

  • externalIdpath · stringobligatoire

    Your own reference for the item (SKU, product id…)

Corps de la requête ListingInput

  • titlestringobligatoire

    3–120 chars

  • descriptionstring

    0–2000 chars

  • categorystringobligatoire

    Code of a LEAF category from /reference

  • conditionstringobligatoire

    new-with-tags · new · like-new · good · fair

  • brandstringobligatoire

    Free text; use the brand as printed on the item

  • priceCentsintegerobligatoire

    Price in euro cents. Above 30,000 the seller account must be Pro or verified.

    10–100000

  • imagesstring (uri)[]obligatoire

    Public https URLs, cover first. JPEG, PNG, WebP, AVIF or HEIC, 10 MB max each.

    1–8 items

  • sizesstring[]

    Size codes from /reference (sizes[sizeGrid] of the category)

    0–5 items

  • colorsstring[]

    0–2 items

  • materialsstring[]

    0–3 items

  • weightBracketGramsinteger

    Parcel weight bracket; defaults to the category weight

    250 · 500 · 1000 · 2000 · 3000 · 4000 · 5000 · 7000 · 10000 · 15000 · 20000 · 25000 · 30000

  • statusstring

    A draft is stored but not visible and does not use a slot

    active · draft

Réponses

  • 200Identical to the last accepted version, nothing to doAccepted
    • externalIdstringobligatoire
    • statestringobligatoire

      queued · unchanged

    • articleIdstring | null

      Opla listing id once created

    • versioninteger
  • 202Accepted and queuedAccepted
    • externalIdstringobligatoire
    • statestringobligatoire

      queued · unchanged

    • articleIdstring | null

      Opla listing id once created

    • versioninteger
  • 400invalid_input (see issues), invalid_external_id, invalid_category, price_too_low, price_too_high, too_many_images, image_url_refusedError
  • 401Missing, invalid or revoked key (unauthorized)Error
  • 403Account cannot publish this listing (email_not_confirmed, phone_verification_required)Error
  • 409listing_cap_reached (see CapReached), seller_address_incomplete, or listing_sold (a sold listing can no longer change)CapReached | Error
  • 429Too many requests this minute (rate_limited); wait Retry-After secondsError

Unpublish a listing now (sold elsewhere, out of stock…)

DELETE/listings/{externalId}

Synchronous: the listing is off Opla when the call returns. A version still queued for this reference is cancelled. Frees a slot of your tier.

curl -X DELETE "$OPLA_API_URL/listings/SKU-10442" \
  -H "Authorization: Bearer $OPLA_API_KEY"
Exemple de réponse · 200
{
  "externalId": "SKU-10442",
  "state": "deleted",
  "articleId": "art_52a0081e81888684f8fe8a86a0c27d34"
}

Paramètres

  • externalIdpath · stringobligatoire

    Your own reference for the item (SKU, product id…)

Réponses

  • 200Unpublished (or already unpublished)object
    • externalIdstringobligatoire
    • statestringobligatoire

      deleted

    • articleIdstring | null
  • 401Missing, invalid or revoked key (unauthorized)Error
  • 404Unknown for this account (not_found)Error
  • 409listing_sold: the listing sold on Opla, read the order insteadError
  • 429Too many requests this minute (rate_limited); wait Retry-After secondsError

Jobs

Your jobs, newest first (kept 30 days)

GET/jobs

curl "$OPLA_API_URL/jobs" \
  -H "Authorization: Bearer $OPLA_API_KEY"
Exemple de réponse · 200
{
  "jobs": [
    {
      "jobId": "job_2FK8vSEnwNq-SNW8",
      "type": "upsert_listings",
      "status": "completed",
      "counts": {
        "total": 3,
        "pending": 0,
        "queued": 0,
        "applied": 2,
        "unchanged": 0,
        "invalid": 1,
        "refused": 0,
        "failed": 0,
        "superseded": 0,
        "deleted": 0,
        "not_found": 0
      },
      "createdAt": "2026-12-02T07:42:07.778Z",
      "startedAt": "2026-12-02T07:42:09.784Z",
      "completedAt": "2026-12-02T07:42:11.681Z"
    }
  ],
  "nextCursor": null
}

Paramètres

  • statusquery · string

    pending · processing · completed

  • cursorquery · string

    nextCursor from the previous page

  • limitquery · integer

Réponses

  • 200A page of jobsobject
    • jobsJob[]obligatoire
    • jobs[].jobIdstringobligatoire
    • jobs[].typestringobligatoire

      upsert_listings · delete_listings

    • jobs[].statusstringobligatoire

      pending: waiting for its turn · processing · completed: every item has an outcome

      pending · processing · completed

    • jobs[].countsobjectobligatoire

      Number of items per result, plus total

    • jobs[].counts.totalintegerobligatoire
    • jobs[].counts.pendinginteger
    • jobs[].counts.queuedinteger
    • jobs[].counts.appliedinteger
    • jobs[].counts.unchangedinteger
    • jobs[].counts.invalidinteger
    • jobs[].counts.refusedinteger
    • jobs[].counts.failedinteger
    • jobs[].counts.supersededinteger
    • jobs[].counts.deletedinteger
    • jobs[].counts.not_foundinteger
    • jobs[].createdAtstring (date-time)obligatoire
    • jobs[].startedAtstring (date-time) | nullobligatoire
    • jobs[].completedAtstring (date-time) | nullobligatoire
    • nextCursorstring | nullobligatoire
  • 401Missing, invalid or revoked key (unauthorized)Error

Submit a job (import, bulk update or bulk unpublish)

POST/jobs

Up to 1,000 listings per job. The body is checked for shape only (types, references, duplicates); each listing is then validated and processed like a PUT /listings/{externalId}, and its outcome is reported per item.

Send an Idempotency-Key header (any unique string, kept 24 h) to retry a submission safely: the same key with the same body returns the job already created (200), the same key with another body is refused (409 idempotency_key_reused).

Requête
curl -X POST "$OPLA_API_URL/jobs" \
  -H "Authorization: Bearer $OPLA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "type": "upsert_listings",
  "listings": [
    {
      "externalId": "SKU-10442",
      "title": "Linen midi dress",
      "description": "Worn twice, no marks. Length 110 cm.",
      "category": "SUMMER_DRESSES",
      "condition": "like-new",
      "brand": "Sézane",
      "priceCents": 4500,
      "images": [
        "https://cdn.your-shop.example/p/10442-1.jpg",
        "https://cdn.your-shop.example/p/10442-2.jpg"
      ],
      "sizes": [
        "38-M"
      ],
      "colors": [
        "BLUE"
      ],
      "materials": [
        "linen"
      ]
    },
    {
      "externalId": "SKU-10443",
      "title": "Floral wrap dress",
      "description": "New with tags, never worn.",
      "category": "SUMMER_DRESSES",
      "condition": "new-with-tags",
      "brand": "Rouje",
      "priceCents": 6900,
      "images": [
        "https://cdn.your-shop.example/p/10443-1.jpg"
      ],
      "sizes": [
        "36-S"
      ],
      "colors": [
        "PINK"
      ],
      "materials": [
        "cotton"
      ]
    }
  ]
}'
Exemple de réponse · 202
{
  "jobId": "job_2FK8vSEnwNq-SNW8",
  "type": "upsert_listings",
  "status": "pending",
  "counts": {
    "total": 2,
    "pending": 2
  },
  "createdAt": "2026-12-02T07:42:07.778Z",
  "startedAt": null,
  "completedAt": null
}

Paramètres

  • Idempotency-Keyheader · string

Corps de la requête JobRequest

Une des formes suivantes :

type = "upsert_listings"

  • typestringobligatoire

    upsert_listings

  • listingsobject & ListingInput[]obligatoire

    1–1000 items

  • listings[].externalIdstringobligatoire

    pattern ^[A-Za-z0-9._:-]{1,64}$

  • listings[].titlestringobligatoire

    3–120 chars

  • listings[].descriptionstring

    0–2000 chars

  • listings[].categorystringobligatoire

    Code of a LEAF category from /reference

  • listings[].conditionstringobligatoire

    new-with-tags · new · like-new · good · fair

  • listings[].brandstringobligatoire

    Free text; use the brand as printed on the item

  • listings[].priceCentsintegerobligatoire

    Price in euro cents. Above 30,000 the seller account must be Pro or verified.

    10–100000

  • listings[].imagesstring (uri)[]obligatoire

    Public https URLs, cover first. JPEG, PNG, WebP, AVIF or HEIC, 10 MB max each.

    1–8 items

  • listings[].sizesstring[]

    Size codes from /reference (sizes[sizeGrid] of the category)

    0–5 items

  • listings[].colorsstring[]

    0–2 items

  • listings[].materialsstring[]

    0–3 items

  • listings[].weightBracketGramsinteger

    Parcel weight bracket; defaults to the category weight

    250 · 500 · 1000 · 2000 · 3000 · 4000 · 5000 · 7000 · 10000 · 15000 · 20000 · 25000 · 30000

  • listings[].statusstring

    A draft is stored but not visible and does not use a slot

    active · draft

type = "delete_listings"

  • typestringobligatoire

    delete_listings

  • externalIdsstring[]obligatoire

    1–1000 items

Réponses

  • 200Replay of an earlier submission with the same Idempotency-KeyJob
    • jobIdstringobligatoire
    • typestringobligatoire

      upsert_listings · delete_listings

    • statusstringobligatoire

      pending: waiting for its turn · processing · completed: every item has an outcome

      pending · processing · completed

    • countsobjectobligatoire

      Number of items per result, plus total

    • counts.totalintegerobligatoire
    • counts.pendinginteger
    • counts.queuedinteger
    • counts.appliedinteger
    • counts.unchangedinteger
    • counts.invalidinteger
    • counts.refusedinteger
    • counts.failedinteger
    • counts.supersededinteger
    • counts.deletedinteger
    • counts.not_foundinteger
    • createdAtstring (date-time)obligatoire
    • startedAtstring (date-time) | nullobligatoire
    • completedAtstring (date-time) | nullobligatoire
  • 202Job accepted; follow it at LocationJob
    • jobIdstringobligatoire
    • typestringobligatoire

      upsert_listings · delete_listings

    • statusstringobligatoire

      pending: waiting for its turn · processing · completed: every item has an outcome

      pending · processing · completed

    • countsobjectobligatoire

      Number of items per result, plus total

    • counts.totalintegerobligatoire
    • counts.pendinginteger
    • counts.queuedinteger
    • counts.appliedinteger
    • counts.unchangedinteger
    • counts.invalidinteger
    • counts.refusedinteger
    • counts.failedinteger
    • counts.supersededinteger
    • counts.deletedinteger
    • counts.not_foundinteger
    • createdAtstring (date-time)obligatoire
    • startedAtstring (date-time) | nullobligatoire
    • completedAtstring (date-time) | nullobligatoire
  • 400invalid_input (see reason), invalid_external_id (see index), duplicate_external_id (see externalIds)Error
  • 401Missing, invalid or revoked key (unauthorized)Error
  • 403API access suspended (partner_suspended)Error
  • 409idempotency_key_reusedError
  • 413job_too_large: more than 1,000 itemsError
  • 429rate_limited, or too_many_jobs (25 open jobs): wait Retry-After secondsError

Status and counters of a job

GET/jobs/{jobId}

Poll every 10 to 30 seconds. The job is completed when every item has an outcome; moderation may still decide afterwards (see listing.state in the items, or GET /listings?updatedSince=…).

curl "$OPLA_API_URL/jobs/job_2FK8vSEnwNq-SNW8" \
  -H "Authorization: Bearer $OPLA_API_KEY"
Exemple de réponse · 200
{
  "jobId": "job_2FK8vSEnwNq-SNW8",
  "type": "upsert_listings",
  "status": "completed",
  "counts": {
    "total": 3,
    "pending": 0,
    "queued": 0,
    "applied": 2,
    "unchanged": 0,
    "invalid": 1,
    "refused": 0,
    "failed": 0,
    "superseded": 0,
    "deleted": 0,
    "not_found": 0
  },
  "createdAt": "2026-12-02T07:42:07.778Z",
  "startedAt": "2026-12-02T07:42:09.784Z",
  "completedAt": "2026-12-02T07:42:11.681Z"
}

Paramètres

  • jobIdpath · stringobligatoire

Réponses

  • 200JobJob
    • jobIdstringobligatoire
    • typestringobligatoire

      upsert_listings · delete_listings

    • statusstringobligatoire

      pending: waiting for its turn · processing · completed: every item has an outcome

      pending · processing · completed

    • countsobjectobligatoire

      Number of items per result, plus total

    • counts.totalintegerobligatoire
    • counts.pendinginteger
    • counts.queuedinteger
    • counts.appliedinteger
    • counts.unchangedinteger
    • counts.invalidinteger
    • counts.refusedinteger
    • counts.failedinteger
    • counts.supersededinteger
    • counts.deletedinteger
    • counts.not_foundinteger
    • createdAtstring (date-time)obligatoire
    • startedAtstring (date-time) | nullobligatoire
    • completedAtstring (date-time) | nullobligatoire
  • 401Missing, invalid or revoked key (unauthorized)Error
  • 404Unknown for this account (not_found)Error

Outcome of each item of a job

GET/jobs/{jobId}/items

In submission order. Filter with result (comma-separated) to read only what needs your attention, e.g. result=invalid,refused,failed. A page may hold fewer than limit items when filtering: follow nextCursor until it is null.

curl "$OPLA_API_URL/jobs/job_2FK8vSEnwNq-SNW8/items?result=invalid,refused,failed" \
  -H "Authorization: Bearer $OPLA_API_KEY"
Exemple de réponse · 200
{
  "jobId": "job_2FK8vSEnwNq-SNW8",
  "items": [
    {
      "seq": 2,
      "externalId": "SKU-10457",
      "result": "invalid",
      "error": {
        "error": "invalid_category",
        "message": "Choose a more specific category from the list to publish your listing.",
        "status": 400
      },
      "listing": null
    }
  ],
  "nextCursor": null
}

Paramètres

  • jobIdpath · stringobligatoire
  • resultquery · string
  • cursorquery · string

    nextCursor from the previous page

  • limitquery · integer

Réponses

  • 200A page of itemsobject
    • jobIdstringobligatoire
    • itemsJobItem[]obligatoire
    • items[].seqintegerobligatoire

      Position in the submitted array

    • items[].externalIdstringobligatoire
    • items[].resultstringobligatoire

      pending: not processed yet · queued: accepted, being written to Opla · applied: written to the Opla listing (moderation may still decide, see listing.state) · unchanged: identical to the last accepted version · invalid: refused by validation (see error) · refused: refused by a rule (cap, sold listing, address, publication rules; see error) · failed: technical failure, submit the item again · superseded: a newer version of the same listing went through first · deleted / not_found: unpublish jobs

      pending · queued · applied · unchanged · invalid · refused · failed · superseded · deleted · not_found

    • items[].errorErrorobligatoire

      For invalid, refused and failed: the same body a single PUT would have returned, plus status

    • items[].error.errorstringobligatoire

      Stable machine code

    • items[].error.messagestringobligatoire

      Human-readable explanation in the language of Accept-Language

    • items[].error.externalIdstring
    • items[].error.issuesobject[]

      Field errors, for invalid_input

    • items[].error.reasonstring
    • items[].error.retryAfterSecondsinteger
    • items[].listingobject | nullobligatoire

      Current state of the listing, read at request time

    • items[].listing.statestring

      queued: accepted, being published · live: on sale · pending_moderation: being reviewed · rejected: refused by moderation (see rejection) · draft · sold · deleted · refused: the last version was refused at publication (see refusal) · failed: technical failure, send the listing again

      queued · live · pending_moderation · rejected · draft · sold · deleted · refused · failed

    • items[].listing.articleIdstring | null
    • items[].listing.rejectionobject | null
    • nextCursorstring | nullobligatoire
  • 400invalid_input (see issues), invalid_external_id, invalid_category, price_too_low, price_too_high, too_many_images, image_url_refusedError
  • 401Missing, invalid or revoked key (unauthorized)Error
  • 404Unknown for this account (not_found)Error

Orders

Paid orders of your seller account

GET/orders

Newest first. Defaults to orders to ship. A page may hold fewer than limit orders after filtering: keep following nextCursor until it is null.

curl "$OPLA_API_URL/orders?status=to_ship" \
  -H "Authorization: Bearer $OPLA_API_KEY"
Exemple de réponse · 200
{
  "orders": [
    {
      "orderId": "che_e02e0a2fe22414aebc4166b480b8496a",
      "status": "to_ship",
      "paidAt": "2026-12-02T08:27:56.950Z",
      "updatedAt": "2026-12-02T08:27:56.950Z",
      "items": [
        {
          "articleId": "art_52a0081e81888684f8fe8a86a0c27d34",
          "externalId": "SKU-10442"
        }
      ],
      "itemsPriceCents": 4500,
      "shippingDeadline": "2026-12-07T08:27:56.950Z",
      "carrier": "mondial-relay-c2c",
      "labelStatus": "not_requested"
    }
  ],
  "nextCursor": null
}

Paramètres

  • statusquery · string

    to_ship · shipped · delivered · completed · refused · cancelled · all

  • cursorquery · string

    nextCursor from the previous page

  • limitquery · integer

Réponses

  • 200A page of ordersobject
    • ordersOrderSummary[]obligatoire
    • orders[].orderIdstringobligatoire
    • orders[].statusstringobligatoire

      to_ship: paid, ship before shippingDeadline · shipped · delivered: the buyer has the parcel · completed: accepted by the buyer, funds released · refused: the buyer returned it · cancelled

      to_ship · shipped · delivered · completed · refused · cancelled

    • orders[].paidAtstring (date-time) | nullobligatoire
    • orders[].updatedAtstring (date-time)obligatoire
    • orders[].itemsOrderItem[]obligatoire
    • orders[].items[].articleIdstringobligatoire
    • orders[].items[].externalIdstring | nullobligatoire

      Null for a listing not created through the API

    • orders[].itemsPriceCentsintegerobligatoire

      Agreed price of the items

    • orders[].shippingDeadlinestring (date-time) | nullobligatoire
    • orders[].carrierstring | nullobligatoire
    • orders[].labelStatusstringobligatoire

      ready · not_requested · unavailable

    • nextCursorstring | nullobligatoire
  • 400invalid_input (see issues), invalid_external_id, invalid_category, price_too_low, price_too_high, too_many_images, image_url_refusedError
  • 401Missing, invalid or revoked key (unauthorized)Error

One order, with pickup point, label and tracking

GET/orders/{orderId}

curl "$OPLA_API_URL/orders/che_e02e0a2fe22414aebc4166b480b8496a" \
  -H "Authorization: Bearer $OPLA_API_KEY"
Exemple de réponse · 200
{
  "orderId": "che_e02e0a2fe22414aebc4166b480b8496a",
  "status": "shipped",
  "paidAt": "2026-12-02T08:27:56.950Z",
  "updatedAt": "2026-12-02T15:10:02.120Z",
  "items": [
    {
      "articleId": "art_52a0081e81888684f8fe8a86a0c27d34",
      "externalId": "SKU-10442"
    }
  ],
  "itemsPriceCents": 4500,
  "shippingDeadline": "2026-12-07T08:27:56.950Z",
  "carrier": "mondial-relay-c2c",
  "deliveryMethod": {
    "type": "pickup",
    "label": "Mondial Relay"
  },
  "pickupPoint": {
    "id": "021607",
    "name": "BLUE ACCESS",
    "address": "24 RUE DE RICHELIEU",
    "postalCode": "75001",
    "city": "PARIS",
    "countryCode": "FR"
  },
  "label": {
    "status": "ready",
    "url": "https://dxxxxxxxxxxxx.cloudfront.net/labels/che_e02e0a2fe22414aebc4166b480b8496a.pdf"
  },
  "tracking": {
    "number": "00598598",
    "url": "https://www.mondialrelay.com/public/permanent/tracking.aspx?ens=TTMRSDBX&exp=00598598&language=FR",
    "lastEvent": "PRISE EN CHARGE PAR LE TRANSPORTEUR",
    "lastEventAt": "2026-12-02T14:45:00.000Z"
  },
  "shippedAt": "2026-12-02T14:45:00.000Z",
  "deliveredAt": null,
  "cancelledAt": null
}

Paramètres

  • orderIdpath · stringobligatoire

Réponses

  • 200OrderOrder
    • orderIdstringobligatoire
    • statusstringobligatoire

      to_ship: paid, ship before shippingDeadline · shipped · delivered: the buyer has the parcel · completed: accepted by the buyer, funds released · refused: the buyer returned it · cancelled

      to_ship · shipped · delivered · completed · refused · cancelled

    • paidAtstring (date-time) | null
    • updatedAtstring (date-time)
    • itemsOrderItem[]obligatoire
    • items[].articleIdstringobligatoire
    • items[].externalIdstring | nullobligatoire

      Null for a listing not created through the API

    • itemsPriceCentsintegerobligatoire
    • shippingDeadlinestring (date-time) | null
    • carrierstring | null
    • deliveryMethodobject | null
    • deliveryMethod.typestring
    • deliveryMethod.labelstring
    • pickupPointobject | null

      Pickup point chosen by the buyer

    • pickupPoint.idstring
    • pickupPoint.namestring
    • pickupPoint.addressstring
    • pickupPoint.postalCodestring
    • pickupPoint.citystring
    • pickupPoint.countryCodestring
    • labelobjectobligatoire
    • label.statusstringobligatoire

      ready · not_requested · unavailable

    • label.urlstring | nullobligatoire
    • trackingobject | null
    • tracking.numberstring
    • tracking.urlstring | null
    • tracking.lastEventstring | null
    • tracking.lastEventAtstring (date-time) | null
    • shippedAtstring (date-time) | null
    • deliveredAtstring (date-time) | null
    • cancelledAtstring (date-time) | null
  • 401Missing, invalid or revoked key (unauthorized)Error
  • 404Unknown for this account (not_found)Error

Get the shipping label (created on first request)

POST/orders/{orderId}/label

Opla ships with its own Mondial Relay / InPost label. The label is created with the carrier on the first request, then returned as is. There is no "shipped" call: the carrier tracking moves the order forward.

curl -X POST "$OPLA_API_URL/orders/che_e02e0a2fe22414aebc4166b480b8496a/label" \
  -H "Authorization: Bearer $OPLA_API_KEY"
Exemple de réponse · 200
{
  "url": "https://dxxxxxxxxxxxx.cloudfront.net/labels/che_e02e0a2fe22414aebc4166b480b8496a.pdf"
}

Paramètres

  • orderIdpath · stringobligatoire

Réponses

  • 200Label PDF URLobject
    • urlstring (uri)obligatoire
  • 401Missing, invalid or revoked key (unauthorized)Error
  • 404Unknown for this account (not_found)Error
  • 409label_not_available (cancelled, hand delivery, carrier still creating it); reason gives the detailError
  • 429Too many requests this minute (rate_limited); wait Retry-After secondsError

Sandbox

Sandbox only — simulate a sale of a live listing

POST/sandbox/listings/{externalId}/sell

With a test key: marks the listing as sold and creates a paid order to ship, exactly as a buyer would. Use it to test your whole sales flow: the order appears at once in GET /orders, POST /orders/{orderId}/label returns a sample label (no parcel, no carrier), and the listing shows as sold in GET /listings/{externalId} and GET /listings?updatedSince=… right away. Returns 404 with a production key.

curl -X POST "$OPLA_API_URL/sandbox/listings/SKU-10442/sell" \
  -H "Authorization: Bearer $OPLA_API_KEY"
Exemple de réponse · 200
{
  "externalId": "SKU-10442",
  "articleId": "art_52a0081e81888684f8fe8a86a0c27d34",
  "state": "sold",
  "orderId": "che_sandbox_5f0c2a9e41d7b3c8a6e19f20"
}

Paramètres

  • externalIdpath · stringobligatoire

    Your own reference for the item (SKU, product id…)

Réponses

  • 200Sold, with the order created for itobject
    • externalIdstringobligatoire
    • articleIdstringobligatoire
    • statestringobligatoire

      sold

    • orderIdstring | nullobligatoire

      The order to read with GET /orders/{orderId}

  • 404Unknown for this account (not_found)Error
  • 409Not a live listing: listing_sold if it is already sold, otherwise listing_not_live.Error

Documentation

This document

GET/docs/openapi.json

Public, no key needed. It holds neither the API host nor a key; both are given in your Opla account (opla.co/account/api) once your card is saved.

curl "$OPLA_API_URL/docs/openapi.json" \
  -H "Authorization: Bearer $OPLA_API_KEY"

Réponses

  • 200OpenAPI 3.0 documentobject

    object

Journal des changements

  1. v1.2.1
    • Test keys now require a card saved on your API page first (nothing is charged). You pay only when you activate your production key.

  2. v1.2.0
    • Free sandbox for every Opla seller account: create opla_test_… keys on your API page, on the same host as production. Sandbox listings and orders are simulated and never reach the catalogue; pay only when you go live.

    • GET /account returns environment: sandbox for a sandbox key on any host.

    • Simulated sale of a listing that is not live: 409 listing_sold if already sold, otherwise 409 listing_not_live (was invalid_input).

    • 409 concurrent_update (was invalid_input with reason: concurrent_update) when two requests change the same listing at once; retry.

  3. v1.1.0
    • Sandbox: POST /sandbox/listings/{externalId}/sell now also creates a paid order to ship (orderId), so orders and labels can be tested end to end.

    • GET /orders with a status filter now fills each page up to limit instead of returning short or empty pages.

    • Examples for every endpoint, and the error catalogue (x-errors on Error).

  4. v1.0.0
    • First version: account, reference, listings, jobs, orders and labels.

Avec ton accord, on mesure l'audience du site et l'efficacité de nos pubs, avec Google. Sans lui, on n'utilise que ce qu'il faut pour que le site marche. Tu peux changer d'avis à tout moment en bas de page. En savoir plus