API public B2B pentru quotes, AWB, tracking, wallet și puncte de predare. Specificația brută: /openapi.json.
https://ts.ybomedia.ro/v1
Pe același host ca site-ul: https://ts.ybomedia.ro/v1. Toate rutele de mai jos sunt relative la acest prefix.
Ai două variante, echivalente pentru rutele de tenant:
POST /auth/login sau POST /auth/register, apoi trimiți Authorization: Bearer <token>.X-Api-Key.Cheia se vede o singură dată la creare. Prefixul rămâne listat în setări; dacă o pierzi, generează alta.
curl -s -X POST https://ts.ybomedia.ro/v1/auth/login \
-H 'Content-Type: application/json' \
-d '{"email":"owner@demo.shop","password":"demo123"}'
curl -s -X POST https://ts.ybomedia.ro/v1/quotes \
-H 'Authorization: Bearer TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"sender": {"name":"Shop SRL","phone":"0722000111","city":"București","county":"București","street":"Strada Exemplu 10","postal_code":"010011"},
"receiver": {"name":"Andrei Pop","phone":"0744111222","city":"Cluj-Napoca","county":"Cluj","street":"Strada Memorandumului 12","postal_code":"400114"},
"weight": 2, "length_cm": 30, "width_cm": 20, "height_cm": 15,
"pickup_type": "address", "delivery_type": "address"
}'
curl -s -X POST https://ts.ybomedia.ro/v1/shipments \
-H 'X-Api-Key: YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{"offer_id": 123}'
curl -s https://ts.ybomedia.ro/v1/shipments \
-H 'X-Api-Key: YOUR_KEY'
curl -s https://ts.ybomedia.ro/v1/shipments/1 \
-H 'X-Api-Key: YOUR_KEY'
curl -s -X POST https://ts.ybomedia.ro/v1/shipments/1/cancel \
-H 'X-Api-Key: YOUR_KEY'
curl -s https://ts.ybomedia.ro/v1/tracking/FAN-STUB-ABCD \ -H 'X-Api-Key: YOUR_KEY'
curl -s https://ts.ybomedia.ro/v1/wallet \ -H 'X-Api-Key: YOUR_KEY'
Sold și ultimele mișcări din ledger. Creditarea se face din aplicație (top-up mock în v1) sau din admin.
curl -s 'https://ts.ybomedia.ro/v1/pickup-points?city=București' \ -H 'X-Api-Key: YOUR_KEY'
GET /me — user + date firmăGET /addresses · POST /addresses — carnet de adreseGET /invoices · GET /invoices/{id} — facturiGET /cod — rambursuriGET /webhook · POST /webhook — URL de notificăriGET /catalog — curieri și servicii