Per sviluppatori
Open source, su GitHub.
Open Brand Exchange è una specifica con tre API, JSON Schema, dati di test e test di conformità. La specifica è il riferimento; le implementazioni la seguono.
$ curl https://brands.maison-noor.example/.well-known/obx{
"obx_version": "0.3",
"spec_version": "0.3.1",
"publisher": { "name": "MAISON NOOR Group" },
"api_base": "https://brands.maison-noor.example/obx/v1",
"portal_url": "https://brands.maison-noor.example/",
"capabilities": ["changes", "products", "by_gtin",
"renditions", "exports", "webhooks"]
}La specifica
Versione 0.3. OpenAPI 3.1, JSON Schema 2020-12, esempi e un brand di test fittizio, MAISON NOOR. Licenza CC-BY-4.0: libera da implementare, anche commercialmente.
openbrandexchange/spec · Inizia da protocol.md ·Guida rapida: OBX in 10 minuti
Novità della versione 0.3
- Materiali e manutenzione sono codici con nomi in inglese, olandese, tedesco e francese, presi da vocabolari condivisi pubblicati su /vocabularies/v0.3/.
- Più dichiarazioni di sostenibilità per fibra: riciclata, biologica, in conversione, pre-consumo, post-consumo e rigenerativa. In un file, per esempio: 100% polyester (recycled) (post_consumer).
- ID di variante stabili: per impostazione predefinita codice modello, colore e taglia, mai l'EAN. Così un EAN può arrivare o cambiare in seguito senza creare una nuova variante.
- Estensioni: i tuoi campi x-<vendor>-<name> vengono salvati e restituiti, e un campo sconosciuto non fa mai fallire una scrittura.
- Nuovi codici: l'errore idempotency_key_reused e gli avvisi material_unknown e qualifier_deprecated. Ogni codice ha una pagina propria sotto /errors/.
- Dalla 0.3 le strutture esistenti sotto /obx/v1 cambiano solo per aggiunta. Previsti per la 0.4: casa e sport, ricerca e filtri, e webhook migliori.
Repository
Tutto è open source su GitHub: la specifica, il codice condiviso e le tre edizioni del portale.
- openbrandexchange/specLa specifica, gli schemi e i dati di prova
- openbrandexchange/obx-goSDK Go, lo strumento obx e il test di conformità
- openbrandexchange/node-tsPortale per Cloudflare Workers
- openbrandexchange/node-goPortale per il tuo server
- openbrandexchange/node-phpPortale per un normale hosting web
- openbrandexchange/admin-uiL'interfaccia web di ogni portale
Tre API
| API | Per | Stato | Contratto |
|---|---|---|---|
| OBX Protocol | i software dei rivenditori: discovery, OAuth2 client credentials, feed delle modifiche, ricerca per GTIN, renditions, export, webhook | normativa | obx-protocol.yaml · HTML |
| OBX Ingest API | l'automazione di un brand: upsert idempotenti sugli ID propri del brand, upload indirizzati per sha256, lotti, import | normativa | obx-ingest.yaml · HTML |
| Node Admin + Portal API | l'amministrazione condivisa e l'area rivenditori | non normativa | node-admin.yaml · HTML |
Provalo sul portale demo
Il portale demo ha una chiave di prova pubblica che può solo leggere. Il catalogo è fittizio e viene ripristinato ogni ora, quindi la guida rapida funziona subito.
- Chiave di prova pubblica (sola lettura)
obxc_demo-portal-read-only·obxs_demo-portal-read-only-public
HOST=https://obx-portal-demo.richardlindhout96.workers.dev
CLIENT_ID=obxc_demo-portal-read-only
CLIENT_SECRET=obxs_demo-portal-read-only-public
TOKEN=$(curl -s -u "$CLIENT_ID:$CLIENT_SECRET" -d grant_type=client_credentials \
$HOST/obx/v1/oauth/token | jq -r .access_token)
curl -s -H "Authorization: Bearer $TOKEN" "$HOST/obx/v1/changes?limit=500" | jq '{phase, has_more, n: (.changes | length)}'
curl -s -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{"gtins": ["2000100801017", "2000100101025"]}' "$HOST/obx/v1/products:by-gtin"Leggere il portale di un brand in poche righe
HOST=https://brands.maison-noor.example
curl -s $HOST/.well-known/obx # what does this brand offer?
TOKEN=$(curl -s -u "$CLIENT_ID:$CLIENT_SECRET" -d grant_type=client_credentials \
$HOST/obx/v1/oauth/token | jq -r .access_token)
curl -s -H "Authorization: Bearer $TOKEN" "$HOST/obx/v1/changes?limit=500" # everything, then only changes
curl -s -H "Authorization: Bearer $TOKEN" -X POST -H 'Content-Type: application/json' \
-d '{"gtins":["2000100101025"]}' "$HOST/obx/v1/products:by-gtin"
# or let the obx tool keep a copy in a folder, only fetching what changed:
OBX_CLIENT_ID=$CLIENT_ID OBX_CLIENT_SECRET=$CLIENT_SECRET obx pull $HOST --out ./maison-noorSDK e strumento da riga di comando
Conformità
Un'implementazione è conforme OBX per un profilo quando obx-conformance supera tutti i test obbligatori di quel profilo. I profili sono quattro: protocol, ingest, portal e security. conformance.md
obx-conformance all --url http://localhost:8080 --setup-code … # a fresh portal: setup, fixtures, every profile
obx-conformance protocol --url https://brands.maison-noor.example --client-id obxc_… --client-secret obxs_…
obx-conformance mock # a mock server that passes everythingVuoi un primo controllo rapido? La verifica di compatibilità online testa un portale dall'esterno, in sola lettura. Verifica di compatibilità online
Costruiscilo con il tuo assistente AI
Copia un prompt in Claude, ChatGPT o Cursor, completa la parte tra parentesi e fai scrivere all'assistente il codice secondo la specifica.
You are helping me connect our system to Open Brand Exchange (OBX), the open standard for how brands share product photos and article data with retailers.
Read these first:
- Import format: https://github.com/openbrandexchange/spec/blob/main/docs/import-format.md
- Example data (fictional brand MAISON NOOR): https://github.com/openbrandexchange/spec/blob/main/fixtures/maison-noor/products.csv
- JSON Schemas: https://openbrandexchange.com/schemas/v0.3/
- Codes with their names (materials, qualifiers, care): https://openbrandexchange.com/vocabularies/v0.3/
Our system: [name, version, database or API, programming language].
Task:
1. Write an export that produces products.csv exactly in the OBX import format: the same columns in the same order as the MAISON NOOR example, one row per size, UTF-8.
2. Map our fields to the OBX columns. Include the fibre composition per part, the care codes and the EANs. List every OBX field we cannot fill, and every field of ours that has no place in OBX.
3. Rename or copy our product photos to the OBX naming rule {style}_{color}_{position}.jpg, for example MN-1001_NVY_1.jpg.
4. Add a test that runs the export on sample data and compares the result with the MAISON NOOR example's columns.
5. Explain how to check the result with: obx push --dry-run
Ask me for anything you need to know about our system before you write code.You are helping me read Open Brand Exchange (OBX) in our software. OBX is the open standard for how brands share product photos and article data with retailers; every brand runs its own portal with the same API.
Read these first:
- OBX in 10 minutes: https://github.com/openbrandexchange/spec/blob/main/docs/quickstart.md
- Protocol: https://github.com/openbrandexchange/spec/blob/main/docs/protocol.md
- OpenAPI contract: https://github.com/openbrandexchange/spec/blob/main/openapi/obx-protocol.yaml
Our software: [name, programming language, where products and images are stored].
Task:
1. Discover a brand portal through /.well-known/obx and get a token with OAuth2 client credentials.
2. Read the change feed: a full snapshot first, then only the changes, including deletions. Store the cursor so a restart continues where it stopped.
3. Map OBX products, variants (by EAN) and assets to our data model, including fibre composition, care and measurements.
4. Download the image renditions we need, and keep the usage rights and embargo dates with each image.
5. Handle errors and rate limits as the protocol describes, and add tests against the mock portal: obx-conformance mock.
Ask me for anything you need to know about our software before you write code.Implementazioni
| Repository | Cosa | Licenza | Stato |
|---|---|---|---|
| spec | specifica, schemi, dati di test | CC-BY-4.0 | 0.3 |
| obx-go | SDK Go, strumento obx, test di conformità, server fittizio | Apache-2.0 | 0.3 |
| admin-ui | interfaccia web condivisa: amministrazione e area rivenditori | Apache-2.0 | 0.3 |
| node-go | Portale per il tuo server Go: il tuo server, con un installer di una riga | AGPL-3.0 | 0.3 |
| node-php | Portale per web hosting PHP: normale web hosting | AGPL-3.0 | 0.3 |
| node-ts | Portale per Cloudflare TypeScript: Cloudflare Workers | AGPL-3.0 | 0.3 |
Stai costruendo una tua implementazione o un client? Faccelo sapere con una issue o una pull request; entrerà in questa tabella appena supera i test di conformità.
Documenti
protocol.mdil protocollo, in prosaingest.mdpubblicare tramite l'Ingest APIimport-format.mdil formato CSV e i nomi dei fileautomation.mdricette di automazionesecurity.mdrequisiti di sicurezzaversioning.mdversioni e compatibilitàdirectory.mdelenchi di brand
I contributi passano tramite pull request sul repository spec. Come si prendono le decisioni.
Partecipa
Lo standard nasce in pubblico e chiunque può partecipare. Non serve saper programmare: se lavori per un brand o un rivenditore, raccontaci quali problemi incontri, cosa manca e cosa funziona.
Discussioni
Fai una domanda, condividi un'idea o commenta una proposta per la prossima versione. È il punto di partenza migliore.
Issue e pull request
Per una modifica concreta: un errore nella specifica, un campo mancante, un esempio migliore. Apri una issue, oppure proponi tu stesso la modifica con una pull request.
E-mail
Per una domanda che preferisci non fare in pubblico.
Resta aggiornato
Segui il repository della specifica su GitHub (Watch → Custom → Releases) e saprai di ogni nuova versione.