Inhoud
Ontwikkelaars
Opla Partner-API
Publiceer en synchroniseer uw catalogus (webshop, ERP, spreadsheet) op Opla, volg uw verkopen en print verzendlabels, vanuit uw eigen systeem.
Plak deze tekst in Claude, ChatGPT of uw gewone assistent en vertel welk systeem u gebruikt (WooCommerce, Odoo, PrestaShop, een spreadsheet…): hij heeft de volledige documentatie om de koppeling samen met u te schrijven. Uw sleutel staat er niet in.
Uw sleutels krijgen
De documentatie is voor iedereen open. Het API-adres en uw sleutels staan in uw API-omgeving, zodra deze stappen gedaan zijn.
Een verzendadres
Uw Opla-verkopersaccount heeft een volledig adres: daar vertrekken de pakketten, en zonder adres weigert de API elke advertentie.
Een kaart, € 0
Registreer een kaart; er wordt niets afgeschreven. U krijgt het API-adres en een testsleutel
opla_test_…: probeer alles in de sandbox, er wordt niets gepubliceerd.Een abonnement om te publiceren
Kies het abonnement dat bij uw aantal advertenties past: de sleutel
opla_live_…publiceert echt. Uw code blijft hetzelfde; alleen de sleutel verandert.
Twee omgevingsvariabelen
export OPLA_API_URL="https://…/v1"
export OPLA_API_KEY="opla_test_…"De voorbeelden lezen het adres uit OPLA_API_URL en de sleutel uit OPLA_API_KEY. Ze staan nooit in uw code.
Snelstart
Zes aanroepen om uw catalogus te koppelen; probeer ze eerst met uw opla_test_…-sleutel in de sandbox. Zet het API-adres in de omgevingsvariabele OPLA_API_URL en de sleutel in OPLA_API_KEY: de voorbeelden lezen ze daar, zodat ze nooit in uw code staan.
Controleer uw sleutel
GET /accountgeeft uw pakket, uw aantal actieve advertenties, of het verzendadres van het verkopersaccount volledig is enenvironment(sandboxofproduction). Een401betekent dat de sleutel ontbreekt, onjuist is of ingetrokken is.curl "$OPLA_API_URL/account" \ -H "Authorization: Bearer $OPLA_API_KEY"Valideer een steekproef
POST /listings/validatecontroleert tot 100 advertenties zonder iets te publiceren. Elk oordeel zegt wat er mis is (error,issues). Codes voor categorie, staat, maat, kleur en materiaal komen uitGET /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" ] } ] }'Importeer met een taak
POST /jobsneemt tot 1.000 advertenties aan en antwoordt202met het adres van de taak. Stuur eenIdempotency-Keymee: na een netwerkstoring stuurt u hetzelfde verzoek opnieuw met dezelfde sleutel, zonder risico op dubbele advertenties.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" ] } ] }'Volg de taak
Vraag
GET /jobs/{jobId}elke 10 tot 30 seconden op totcompleted, en lees danGET /jobs/{jobId}/items?result=invalid,refused,failedom te herstellen wat niet is gelukt.curl "$OPLA_API_URL/jobs/job_2FK8vSEnwNq-SNW8" \ -H "Authorization: Bearer $OPLA_API_KEY"Synchroniseer de statussen
Op vaste momenten geeft
GET /listings?updatedSince=…elke advertentie waarvan de status is veranderd: moderatiebesluiten, verkopen, verwijderingen. Bewaar de laatst ontvangenupdatedAten geef die de volgende keer mee.curl "$OPLA_API_URL/listings?updatedSince=2026-12-01T00:00:00Z" \ -H "Authorization: Bearer $OPLA_API_KEY"Verzend uw verkopen
GET /orderstoont de te verzenden bestellingen;POST /orders/{orderId}/labelgeeft het verzendlabel als pdf. In de sandbox simuleertPOST /sandbox/listings/{externalId}/selleen verkoop, zodat u dit hele traject kunt testen.curl -X POST "$OPLA_API_URL/orders/che_e02e0a2fe22414aebc4166b480b8496a/label" \ -H "Authorization: Bearer $OPLA_API_KEY"
Schema's
Hoe een advertentie, een import en een bestelling verlopen, in één oogopslag.
Levenscyclus van een advertentie
Elke schrijfactie wordt meteen aanvaard (202) en daarna gepubliceerd en gemodereerd. De rode statussen geven de reden in refusal of rejection: pas de advertentie aan en stuur hem opnieuw.
Een import, stap voor stap
Taken van één account lopen één voor één, op volgorde. Opla vertraagt het tempo als de moderatie druk is: reken op minuten voor een grote import.
Van verkoop tot verzendlabel
Een koper betaalt op Opla: de bestelling moet verzonden worden.
to_shipUw systeem ziet haar door de bestellingen op te vragen.
GET /orders?status=to_shipHet vraagt het Mondial Relay- of InPost-label op (pdf).
POST /orders/{orderId}/labelHet pakket gaat vóór de deadline naar een afhaalpunt.
shippingDeadlineDe tracking van de vervoerder brengt haar verder.
shipped → deliveredDe koper keurt goed: het geld wordt uitbetaald.
completed
Er is geen aanroep 'verzonden': de tracking van de vervoerder brengt de bestelling verder. Er worden geen persoonsgegevens van de koper gedeeld.
Aan de slag
Uw sleutel
Uw sleutels en het API-adres staan in uw API-omgeving (opla.co/account/api), zodra een kaart is geregistreerd (€ 0). De testsleutel
opla_test_…is gratis en opent de sandbox: gesimuleerde advertenties en verkopen, een voorbeeldlabel, er wordt niets op Opla gepubliceerd. De sleutelopla_live_…publiceert echt; u maakt hem aan zodra uw abonnement betaald is. Stuur hem mee in de headerAuthorization: Bearer <sleutel>. Hij wordt maar één keer getoond: bewaar hem op uw server, nooit in een webpagina of een openbare repository.De referentiegegevens
GET /referencegeeft de verwachte categorieën, staten, maten, kleuren en materialen. Alleen eindcategorieën worden aanvaard. Bewaar het in de cache en laad het opnieuw zodra deversionverandert.Publiceren en bijwerken
Elke advertentie draagt uw eigen referentie,
externalId(vaak de SKU).PUT /listings/{externalId}maakt één advertentie aan of werkt die bij: stuur altijd de volledige advertentie, een identieke verzending kost niets. Voor een massale import of update test u eerst een steekproef metPOST /listings/validateen dient u daarna een taak in metPOST /jobs(tot 1.000 advertenties, headerIdempotency-Keyaanbevolen). Het antwoord202geeft het adres van de taak: volgGET /jobs/{jobId}totcompleteden lees danGET /jobs/{jobId}/items?result=invalid,refused,failedom te herstellen wat niet is doorgekomen. Publicatie gaat via de moderatie van Opla:GET /listings?updatedSince=…geeft elke advertentie terug waarvan de status is veranderd (live,rejected,refused, verkocht).Elders verkocht: haal de advertentie meteen weg
Zodra een artikel bij u niet meer op voorraad is, roept u
DELETE /listings/{externalId}aan. Een artikel dat al op Opla verkocht is, antwoordtlisting_sold: verkoop het dan niet elders.Bestellingen en labels
GET /ordersgeeft de betaalde bestellingen die verzonden moeten worden.POST /orders/{orderId}/labelgeeft het Mondial Relay- of InPost-label om af te drukken; het pakket gaat naar het aangegeven afhaalpunt. Er worden geen persoonsgegevens van de koper gedeeld.
Niveau en limieten
Uw niveau bepaalt het aantal actieve advertenties, met 10 % speling. Daarboven wordt een nieuwe advertentie geweigerd (listing_cap_reached) en moet u naar een hoger niveau. Concepten tellen niet mee. Per minuut: 600 leesacties en 60 schrijfacties; de headers X-RateLimit-Remaining en X-RateLimit-Reset tonen wat overblijft, en wacht bij een 429 de tijd uit Retry-After af. Een taak telt als één schrijfactie; Opla verwerkt die in zijn eigen tempo, trager als de moderatie druk is. Elk antwoord bevat een X-Request-Id om ons te geven bij een probleem, en elke fout een vaste code (error) met een bericht in de taal gevraagd via Accept-Language.
Fouten
Elke fout heeft dezelfde vorm: { "error": "<code>", "message": "…" }. Reageer op de code en toon het bericht (in de taal van Accept-Language). Probeer 429 en 5xx opnieuw met een oplopende wachttijd; stuur een 4xx nooit ongewijzigd opnieuw.
| Code | HTTP | Betekenis | Wat te doen | Opnieuw |
|---|---|---|---|---|
duplicate_external_id | 400 | The same | Keep one entry per reference (see | Nee |
image_url_refused | 400 | A photo URL is not a public | Serve the photos over public https (no login, no signed URL that expires within the hour). | Nee |
invalid_category | 400 | Unknown category, or not a leaf. | Use a leaf code from | Nee |
invalid_external_id | 400 | An | Normalise your reference (e.g. replace spaces). | Nee |
invalid_input | 400 | The body does not match the schema. | Read | Nee |
price_too_high | 400 | Above the maximum price. | See | Nee |
price_too_low | 400 | Below the minimum price. | See | Nee |
too_many_images | 400 | More than 8 photos. | Send the 8 best, cover first. | Nee |
unauthorized | 401 | The key is missing, malformed or revoked. | Check the | Nee |
account_blocked | 403 | The Opla seller account is blocked. | Contact Opla support. | Nee |
account_deleted | 403 | The Opla seller account was deleted. | Contact Opla support. | Nee |
email_not_confirmed | 403 | The seller account has not confirmed its email address. | Confirm it from the Opla app, then send the listing again. | Nee |
partner_suspended | 403 | API access of this account is suspended. | Contact Opla. | Nee |
phone_verification_required | 403 | Listings above 300 € need a verified phone number (or a Pro account). | Verify the phone in the Opla app, or lower the price. | Nee |
not_found | 404 | Unknown resource for this account (listing, job or order). | Check the identifier; another account’s resources always answer 404. | Nee |
concurrent_update | 409 | Another request changed the same listing at the same moment. | Send the request again; a whole-listing | Ja, later |
idempotency_key_reused | 409 | This | Use a new key for a new job; reuse a key only to retry the same body. | Nee |
label_not_available | 409 | No label for this order: cancelled, hand delivery, or the carrier is still creating it. | Retry in a few minutes; | Ja, later |
listing_cap_reached | 409 | The active listing cap of your tier, plus 10 %, is reached. | Unpublish listings or move up a tier ( | Nee |
listing_not_live | 409 | Sandbox: the listing to sell is not live (draft, under moderation or deleted). | Publish the listing ( | Nee |
listing_sold | 409 | The listing sold on Opla; it can no longer change. | Do not sell it elsewhere; read the order with | Nee |
publish_suspended | 409 | Publishing is temporarily suspended for this seller account. | Contact Opla support. | Nee |
seller_address_incomplete | 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. | Nee |
batch_too_large | 413 | More than 100 listings in | Split the sample. | Nee |
job_too_large | 413 | More than 1,000 items in a job. | Split into several jobs. | Nee |
rate_limited | 429 | Too many requests this minute. | Wait | Ja, later |
too_many_jobs | 429 | 25 jobs are already open for this account. | Wait for the first ones to complete ( | Ja, later |
internal_error | 500 | Unexpected error on Opla’s side. | Retry with exponential backoff; if it persists, send Opla the | Ja, later |
duplicate_external_idHTTP 400The same
externalIdappears twice in one job.Keep one entry per reference (see
externalIds).image_url_refusedHTTP 400A photo URL is not a public
httpsaddress, or could not be downloaded.Serve the photos over public https (no login, no signed URL that expires within the hour).
invalid_categoryHTTP 400Unknown category, or not a leaf.
Use a leaf code from
GET /reference.invalid_external_idHTTP 400An
externalIdis not 1 to 64 letters, digits,.,_,:or-.Normalise your reference (e.g. replace spaces).
invalid_inputHTTP 400The body does not match the schema.
Read
issues(path,code,message) and fix each field.price_too_highHTTP 400Above the maximum price.
See
rules.maxPriceCentsinGET /reference.price_too_lowHTTP 400Below the minimum price.
See
rules.minPriceCentsinGET /reference.too_many_imagesHTTP 400More than 8 photos.
Send the 8 best, cover first.
unauthorizedHTTP 401The key is missing, malformed or revoked.
Check the
Authorization: Bearerheader and that the key is still active on your API page.account_blockedHTTP 403The Opla seller account is blocked.
Contact Opla support.
account_deletedHTTP 403The Opla seller account was deleted.
Contact Opla support.
email_not_confirmedHTTP 403The seller account has not confirmed its email address.
Confirm it from the Opla app, then send the listing again.
partner_suspendedHTTP 403API access of this account is suspended.
Contact Opla.
phone_verification_requiredHTTP 403Listings above 300 € need a verified phone number (or a Pro account).
Verify the phone in the Opla app, or lower the price.
not_foundHTTP 404Unknown resource for this account (listing, job or order).
Check the identifier; another account’s resources always answer 404.
concurrent_updateHTTP 409Ja, laterAnother request changed the same listing at the same moment.
Send the request again; a whole-listing
PUTis safe to repeat.idempotency_key_reusedHTTP 409This
Idempotency-Keywas 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 409Ja, laterNo label for this order: cancelled, hand delivery, or the carrier is still creating it.
Retry in a few minutes;
reasongives the detail.listing_cap_reachedHTTP 409The 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 409Sandbox: the listing to sell is not live (draft, under moderation or deleted).
Publish the listing (
PUTwithstatusactive) and wait forlivebefore simulating a sale.listing_soldHTTP 409The listing sold on Opla; it can no longer change.
Do not sell it elsewhere; read the order with
GET /orders.publish_suspendedHTTP 409Publishing is temporarily suspended for this seller account.
Contact Opla support.
seller_address_incompleteHTTP 409The 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 413More than 100 listings in
POST /listings/validate.Split the sample.
job_too_largeHTTP 413More than 1,000 items in a job.
Split into several jobs.
rate_limitedHTTP 429Ja, laterToo many requests this minute.
Wait
Retry-Afterseconds. For many listings, use a job.too_many_jobsHTTP 429Ja, later25 jobs are already open for this account.
Wait for the first ones to complete (
GET /jobs), then submit again.internal_errorHTTP 500Ja, laterUnexpected error on Opla’s side.
Retry with exponential backoff; if it persists, send Opla the
X-Request-Id.
Technische referentie
In het Engels, gegenereerd uit de OpenAPI-specificatie 1.2.1, die leidend is.
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
GET /referenceonce, cache it, and reload it only whenversionchanges.- Build a mapping from your categories, conditions and sizes to Opla codes.
POST /listings/validateon a sample (dry run, up to 100).- Import and bulk updates:
POST /jobs(up to 1,000 listings per job), then followGET /jobs/{jobId}untilcompletedand read the failures withGET /jobs/{jobId}/items?result=invalid,refused,failed. - Day-to-day changes (price, stock, one new item):
PUT /listings/{externalId}. Unpublish withDELETE /listings/{externalId}as soon as an item sells elsewhere. - Follow moderation and sales with
GET /listings?updatedSince=…(keep the latestupdatedAtyou saw), and pollGET /ordersfor new orders to ship, thenPOST /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"{
"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
}
}Antwoorden
- 200AccountAccount
partnerIdstringverplichtnamestringverplichtenvironmentstringverplichtproduction · sandbox
statusstringverplichtactive · suspended
tierstringverplichtupTo5000: up to 5,000 active listings · upTo25000: up to 25,000 · upTo50000: up to 50,000 · over50000: custom cap
upTo5000 · upTo25000 · upTo50000 · over50000
listingsobjectverplichtlistings.activeintegerverplichtlistings.capintegerverplichtlistings.hardCapintegerverplichtlistings.overCapbooleanverplichtAbove the paid cap
listings.nextTierstringupTo5000: up to 5,000 active listings · upTo25000: up to 25,000 · upTo50000: up to 50,000 · over50000: custom cap
sellerAddressCompletebooleanverplichtWithout a complete shipping address, listings can only be drafts
rateLimitsobjectverplichtrateLimits.readsPerMinuteintegerrateLimits.writesPerMinuteintegerjobsobjectverplichtjobs.maxItemsintegerjobs.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"{
"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
}
}Parameters
langquery · stringLanguage of the titles (defaults to
Accept-Language, then English)fr · en · es · pt · nl
Antwoorden
- 200Reference dataReference
versionstringverplichtlocalestringverplichtcategoriesReferenceCategory[]verplichtcategories[].codestringverplichtcategories[].titlestringverplichtcategories[].leafbooleanverplichtcategories[].sizeGridstringshoes · adult · children · bras · rings · women
categories[].weightGramsintegercategories[].categoriesReferenceCategory[]categories[].categories[].codestringverplichtcategories[].categories[].titlestringverplichtcategories[].categories[].leafbooleanverplichtcategories[].categories[].sizeGridstringshoes · adult · children · bras · rings · women
categories[].categories[].weightGramsintegercategories[].categories[].categoriesReferenceCategory[]conditionsobject[]verplichtconditions[].codestringconditions[].titlestringconditions[].descriptionstringsizesobjectverplichtSize codes per grid (shoes, adult, children, bras, rings, women)
colorsCodeTitle[]verplichtcolors[].codestringverplichtcolors[].titlestringverplichtmaterialsCodeTitle[]verplichtmaterials[].codestringverplichtmaterials[].titlestringverplichtweightBracketsGramsinteger[]verplichtrulesobjectverplichtrules.currencystringrules.minPriceCentsintegerrules.maxPriceCentsintegerrules.highValueThresholdCentsintegerrules.maxImagesintegerrules.titleMaxLengthintegerrules.descriptionMaxLengthintegerrules.maxSizesintegerrules.maxColorsintegerrules.maxMaterialsintegerrules.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"{
"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"
}Parameters
cursorquery · stringnextCursorfrom the previous pagelimitquery · integerupdatedSincequery · string (date-time)ISO 8601 date-time
statequery · stringComma-separated states, e.g.
rejected,refused,failed
Antwoorden
- 200A page of listingsobject
listingsListing[]verplichtlistings[].externalIdstringverplichtlistings[].statestringverplichtqueued: 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 (seerefusal) · failed: technical failure, send the listing againqueued · live · pending_moderation · rejected · draft · sold · deleted · refused · failed
listings[].articleIdstring | nullverplichtlistings[].urlstring | nullverplichtPublic page
listings[].countsTowardCapbooleanverplichtlistings[].upToDatebooleanverplichtThe last version you sent is applied to the Opla listing
listings[].refusalobjectlistings[].refusal.codestringlistings[].refusal.messagestring | nulllistings[].refusal.statusintegerlistings[].rejectionobjectModeration decision, when
stateisrejectedlistings[].rejection.categorystringlistings[].rejection.titlestringlistings[].rejection.descriptionstringlistings[].createdAtstring (date-time)verplichtlistings[].updatedAtstring (date-time)verplichtnextCursorstring | nullverplicht
- 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.
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"
]
}
]
}'{
"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."
}
]
}Request-body ListingBatch
listingsobject & ListingInput[]verplicht0–100 items
listings[].externalIdstringverplichtpattern ^[A-Za-z0-9._:-]{1,64}$
listings[].titlestringverplicht3–120 chars
listings[].descriptionstring0–2000 chars
listings[].categorystringverplichtCode of a LEAF category from
/referencelistings[].conditionstringverplichtnew-with-tags · new · like-new · good · fair
listings[].brandstringverplichtFree text; use the brand as printed on the item
listings[].priceCentsintegerverplichtPrice in euro cents. Above 30,000 the seller account must be Pro or verified.
10–100000
listings[].imagesstring (uri)[]verplichtPublic 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[].weightBracketGramsintegerParcel weight bracket; defaults to the category weight
250 · 500 · 1000 · 2000 · 3000 · 4000 · 5000 · 7000 · 10000 · 15000 · 20000 · 25000 · 30000
listings[].statusstringA draft is stored but not visible and does not use a slot
active · draft
Antwoorden
- 207One verdict per listingobject
resultsValidationResult[]verplichtresults[].statusintegerverplichtresults[].externalIdstringverplichtresults[].validbooleanverplichtresults[].errorstringresults[].messagestringresults[].issuesobject[]Field errors, for
invalid_inputresults[].issues[].pathstringresults[].issues[].codestringresults[].issues[].messagestring
- 400
invalid_input(seeissues),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"{
"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"
}Parameters
externalIdpath · stringverplichtYour own reference for the item (SKU, product id…)
Antwoorden
- 200ListingListing
externalIdstringverplichtstatestringverplichtqueued: 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 (seerefusal) · failed: technical failure, send the listing againqueued · live · pending_moderation · rejected · draft · sold · deleted · refused · failed
articleIdstring | nullverplichturlstring | nullverplichtPublic page
countsTowardCapbooleanverplichtupToDatebooleanverplichtThe last version you sent is applied to the Opla listing
refusalobjectrefusal.codestringrefusal.messagestring | nullrefusal.statusintegerrejectionobjectModeration decision, when
stateisrejectedrejection.categorystringrejection.titlestringrejection.descriptionstringcreatedAtstring (date-time)verplichtupdatedAtstring (date-time)verplicht
- 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.
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"
]
}'{
"externalId": "SKU-10442",
"state": "unchanged",
"articleId": "art_52a0081e81888684f8fe8a86a0c27d34"
}Parameters
externalIdpath · stringverplichtYour own reference for the item (SKU, product id…)
Request-body ListingInput
titlestringverplicht3–120 chars
descriptionstring0–2000 chars
categorystringverplichtCode of a LEAF category from
/referenceconditionstringverplichtnew-with-tags · new · like-new · good · fair
brandstringverplichtFree text; use the brand as printed on the item
priceCentsintegerverplichtPrice in euro cents. Above 30,000 the seller account must be Pro or verified.
10–100000
imagesstring (uri)[]verplichtPublic 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
weightBracketGramsintegerParcel weight bracket; defaults to the category weight
250 · 500 · 1000 · 2000 · 3000 · 4000 · 5000 · 7000 · 10000 · 15000 · 20000 · 25000 · 30000
statusstringA draft is stored but not visible and does not use a slot
active · draft
Antwoorden
- 200Identical to the last accepted version, nothing to doAccepted
externalIdstringverplichtstatestringverplichtqueued · unchanged
articleIdstring | nullOpla listing id once created
versioninteger
- 202Accepted and queuedAccepted
externalIdstringverplichtstatestringverplichtqueued · unchanged
articleIdstring | nullOpla listing id once created
versioninteger
- 400
invalid_input(seeissues),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 - 409
listing_cap_reached(seeCapReached),seller_address_incomplete, orlisting_sold(a sold listing can no longer change)CapReached | Error - 429Too many requests this minute (
rate_limited); waitRetry-AftersecondsError
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"{
"externalId": "SKU-10442",
"state": "deleted",
"articleId": "art_52a0081e81888684f8fe8a86a0c27d34"
}Parameters
externalIdpath · stringverplichtYour own reference for the item (SKU, product id…)
Antwoorden
- 200Unpublished (or already unpublished)object
externalIdstringverplichtstatestringverplichtdeleted
articleIdstring | null
- 401Missing, invalid or revoked key (
unauthorized)Error - 404Unknown for this account (
not_found)Error - 409
listing_sold: the listing sold on Opla, read the order insteadError - 429Too many requests this minute (
rate_limited); waitRetry-AftersecondsError
Jobs
Your jobs, newest first (kept 30 days)
GET/jobs
curl "$OPLA_API_URL/jobs" \
-H "Authorization: Bearer $OPLA_API_KEY"{
"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
}Parameters
statusquery · stringpending · processing · completed
cursorquery · stringnextCursorfrom the previous pagelimitquery · integer
Antwoorden
- 200A page of jobsobject
jobsJob[]verplichtjobs[].jobIdstringverplichtjobs[].typestringverplichtupsert_listings · delete_listings
jobs[].statusstringverplichtpending: waiting for its turn · processing · completed: every item has an outcome
pending · processing · completed
jobs[].countsobjectverplichtNumber of items per result, plus
totaljobs[].counts.totalintegerverplichtjobs[].counts.pendingintegerjobs[].counts.queuedintegerjobs[].counts.appliedintegerjobs[].counts.unchangedintegerjobs[].counts.invalidintegerjobs[].counts.refusedintegerjobs[].counts.failedintegerjobs[].counts.supersededintegerjobs[].counts.deletedintegerjobs[].counts.not_foundintegerjobs[].createdAtstring (date-time)verplichtjobs[].startedAtstring (date-time) | nullverplichtjobs[].completedAtstring (date-time) | nullverplichtnextCursorstring | nullverplicht
- 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).
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"
]
}
]
}'{
"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
}Parameters
Idempotency-Keyheader · string
Request-body JobRequest
Een van de volgende vormen:
type = "upsert_listings"
typestringverplichtupsert_listings
listingsobject & ListingInput[]verplicht1–1000 items
listings[].externalIdstringverplichtpattern ^[A-Za-z0-9._:-]{1,64}$
listings[].titlestringverplicht3–120 chars
listings[].descriptionstring0–2000 chars
listings[].categorystringverplichtCode of a LEAF category from
/referencelistings[].conditionstringverplichtnew-with-tags · new · like-new · good · fair
listings[].brandstringverplichtFree text; use the brand as printed on the item
listings[].priceCentsintegerverplichtPrice in euro cents. Above 30,000 the seller account must be Pro or verified.
10–100000
listings[].imagesstring (uri)[]verplichtPublic 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[].weightBracketGramsintegerParcel weight bracket; defaults to the category weight
250 · 500 · 1000 · 2000 · 3000 · 4000 · 5000 · 7000 · 10000 · 15000 · 20000 · 25000 · 30000
listings[].statusstringA draft is stored but not visible and does not use a slot
active · draft
type = "delete_listings"
typestringverplichtdelete_listings
externalIdsstring[]verplicht1–1000 items
Antwoorden
- 200Replay of an earlier submission with the same
Idempotency-KeyJobjobIdstringverplichttypestringverplichtupsert_listings · delete_listings
statusstringverplichtpending: waiting for its turn · processing · completed: every item has an outcome
pending · processing · completed
countsobjectverplichtNumber of items per result, plus
totalcounts.totalintegerverplichtcounts.pendingintegercounts.queuedintegercounts.appliedintegercounts.unchangedintegercounts.invalidintegercounts.refusedintegercounts.failedintegercounts.supersededintegercounts.deletedintegercounts.not_foundintegercreatedAtstring (date-time)verplichtstartedAtstring (date-time) | nullverplichtcompletedAtstring (date-time) | nullverplicht
- 202Job accepted; follow it at
LocationJobjobIdstringverplichttypestringverplichtupsert_listings · delete_listings
statusstringverplichtpending: waiting for its turn · processing · completed: every item has an outcome
pending · processing · completed
countsobjectverplichtNumber of items per result, plus
totalcounts.totalintegerverplichtcounts.pendingintegercounts.queuedintegercounts.appliedintegercounts.unchangedintegercounts.invalidintegercounts.refusedintegercounts.failedintegercounts.supersededintegercounts.deletedintegercounts.not_foundintegercreatedAtstring (date-time)verplichtstartedAtstring (date-time) | nullverplichtcompletedAtstring (date-time) | nullverplicht
- 400
invalid_input(seereason),invalid_external_id(seeindex),duplicate_external_id(seeexternalIds)Error - 401Missing, invalid or revoked key (
unauthorized)Error - 403API access suspended (
partner_suspended)Error - 409
idempotency_key_reusedError - 413
job_too_large: more than 1,000 itemsError - 429
rate_limited, ortoo_many_jobs(25 open jobs): waitRetry-AftersecondsError
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"{
"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"
}Parameters
jobIdpath · stringverplicht
Antwoorden
- 200JobJob
jobIdstringverplichttypestringverplichtupsert_listings · delete_listings
statusstringverplichtpending: waiting for its turn · processing · completed: every item has an outcome
pending · processing · completed
countsobjectverplichtNumber of items per result, plus
totalcounts.totalintegerverplichtcounts.pendingintegercounts.queuedintegercounts.appliedintegercounts.unchangedintegercounts.invalidintegercounts.refusedintegercounts.failedintegercounts.supersededintegercounts.deletedintegercounts.not_foundintegercreatedAtstring (date-time)verplichtstartedAtstring (date-time) | nullverplichtcompletedAtstring (date-time) | nullverplicht
- 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"{
"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
}Parameters
jobIdpath · stringverplichtresultquery · stringcursorquery · stringnextCursorfrom the previous pagelimitquery · integer
Antwoorden
- 200A page of itemsobject
jobIdstringverplichtitemsJobItem[]verplichtitems[].seqintegerverplichtPosition in the submitted array
items[].externalIdstringverplichtitems[].resultstringverplichtpending: 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 (seeerror) · refused: refused by a rule (cap, sold listing, address, publication rules; seeerror) · failed: technical failure, submit the item again · superseded: a newer version of the same listing went through first · deleted / not_found: unpublish jobspending · queued · applied · unchanged · invalid · refused · failed · superseded · deleted · not_found
items[].errorErrorverplichtFor
invalid,refusedandfailed: the same body a singlePUTwould have returned, plusstatusitems[].error.errorstringverplichtStable machine code
items[].error.messagestringverplichtHuman-readable explanation in the language of Accept-Language
items[].error.externalIdstringitems[].error.issuesobject[]Field errors, for
invalid_inputitems[].error.reasonstringitems[].error.retryAfterSecondsintegeritems[].listingobject | nullverplichtCurrent state of the listing, read at request time
items[].listing.statestringqueued: 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 (seerefusal) · failed: technical failure, send the listing againqueued · live · pending_moderation · rejected · draft · sold · deleted · refused · failed
items[].listing.articleIdstring | nullitems[].listing.rejectionobject | nullnextCursorstring | nullverplicht
- 400
invalid_input(seeissues),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"{
"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
}Parameters
statusquery · stringto_ship · shipped · delivered · completed · refused · cancelled · all
cursorquery · stringnextCursorfrom the previous pagelimitquery · integer
Antwoorden
- 200A page of ordersobject
ordersOrderSummary[]verplichtorders[].orderIdstringverplichtorders[].statusstringverplichtto_ship: paid, ship before
shippingDeadline· shipped · delivered: the buyer has the parcel · completed: accepted by the buyer, funds released · refused: the buyer returned it · cancelledto_ship · shipped · delivered · completed · refused · cancelled
orders[].paidAtstring (date-time) | nullverplichtorders[].updatedAtstring (date-time)verplichtorders[].itemsOrderItem[]verplichtorders[].items[].articleIdstringverplichtorders[].items[].externalIdstring | nullverplichtNull for a listing not created through the API
orders[].itemsPriceCentsintegerverplichtAgreed price of the items
orders[].shippingDeadlinestring (date-time) | nullverplichtorders[].carrierstring | nullverplichtorders[].labelStatusstringverplichtready · not_requested · unavailable
nextCursorstring | nullverplicht
- 400
invalid_input(seeissues),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"{
"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
}Parameters
orderIdpath · stringverplicht
Antwoorden
- 200OrderOrder
orderIdstringverplichtstatusstringverplichtto_ship: paid, ship before
shippingDeadline· shipped · delivered: the buyer has the parcel · completed: accepted by the buyer, funds released · refused: the buyer returned it · cancelledto_ship · shipped · delivered · completed · refused · cancelled
paidAtstring (date-time) | nullupdatedAtstring (date-time)itemsOrderItem[]verplichtitems[].articleIdstringverplichtitems[].externalIdstring | nullverplichtNull for a listing not created through the API
itemsPriceCentsintegerverplichtshippingDeadlinestring (date-time) | nullcarrierstring | nulldeliveryMethodobject | nulldeliveryMethod.typestringdeliveryMethod.labelstringpickupPointobject | nullPickup point chosen by the buyer
pickupPoint.idstringpickupPoint.namestringpickupPoint.addressstringpickupPoint.postalCodestringpickupPoint.citystringpickupPoint.countryCodestringlabelobjectverplichtlabel.statusstringverplichtready · not_requested · unavailable
label.urlstring | nullverplichttrackingobject | nulltracking.numberstringtracking.urlstring | nulltracking.lastEventstring | nulltracking.lastEventAtstring (date-time) | nullshippedAtstring (date-time) | nulldeliveredAtstring (date-time) | nullcancelledAtstring (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"{
"url": "https://dxxxxxxxxxxxx.cloudfront.net/labels/che_e02e0a2fe22414aebc4166b480b8496a.pdf"
}Parameters
orderIdpath · stringverplicht
Antwoorden
- 200Label PDF URLobject
urlstring (uri)verplicht
- 401Missing, invalid or revoked key (
unauthorized)Error - 404Unknown for this account (
not_found)Error - 409
label_not_available(cancelled, hand delivery, carrier still creating it);reasongives the detailError - 429Too many requests this minute (
rate_limited); waitRetry-AftersecondsError
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"{
"externalId": "SKU-10442",
"articleId": "art_52a0081e81888684f8fe8a86a0c27d34",
"state": "sold",
"orderId": "che_sandbox_5f0c2a9e41d7b3c8a6e19f20"
}Parameters
externalIdpath · stringverplichtYour own reference for the item (SKU, product id…)
Antwoorden
- 200Sold, with the order created for itobject
externalIdstringverplichtarticleIdstringverplichtstatestringverplichtsold
orderIdstring | nullverplichtThe order to read with
GET /orders/{orderId}
- 404Unknown for this account (
not_found)Error - 409Not a live listing:
listing_soldif it is already sold, otherwiselisting_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"Antwoorden
- 200OpenAPI 3.0 documentobject
object
Wijzigingslog
- 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.
- 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 /accountreturnsenvironment: sandboxfor a sandbox key on any host.Simulated sale of a listing that is not live:
409 listing_soldif already sold, otherwise409 listing_not_live(wasinvalid_input).409 concurrent_update(wasinvalid_inputwithreason: concurrent_update) when two requests change the same listing at once; retry.
- v1.1.0
Sandbox:
POST /sandbox/listings/{externalId}/sellnow also creates a paid order to ship (orderId), so orders and labels can be tested end to end.GET /orderswith astatusfilter now fills each page up tolimitinstead of returning short or empty pages.Examples for every endpoint, and the error catalogue (
x-errorsonError).
- v1.0.0
First version: account, reference, listings, jobs, orders and labels.
