{"openapi":"3.0.0","paths":{"/delivery-partner/v1/deliveries":{"get":{"operationId":"DeliveryApiController_list","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["PENDING","ASSIGNED","PICKED_UP","IN_TRANSIT","DELIVERED","FAILED","RETURNING","RETURNED","CANCELLED"]}},{"name":"from","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"to","required":false,"in":"query","schema":{"format":"date-time","type":"string"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"default":25,"allOf":[{"$ref":"#/components/schemas/Object"}]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","required":["id","status","isTest","pickups","destination"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PENDING","ASSIGNED","PICKED_UP","IN_TRANSIT","DELIVERED","FAILED","RETURNING","RETURNED","CANCELLED"]},"isTest":{"type":"boolean"},"returnTrip":{"type":"boolean","description":"Course dédiée au retour vers la boutique"},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"releasedAt":{"type":"string","format":"date-time","nullable":true},"acceptedAt":{"type":"string","format":"date-time","nullable":true},"declinedAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"scheduledFor":{"type":"string","format":"date-time","nullable":true},"destination":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true}}},"pickups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"shop":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true},"status":{"type":"string"},"readyAt":{"type":"string","format":"date-time","nullable":true},"pickedUpAt":{"type":"string","format":"date-time","nullable":true}}}},"contents":{"type":"object","properties":{"parcels":{"type":"integer","description":"Nombre de lots de ramassage"},"bulky":{"type":"boolean"}}},"currency":{"type":"string","enum":["XOF"]},"codAmount":{"type":"integer"},"fee":{"type":"integer"},"partnerCost":{"type":"integer"},"driver":{"type":"object","nullable":true,"properties":{"externalId":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"}}},"etaLabel":{"type":"string","nullable":true},"failReason":{"type":"string","nullable":true},"returnReason":{"type":"string","nullable":true}}}},"nextCursor":{"type":"string","nullable":true}}}}}}},"security":[{"apiKey":[]}],"summary":"Lister les courses publiées","tags":["delivery-partner"],"x-required-scopes":["deliveries:read"]}},"/delivery-partner/v1/deliveries/{id}":{"get":{"operationId":"DeliveryApiController_detail","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["id","status","isTest","pickups","destination"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PENDING","ASSIGNED","PICKED_UP","IN_TRANSIT","DELIVERED","FAILED","RETURNING","RETURNED","CANCELLED"]},"isTest":{"type":"boolean"},"returnTrip":{"type":"boolean","description":"Course dédiée au retour vers la boutique"},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"releasedAt":{"type":"string","format":"date-time","nullable":true},"acceptedAt":{"type":"string","format":"date-time","nullable":true},"declinedAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"scheduledFor":{"type":"string","format":"date-time","nullable":true},"destination":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true}}},"pickups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"shop":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true},"status":{"type":"string"},"readyAt":{"type":"string","format":"date-time","nullable":true},"pickedUpAt":{"type":"string","format":"date-time","nullable":true}}}},"contents":{"type":"object","properties":{"parcels":{"type":"integer","description":"Nombre de lots de ramassage"},"bulky":{"type":"boolean"}}},"currency":{"type":"string","enum":["XOF"]},"codAmount":{"type":"integer"},"fee":{"type":"integer"},"partnerCost":{"type":"integer"},"driver":{"type":"object","nullable":true,"properties":{"externalId":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"}}},"etaLabel":{"type":"string","nullable":true},"failReason":{"type":"string","nullable":true},"returnReason":{"type":"string","nullable":true}}}}}}},"security":[{"apiKey":[]}],"summary":"Lire une course","tags":["delivery-partner"],"x-required-scopes":["deliveries:read"]}},"/delivery-partner/v1/settlements":{"get":{"operationId":"DeliveryApiController_settlements","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"deliveryId":{"type":"string","nullable":true},"direction":{"type":"string","enum":["COD_IN","FEE_OUT"]},"amount":{"type":"integer"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time","nullable":true},"settledAt":{"type":"string","format":"date-time","nullable":true},"waveRef":{"type":"string","nullable":true}}}},"summary":{"type":"object","properties":{"codDue":{"type":"integer"},"feesDue":{"type":"integer"},"net":{"type":"integer"}}},"netting":{"type":"object","properties":{"compensated":{"type":"integer"},"netAmount":{"type":"integer"},"waveFeeSaved":{"type":"integer"},"waveFeeOnNet":{"type":"integer"},"direction":{"type":"string","enum":["PARTNER_PAYS_US","WE_PAY_PARTNER","BALANCED"]}}}}}}}}},"security":[{"apiKey":[]}],"summary":"Lire les règlements et la compensation","tags":["delivery-partner"],"x-required-scopes":["settlements:read"]}},"/delivery-partner/v1/settlements/incoming-transfers":{"get":{"operationId":"DeliveryApiController_incomingTransfers","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["rows","credit","merchantDisplay"],"properties":{"credit":{"type":"integer","minimum":0,"description":"Crédit XOF utilisable, tout l’historique ; REVIEW exclu."},"merchantDisplay":{"type":"string","description":"Compte marchand configuré ; vide en sandbox ou sans configuration."},"rows":{"type":"array","maxItems":200,"items":{"type":"object","properties":{"id":{"type":"string"},"waveId":{"type":"string"},"source":{"type":"string","enum":["WEBHOOK","SWEEP"]},"amount":{"type":"integer"},"currency":{"type":"string"},"receivedAt":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string","enum":["UNMATCHED","APPLIED","PARTIAL","REVIEW"]},"allocatedAmount":{"type":"integer"},"remainingAmount":{"type":"integer"},"settledSettlementIds":{"type":"array","items":{"type":"string"}},"clientReference":{"type":"string","nullable":true},"isTest":{"type":"boolean"}}}}}}}}}},"security":[{"apiKey":[]}],"summary":"Virements reçus et crédit non affecté ; sandbox : registre vide","tags":["delivery-partner"],"x-required-scopes":["settlements:read"]}},"/delivery-partner/v1/settlements/withdrawals":{"post":{"operationId":"DeliveryApiController_requestWithdrawal","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"integer"},"currency":{"type":"string"},"phone":{"type":"string"},"status":{"type":"string","enum":["PENDING","PROCESSING","PAID","REJECTED"]},"coveredSettlementIds":{"type":"array","items":{"type":"string"}},"waveRef":{"type":"string","nullable":true},"rejectReason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"decidedAt":{"type":"string","format":"date-time","nullable":true},"paidAt":{"type":"string","format":"date-time","nullable":true},"isTest":{"type":"boolean"}}}}}}},"security":[{"apiKey":[]}],"summary":"Demander le retrait du solde dû. Aucun montant ni numéro : le serveur les calcule, un administrateur accepte, puis Wave vire.","tags":["delivery-partner"],"x-required-scopes":["settlements:withdraw"]},"get":{"operationId":"DeliveryApiController_listWithdrawals","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"integer"},"currency":{"type":"string"},"phone":{"type":"string"},"status":{"type":"string","enum":["PENDING","PROCESSING","PAID","REJECTED"]},"coveredSettlementIds":{"type":"array","items":{"type":"string"}},"waveRef":{"type":"string","nullable":true},"rejectReason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"decidedAt":{"type":"string","format":"date-time","nullable":true},"paidAt":{"type":"string","format":"date-time","nullable":true},"isTest":{"type":"boolean"}}}}}}}}}},"security":[{"apiKey":[]}],"summary":"Lister ses 50 derniers retraits","tags":["delivery-partner"],"x-required-scopes":["settlements:read"]}},"/delivery-partner/v1/settlements/withdrawals/{id}":{"get":{"operationId":"DeliveryApiController_withdrawal","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"integer"},"currency":{"type":"string"},"phone":{"type":"string"},"status":{"type":"string","enum":["PENDING","PROCESSING","PAID","REJECTED"]},"coveredSettlementIds":{"type":"array","items":{"type":"string"}},"waveRef":{"type":"string","nullable":true},"rejectReason":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"decidedAt":{"type":"string","format":"date-time","nullable":true},"paidAt":{"type":"string","format":"date-time","nullable":true},"isTest":{"type":"boolean"}}}}}}},"security":[{"apiKey":[]}],"summary":"Lire l’état d’un retrait : PENDING, PROCESSING, PAID ou REJECTED","tags":["delivery-partner"],"x-required-scopes":["settlements:read"]}},"/delivery-partner/v1/settlements/payment-link":{"post":{"operationId":"DeliveryApiController_paymentLink","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["id","amount","currency","url","expiresAt","coveredSettlementIds","status","isTest","paidAt"],"properties":{"id":{"type":"string"},"amount":{"type":"integer","minimum":1},"currency":{"type":"string","enum":["XOF"]},"url":{"type":"string","nullable":true,"description":"Lien Wave ou URL factice example.invalid en sandbox ; null si terminé."},"expiresAt":{"type":"string","format":"date-time","nullable":true},"coveredSettlementIds":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["PENDING","PAID","EXPIRED","FAILED"]},"paidAt":{"type":"string","format":"date-time","nullable":true},"isTest":{"type":"boolean"}}}}}}},"security":[{"apiKey":[]}],"summary":"Payer le solde calculé côté serveur (sandbox : lien factice)","tags":["delivery-partner"],"x-required-scopes":["settlements:pay"]}},"/delivery-partner/v1/settlements/payments/{id}":{"get":{"operationId":"DeliveryApiController_payment","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["id","amount","currency","url","expiresAt","coveredSettlementIds","status","isTest","paidAt"],"properties":{"id":{"type":"string"},"amount":{"type":"integer","minimum":1},"currency":{"type":"string","enum":["XOF"]},"url":{"type":"string","nullable":true,"description":"Lien Wave ou URL factice example.invalid en sandbox ; null si terminé."},"expiresAt":{"type":"string","format":"date-time","nullable":true},"coveredSettlementIds":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["PENDING","PAID","EXPIRED","FAILED"]},"paidAt":{"type":"string","format":"date-time","nullable":true},"isTest":{"type":"boolean"}}}}}}},"security":[{"apiKey":[]}],"summary":"Lire l’état du paiement du partenaire et de son environnement","tags":["delivery-partner"],"x-required-scopes":["settlements:read"]}},"/delivery-partner/v1/deliveries/{id}/accept":{"post":{"operationId":"DeliveryApiController_accept","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["id","status","isTest","pickups","destination"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PENDING","ASSIGNED","PICKED_UP","IN_TRANSIT","DELIVERED","FAILED","RETURNING","RETURNED","CANCELLED"]},"isTest":{"type":"boolean"},"returnTrip":{"type":"boolean","description":"Course dédiée au retour vers la boutique"},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"releasedAt":{"type":"string","format":"date-time","nullable":true},"acceptedAt":{"type":"string","format":"date-time","nullable":true},"declinedAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"scheduledFor":{"type":"string","format":"date-time","nullable":true},"destination":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true}}},"pickups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"shop":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true},"status":{"type":"string"},"readyAt":{"type":"string","format":"date-time","nullable":true},"pickedUpAt":{"type":"string","format":"date-time","nullable":true}}}},"contents":{"type":"object","properties":{"parcels":{"type":"integer","description":"Nombre de lots de ramassage"},"bulky":{"type":"boolean"}}},"currency":{"type":"string","enum":["XOF"]},"codAmount":{"type":"integer"},"fee":{"type":"integer"},"partnerCost":{"type":"integer"},"driver":{"type":"object","nullable":true,"properties":{"externalId":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"}}},"etaLabel":{"type":"string","nullable":true},"failReason":{"type":"string","nullable":true},"returnReason":{"type":"string","nullable":true}}}}}}},"security":[{"apiKey":[]}],"summary":"Accepter la prise en charge","tags":["delivery-partner"],"x-required-scopes":["deliveries:write"]}},"/delivery-partner/v1/deliveries/{id}/decline":{"post":{"operationId":"DeliveryApiController_decline","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclineDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["id","status","isTest","pickups","destination"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PENDING","ASSIGNED","PICKED_UP","IN_TRANSIT","DELIVERED","FAILED","RETURNING","RETURNED","CANCELLED"]},"isTest":{"type":"boolean"},"returnTrip":{"type":"boolean","description":"Course dédiée au retour vers la boutique"},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"releasedAt":{"type":"string","format":"date-time","nullable":true},"acceptedAt":{"type":"string","format":"date-time","nullable":true},"declinedAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"scheduledFor":{"type":"string","format":"date-time","nullable":true},"destination":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true}}},"pickups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"shop":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true},"status":{"type":"string"},"readyAt":{"type":"string","format":"date-time","nullable":true},"pickedUpAt":{"type":"string","format":"date-time","nullable":true}}}},"contents":{"type":"object","properties":{"parcels":{"type":"integer","description":"Nombre de lots de ramassage"},"bulky":{"type":"boolean"}}},"currency":{"type":"string","enum":["XOF"]},"codAmount":{"type":"integer"},"fee":{"type":"integer"},"partnerCost":{"type":"integer"},"driver":{"type":"object","nullable":true,"properties":{"externalId":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"}}},"etaLabel":{"type":"string","nullable":true},"failReason":{"type":"string","nullable":true},"returnReason":{"type":"string","nullable":true}}}}}}},"security":[{"apiKey":[]}],"summary":"Refuser la prise en charge","tags":["delivery-partner"],"x-required-scopes":["deliveries:write"]}},"/delivery-partner/v1/deliveries/{id}/driver":{"post":{"operationId":"DeliveryApiController_assign","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalDriverDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["id","status","isTest","pickups","destination"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PENDING","ASSIGNED","PICKED_UP","IN_TRANSIT","DELIVERED","FAILED","RETURNING","RETURNED","CANCELLED"]},"isTest":{"type":"boolean"},"returnTrip":{"type":"boolean","description":"Course dédiée au retour vers la boutique"},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"releasedAt":{"type":"string","format":"date-time","nullable":true},"acceptedAt":{"type":"string","format":"date-time","nullable":true},"declinedAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"scheduledFor":{"type":"string","format":"date-time","nullable":true},"destination":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true}}},"pickups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"shop":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true},"status":{"type":"string"},"readyAt":{"type":"string","format":"date-time","nullable":true},"pickedUpAt":{"type":"string","format":"date-time","nullable":true}}}},"contents":{"type":"object","properties":{"parcels":{"type":"integer","description":"Nombre de lots de ramassage"},"bulky":{"type":"boolean"}}},"currency":{"type":"string","enum":["XOF"]},"codAmount":{"type":"integer"},"fee":{"type":"integer"},"partnerCost":{"type":"integer"},"driver":{"type":"object","nullable":true,"properties":{"externalId":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"}}},"etaLabel":{"type":"string","nullable":true},"failReason":{"type":"string","nullable":true},"returnReason":{"type":"string","nullable":true}}}}}}},"security":[{"apiKey":[]}],"summary":"Affecter un livreur externe","tags":["delivery-partner"],"x-required-scopes":["deliveries:write"]}},"/delivery-partner/v1/deliveries/{id}/pickups/{pickupId}/collect":{"post":{"operationId":"DeliveryApiController_pickup","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"pickupId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProofDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["id","status","isTest","pickups","destination"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PENDING","ASSIGNED","PICKED_UP","IN_TRANSIT","DELIVERED","FAILED","RETURNING","RETURNED","CANCELLED"]},"isTest":{"type":"boolean"},"returnTrip":{"type":"boolean","description":"Course dédiée au retour vers la boutique"},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"releasedAt":{"type":"string","format":"date-time","nullable":true},"acceptedAt":{"type":"string","format":"date-time","nullable":true},"declinedAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"scheduledFor":{"type":"string","format":"date-time","nullable":true},"destination":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true}}},"pickups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"shop":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true},"status":{"type":"string"},"readyAt":{"type":"string","format":"date-time","nullable":true},"pickedUpAt":{"type":"string","format":"date-time","nullable":true}}}},"contents":{"type":"object","properties":{"parcels":{"type":"integer","description":"Nombre de lots de ramassage"},"bulky":{"type":"boolean"}}},"currency":{"type":"string","enum":["XOF"]},"codAmount":{"type":"integer"},"fee":{"type":"integer"},"partnerCost":{"type":"integer"},"driver":{"type":"object","nullable":true,"properties":{"externalId":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"}}},"etaLabel":{"type":"string","nullable":true},"failReason":{"type":"string","nullable":true},"returnReason":{"type":"string","nullable":true}}}}}}},"security":[{"apiKey":[]}],"summary":"Confirmer un ramassage","tags":["delivery-partner"],"x-required-scopes":["deliveries:write"]}},"/delivery-partner/v1/deliveries/{id}/transit":{"post":{"operationId":"DeliveryApiController_transit","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["id","status","isTest","pickups","destination"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PENDING","ASSIGNED","PICKED_UP","IN_TRANSIT","DELIVERED","FAILED","RETURNING","RETURNED","CANCELLED"]},"isTest":{"type":"boolean"},"returnTrip":{"type":"boolean","description":"Course dédiée au retour vers la boutique"},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"releasedAt":{"type":"string","format":"date-time","nullable":true},"acceptedAt":{"type":"string","format":"date-time","nullable":true},"declinedAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"scheduledFor":{"type":"string","format":"date-time","nullable":true},"destination":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true}}},"pickups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"shop":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true},"status":{"type":"string"},"readyAt":{"type":"string","format":"date-time","nullable":true},"pickedUpAt":{"type":"string","format":"date-time","nullable":true}}}},"contents":{"type":"object","properties":{"parcels":{"type":"integer","description":"Nombre de lots de ramassage"},"bulky":{"type":"boolean"}}},"currency":{"type":"string","enum":["XOF"]},"codAmount":{"type":"integer"},"fee":{"type":"integer"},"partnerCost":{"type":"integer"},"driver":{"type":"object","nullable":true,"properties":{"externalId":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"}}},"etaLabel":{"type":"string","nullable":true},"failReason":{"type":"string","nullable":true},"returnReason":{"type":"string","nullable":true}}}}}}},"security":[{"apiKey":[]}],"summary":"Partir en route","tags":["delivery-partner"],"x-required-scopes":["deliveries:write"]}},"/delivery-partner/v1/deliveries/{id}/deliver":{"post":{"operationId":"DeliveryApiController_deliver","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["id","status","isTest","pickups","destination"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PENDING","ASSIGNED","PICKED_UP","IN_TRANSIT","DELIVERED","FAILED","RETURNING","RETURNED","CANCELLED"]},"isTest":{"type":"boolean"},"returnTrip":{"type":"boolean","description":"Course dédiée au retour vers la boutique"},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"releasedAt":{"type":"string","format":"date-time","nullable":true},"acceptedAt":{"type":"string","format":"date-time","nullable":true},"declinedAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"scheduledFor":{"type":"string","format":"date-time","nullable":true},"destination":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true}}},"pickups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"shop":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true},"status":{"type":"string"},"readyAt":{"type":"string","format":"date-time","nullable":true},"pickedUpAt":{"type":"string","format":"date-time","nullable":true}}}},"contents":{"type":"object","properties":{"parcels":{"type":"integer","description":"Nombre de lots de ramassage"},"bulky":{"type":"boolean"}}},"currency":{"type":"string","enum":["XOF"]},"codAmount":{"type":"integer"},"fee":{"type":"integer"},"partnerCost":{"type":"integer"},"driver":{"type":"object","nullable":true,"properties":{"externalId":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"}}},"etaLabel":{"type":"string","nullable":true},"failReason":{"type":"string","nullable":true},"returnReason":{"type":"string","nullable":true}}}}}}},"security":[{"apiKey":[]}],"summary":"Livrer avec le code client","tags":["delivery-partner"],"x-required-scopes":["deliveries:write"]}},"/delivery-partner/v1/deliveries/{id}/fail":{"post":{"operationId":"DeliveryApiController_fail","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FailureDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["id","status","isTest","pickups","destination"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PENDING","ASSIGNED","PICKED_UP","IN_TRANSIT","DELIVERED","FAILED","RETURNING","RETURNED","CANCELLED"]},"isTest":{"type":"boolean"},"returnTrip":{"type":"boolean","description":"Course dédiée au retour vers la boutique"},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"releasedAt":{"type":"string","format":"date-time","nullable":true},"acceptedAt":{"type":"string","format":"date-time","nullable":true},"declinedAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"scheduledFor":{"type":"string","format":"date-time","nullable":true},"destination":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true}}},"pickups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"shop":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true},"status":{"type":"string"},"readyAt":{"type":"string","format":"date-time","nullable":true},"pickedUpAt":{"type":"string","format":"date-time","nullable":true}}}},"contents":{"type":"object","properties":{"parcels":{"type":"integer","description":"Nombre de lots de ramassage"},"bulky":{"type":"boolean"}}},"currency":{"type":"string","enum":["XOF"]},"codAmount":{"type":"integer"},"fee":{"type":"integer"},"partnerCost":{"type":"integer"},"driver":{"type":"object","nullable":true,"properties":{"externalId":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"}}},"etaLabel":{"type":"string","nullable":true},"failReason":{"type":"string","nullable":true},"returnReason":{"type":"string","nullable":true}}}}}}},"security":[{"apiKey":[]}],"summary":"Signaler un échec","tags":["delivery-partner"],"x-required-scopes":["deliveries:write"]}},"/delivery-partner/v1/deliveries/{id}/refuse":{"post":{"operationId":"DeliveryApiController_refuse","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriverRefuseDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["id","status","isTest","pickups","destination"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PENDING","ASSIGNED","PICKED_UP","IN_TRANSIT","DELIVERED","FAILED","RETURNING","RETURNED","CANCELLED"]},"isTest":{"type":"boolean"},"returnTrip":{"type":"boolean","description":"Course dédiée au retour vers la boutique"},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"releasedAt":{"type":"string","format":"date-time","nullable":true},"acceptedAt":{"type":"string","format":"date-time","nullable":true},"declinedAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"scheduledFor":{"type":"string","format":"date-time","nullable":true},"destination":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true}}},"pickups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"shop":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true},"status":{"type":"string"},"readyAt":{"type":"string","format":"date-time","nullable":true},"pickedUpAt":{"type":"string","format":"date-time","nullable":true}}}},"contents":{"type":"object","properties":{"parcels":{"type":"integer","description":"Nombre de lots de ramassage"},"bulky":{"type":"boolean"}}},"currency":{"type":"string","enum":["XOF"]},"codAmount":{"type":"integer"},"fee":{"type":"integer"},"partnerCost":{"type":"integer"},"driver":{"type":"object","nullable":true,"properties":{"externalId":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"}}},"etaLabel":{"type":"string","nullable":true},"failReason":{"type":"string","nullable":true},"returnReason":{"type":"string","nullable":true}}}}}}},"security":[{"apiKey":[]}],"summary":"Refus du colis par le client","tags":["delivery-partner"],"x-required-scopes":["deliveries:write"]}},"/delivery-partner/v1/deliveries/{id}/return":{"post":{"operationId":"DeliveryApiController_returned","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReturnDeliveredDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["id","status","isTest","pickups","destination"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PENDING","ASSIGNED","PICKED_UP","IN_TRANSIT","DELIVERED","FAILED","RETURNING","RETURNED","CANCELLED"]},"isTest":{"type":"boolean"},"returnTrip":{"type":"boolean","description":"Course dédiée au retour vers la boutique"},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"releasedAt":{"type":"string","format":"date-time","nullable":true},"acceptedAt":{"type":"string","format":"date-time","nullable":true},"declinedAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"scheduledFor":{"type":"string","format":"date-time","nullable":true},"destination":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true}}},"pickups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"shop":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true},"status":{"type":"string"},"readyAt":{"type":"string","format":"date-time","nullable":true},"pickedUpAt":{"type":"string","format":"date-time","nullable":true}}}},"contents":{"type":"object","properties":{"parcels":{"type":"integer","description":"Nombre de lots de ramassage"},"bulky":{"type":"boolean"}}},"currency":{"type":"string","enum":["XOF"]},"codAmount":{"type":"integer"},"fee":{"type":"integer"},"partnerCost":{"type":"integer"},"driver":{"type":"object","nullable":true,"properties":{"externalId":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"}}},"etaLabel":{"type":"string","nullable":true},"failReason":{"type":"string","nullable":true},"returnReason":{"type":"string","nullable":true}}}}}}},"security":[{"apiKey":[]}],"summary":"Remettre le retour au vendeur","tags":["delivery-partner"],"x-required-scopes":["deliveries:write"]}},"/delivery-partner/v1/deliveries/{id}/positions":{"post":{"operationId":"DeliveryApiController_positions","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PositionBatchDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"integer"},"rejected":{"type":"integer"}}}}}}},"security":[{"apiKey":[]}],"summary":"Envoyer un lot GPS","tags":["delivery-partner"],"x-required-scopes":["positions:write"]}},"/delivery-partner/v1/deliveries/{id}/proof-upload":{"post":{"operationId":"DeliveryApiController_upload","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"uploadUrl":{"type":"string"},"publicUrl":{"type":"string"},"objectKey":{"type":"string"}}}}}}},"security":[{"apiKey":[]}],"summary":"Créer une URL de preuve présignée","tags":["delivery-partner"],"x-required-scopes":["deliveries:write"]}},"/delivery-partner/v1/sandbox/deliveries":{"post":{"operationId":"DeliveryApiController_createTest","parameters":[{"name":"Idempotency-Key","in":"header","description":"Obligatoire pour tous les POST ; unique par action, conservée 24 h.","schema":{"type":"string"}}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object","required":["id","status","isTest","pickups","destination"],"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PENDING","ASSIGNED","PICKED_UP","IN_TRANSIT","DELIVERED","FAILED","RETURNING","RETURNED","CANCELLED"]},"isTest":{"type":"boolean"},"returnTrip":{"type":"boolean","description":"Course dédiée au retour vers la boutique"},"createdAt":{"type":"string","format":"date-time","nullable":true},"updatedAt":{"type":"string","format":"date-time","nullable":true},"releasedAt":{"type":"string","format":"date-time","nullable":true},"acceptedAt":{"type":"string","format":"date-time","nullable":true},"declinedAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"scheduledFor":{"type":"string","format":"date-time","nullable":true},"destination":{"type":"object","properties":{"name":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true}}},"pickups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"shop":{"type":"string"},"phone":{"type":"string"},"address":{"type":"object","additionalProperties":{"type":"string"}},"lat":{"type":"number","nullable":true},"lng":{"type":"number","nullable":true},"status":{"type":"string"},"readyAt":{"type":"string","format":"date-time","nullable":true},"pickedUpAt":{"type":"string","format":"date-time","nullable":true}}}},"contents":{"type":"object","properties":{"parcels":{"type":"integer","description":"Nombre de lots de ramassage"},"bulky":{"type":"boolean"}}},"currency":{"type":"string","enum":["XOF"]},"codAmount":{"type":"integer"},"fee":{"type":"integer"},"partnerCost":{"type":"integer"},"driver":{"type":"object","nullable":true,"properties":{"externalId":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"}}},"etaLabel":{"type":"string","nullable":true},"failReason":{"type":"string","nullable":true},"returnReason":{"type":"string","nullable":true}}}}}}},"security":[{"apiKey":[]}],"summary":"Créer une course sandbox","tags":["delivery-partner"],"x-required-scopes":["sandbox:write"]}},"/partner/v1/items":{"get":{"operationId":"PartnerController_listItems","parameters":[{"name":"cursor","required":true,"in":"query","schema":{"type":"string"}},{"name":"limit","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"api-key":[]}],"summary":"Catalogue du vendeur (incl. désactivés, keyset)","tags":["partner"]},"post":{"operationId":"PartnerController_createItem","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerCreateItemDto"}}}},"responses":{"201":{"description":""}},"security":[{"api-key":[]}],"summary":"Créer un article","tags":["partner"]}},"/partner/v1/items/{id}":{"patch":{"operationId":"PartnerController_updateItem","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerUpdateItemDto"}}}},"responses":{"200":{"description":""}},"security":[{"api-key":[]}],"summary":"Mettre à jour un article (partiel : prix, stock…)","tags":["partner"]},"delete":{"operationId":"PartnerController_removeItem","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"api-key":[]}],"summary":"Retirer un article (soft delete + désindexation)","tags":["partner"]}},"/partner/v1/orders":{"get":{"operationId":"PartnerController_listOrders","parameters":[{"name":"cursor","required":true,"in":"query","schema":{"type":"string"}},{"name":"limit","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"api-key":[]}],"summary":"Commandes contenant les articles du vendeur (keyset)","tags":["partner"]}},"/partner/v1/sandbox/orders":{"post":{"operationId":"PartnerController_simulateOrder","parameters":[],"responses":{"201":{"description":""}},"security":[{"api-key":[]}],"summary":"Créer une commande de TEST et déclencher son webhook (clé sandbox requise)","tags":["partner"]}},"/partner/v1/sandbox/reset":{"post":{"operationId":"PartnerController_resetSandbox","parameters":[],"responses":{"201":{"description":""}},"security":[{"api-key":[]}],"summary":"Effacer mes commandes de test","tags":["partner"]}},"/partner/v1/orders/{id}/advance":{"post":{"operationId":"PartnerController_advanceOrder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":""}},"security":[{"api-key":[]}],"summary":"Faire avancer une commande depuis son propre système (préparée → expédiée → livrée)","tags":["partner"]}},"/connectors/inbound/{connectionId}":{"post":{"operationId":"InboundWebhookController_receive","parameters":[{"name":"connectionId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"202":{"description":""}},"summary":"Notification de changement depuis la boutique du marchand","tags":["connectors"]}},"/seller/webhooks":{"get":{"operationId":"WebhooksController_list","parameters":[],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Mes abonnements webhooks","tags":["webhooks"]},"post":{"operationId":"WebhooksController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEndpointDto"}}}},"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"Créer un abonnement (le secret n’est affiché qu’ici)","tags":["webhooks"]}},"/seller/webhooks/{id}/test":{"post":{"operationId":"WebhooksController_test","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":""}},"security":[{"bearer":[]}],"summary":"Envoyer un évènement de test à cette URL","tags":["webhooks"]}},"/seller/webhooks/deliveries":{"get":{"operationId":"WebhooksController_deliveries","parameters":[{"name":"limit","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"summary":"Journal des livraisons (ce que tu as reçu, et quand)","tags":["webhooks"]}},"/seller/webhooks/{id}":{"delete":{"operationId":"WebhooksController_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""}},"security":[{"bearer":[]}],"tags":["webhooks"]}}},"info":{"title":"Générale CI — API partenaire","description":"Endpoints destinés aux boutiques et à leurs intégrations. Guide complet : https://generale-ci.com/docs","version":"1.0","contact":{}},"tags":[],"servers":[],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"},"apiKey":{"type":"apiKey","in":"header","name":"X-Api-Key"}},"schemas":{"ClimUnitDto":{"type":"object","properties":{}},"ClimBookingDto":{"type":"object","properties":{}},"ServicePayDto":{"type":"object","properties":{}},"ClimQuoteDto":{"type":"object","properties":{}},"ClimSettingsDto":{"type":"object","properties":{}},"ClimActionDto":{"type":"object","properties":{}},"UpsertAdminDto":{"type":"object","properties":{"phone":{"type":"string","description":"Requis à la création (identifiant unique en base)"}}},"SetConfigDto":{"type":"object","properties":{}},"BanUserDto":{"type":"object","properties":{"reason":{"type":"string"}}},"SetRoleDto":{"type":"object","properties":{}},"BulkActiveDto":{"type":"object","properties":{}},"SetItemActiveDto":{"type":"object","properties":{}},"QuickEditItemDto":{"type":"object","properties":{"price":{"type":"number"},"stock":{"type":"object","description":"null = stock non suivi"},"categoryId":{"type":"object","description":"null = retirer de sa catégorie"},"name":{"type":"string","description":"Désignation affichée aux acheteurs"},"description":{"type":"string"},"brand":{"type":"object","description":"null ou vide = sans marque"}}},"AdminShopLocationDto":{"type":"object","properties":{}},"SellerPrivilegesDto":{"type":"object","properties":{"instantPayout":{"type":"boolean","description":"Retrait sans retenue (impose le retour en magasin)."},"returnPolicy":{"type":"string","enum":["PLATFORM","IN_STORE"]},"invoiceRequired":{"type":"boolean","description":"La boutique doit joindre sa facture société."},"onlinePaymentOnly":{"type":"boolean","description":"Refuse le paiement à la livraison pour cette boutique."},"selfDeliveryThreshold":{"type":"object","description":"Seuil de livraison par la boutique (FCFA)."}}},"MarkRefundTransferredDto":{"type":"object","properties":{"waveRef":{"type":"string","description":"Référence du virement Wave, si connue"},"source":{"type":"string","enum":["PAYMENT","RETURN","CANCELLATION"]}},"required":["source"]},"MarkTransferredDto":{"type":"object","properties":{"waveRef":{"type":"string","description":"Référence du virement Wave, si connue"}}},"UpsertCommissionRateDto":{"type":"object","properties":{}},"SetExemptDto":{"type":"object","properties":{}},"AttachReferralDto":{"type":"object","properties":{}},"PickupPointDto":{"type":"object","properties":{"label":{"type":"string"},"communeSlug":{"type":"string"},"line":{"type":"string"},"lat":{"type":"number"},"lng":{"type":"number"},"phone":{"type":"string"},"isDefault":{"type":"boolean"}},"required":["label"]},"GarageRepairDto":{"type":"object","properties":{}},"RepairCreateDto":{"type":"object","properties":{}},"GarageAccessDto":{"type":"object","properties":{}},"RepairDisputeDto":{"type":"object","properties":{}},"RegistrationScanDto":{"type":"object","properties":{}},"VehicleDto":{"type":"object","properties":{}},"VehicleMileageDto":{"type":"object","properties":{}},"MaintenanceDto":{"type":"object","properties":{}},"RoadsideCreateDto":{"type":"object","properties":{}},"OilBookingDto":{"type":"object","properties":{}},"GarageSettingsDto":{"type":"object","properties":{}},"RoadsideActionDto":{"type":"object","properties":{}},"RoadsidePositionDto":{"type":"object","properties":{}},"RoadsideQuoteDto":{"type":"object","properties":{}},"OilActionDto":{"type":"object","properties":{}},"RepairJobCreateDto":{"type":"object","properties":{}},"RepairStageDto":{"type":"object","properties":{}},"RepairQuoteDto":{"type":"object","properties":{}},"RepairLoanerDto":{"type":"object","properties":{}},"RepairInspectionDto":{"type":"object","properties":{}},"RepairFeeAcceptDto":{"type":"object","properties":{}},"LoanerConfirmDto":{"type":"object","properties":{}},"RepairComplaintDto":{"type":"object","properties":{}},"Object":{"type":"object","properties":{}},"DeclineDto":{"type":"object","properties":{"reason":{"type":"string"}},"required":["reason"]},"ExternalDriverDto":{"type":"object","properties":{"externalId":{"type":"string"},"name":{"type":"string"},"phone":{"type":"string"}},"required":["externalId","name","phone"]},"ProofDto":{"type":"object","properties":{"proofUrl":{"type":"string"}}},"CompleteDto":{"type":"object","properties":{"proofUrl":{"type":"string"},"code":{"type":"string","pattern":"^\\d{4}$"}},"required":["code"]},"FailureDto":{"type":"object","properties":{"proofUrl":{"type":"string"},"reason":{"type":"string","enum":["CLIENT_ABSENT","UNREACHABLE","ADDRESS_NOT_FOUND","VEHICLE_BREAKDOWN"]},"note":{"type":"string"}},"required":["reason"]},"DriverRefuseDto":{"type":"object","properties":{"reason":{"type":"string","enum":["DAMAGED","NOT_AS_DESCRIBED","CHANGED_MIND","UNREACHABLE"]},"proofUrl":{"type":"string"},"note":{"type":"string"}},"required":["reason","proofUrl"]},"ReturnDeliveredDto":{"type":"object","properties":{"proofUrl":{"type":"string"}},"required":["proofUrl"]},"BatchPositionDto":{"type":"object","properties":{"lat":{"type":"number"},"lng":{"type":"number"},"heading":{"type":"number"},"accuracy":{"type":"number"},"speed":{"type":"number"},"at":{"type":"string"}},"required":["lat","lng"]},"PositionBatchDto":{"type":"object","properties":{"points":{"maxItems":200,"type":"array","items":{"$ref":"#/components/schemas/BatchPositionDto"}}},"required":["points"]},"UploadDto":{"type":"object","properties":{"contentType":{"type":"string","enum":["image/jpeg","image/png","image/webp"]}},"required":["contentType"]},"KeyDto":{"type":"object","properties":{"name":{"type":"string"},"sandbox":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}}},"required":["name","sandbox","scopes"]},"EndpointDto":{"type":"object","properties":{"url":{"type":"string"},"sandbox":{"type":"boolean"},"active":{"type":"boolean"},"events":{"type":"array","items":{"type":"string"}}},"required":["url","sandbox","active","events"]},"RejectWithdrawalDto":{"type":"object","properties":{}},"SendersDto":{"type":"object","properties":{}},"AssignDto":{"type":"object","properties":{}},"MergeDto":{"type":"object","properties":{}},"ToggleOnlineDto":{"type":"object","properties":{}},"DriverShopLocationDto":{"type":"object","properties":{}},"DeliverDto":{"type":"object","properties":{}},"FailDeliveryDto":{"type":"object","properties":{}},"PositionDto":{"type":"object","properties":{"lat":{"type":"number"},"lng":{"type":"number"},"heading":{"type":"number"},"accuracy":{"type":"number"},"speed":{"type":"number"}},"required":["lat","lng"]},"RaiseSosDto":{"type":"object","properties":{}},"TrustedContactDto":{"type":"object","properties":{}},"RouteStopsDto":{"type":"object","properties":{}},"AssignDriverDto":{"type":"object","properties":{}},"CreateExternalDeliveryDto":{"type":"object","properties":{}},"CreateDriverDto":{"type":"object","properties":{}},"UpdateDriverDto":{"type":"object","properties":{}},"SettleDto":{"type":"object","properties":{}},"ResolveSosDto":{"type":"object","properties":{}},"WebPushSubscribeDto":{"type":"object","properties":{}},"BootstrapDto":{"type":"object","properties":{}},"UpdateSelfDeliveryDto":{"type":"object","properties":{"threshold":{"type":"object","nullable":true},"fallbackFee":{"type":"object","nullable":true},"etaLabel":{"type":"object","nullable":true}}},"DeliveryRateDto":{"type":"object","properties":{"communeSlug":{"type":"string"},"fee":{"type":"number"},"served":{"type":"boolean","default":true}},"required":["communeSlug","fee"]},"ReplaceRatesDto":{"type":"object","properties":{"rates":{"type":"array","items":{"$ref":"#/components/schemas/DeliveryRateDto"}}},"required":["rates"]},"SignWaiverDto":{"type":"object","properties":{"signedByName":{"type":"string"}},"required":["signedByName"]},"DeclareIncidentDto":{"type":"object","properties":{"type":{"type":"string","enum":["LOST","DAMAGED","THEFT"]},"proofUrl":{"type":"string"},"note":{"type":"string"}},"required":["type"]},"DecideIncidentDto":{"type":"object","properties":{"accept":{"type":"boolean"},"note":{"type":"string"}},"required":["accept"]},"CreateReturnRequestDto":{"type":"object","properties":{"note":{"type":"string"}}},"RejectReturnDto":{"type":"object","properties":{}},"ContestReturnDto":{"type":"object","properties":{"note":{"type":"string"}}},"ArbitrateDto":{"type":"object","properties":{}},"RelayReturnReasonDto":{"type":"object","properties":{}},"CodeRefundDto":{"type":"object","properties":{}},"ReportIssueDto":{"type":"object","properties":{}},"ResolveIssueDto":{"type":"object","properties":{}},"ImportCodesDto":{"type":"object","properties":{}},"DeliverCodesDto":{"type":"object","properties":{}},"EnhanceImageDto":{"type":"object","properties":{"imageUrl":{"type":"string","description":"URL publique de la photo source (upload presign products)."},"style":{"type":"string","enum":["studio","situation","lifestyle"],"description":"Style de mise en scène souhaité."}},"required":["imageUrl","style"]},"BuyTryOnPackDto":{"type":"object","properties":{}},"CreateTryOnDto":{"type":"object","properties":{}},"PresignDto":{"type":"object","properties":{}},"ScanPresignDto":{"type":"object","properties":{}},"WriteLyricsDto":{"type":"object","properties":{}},"CreateSongDto":{"type":"object","properties":{}},"PaySongDto":{"type":"object","properties":{}},"RenameSongDto":{"type":"object","properties":{}},"FbBoostQuoteDto":{"type":"object","properties":{}},"CreateFbBoostDto":{"type":"object","properties":{}},"RejectFbBoostDto":{"type":"object","properties":{}},"RequestPayoutDto":{"type":"object","properties":{}},"PreviewLinkDto":{"type":"object","properties":{}},"QuoteDto":{"type":"object","properties":{}},"CreateShopperOrderDto":{"type":"object","properties":{}},"PayDto":{"type":"object","properties":{}},"WithdrawDto":{"type":"object","properties":{}},"EurRateDto":{"type":"object","properties":{}},"UsdRateDto":{"type":"object","properties":{}},"SitesDto":{"type":"object","properties":{}},"AdjustDto":{"type":"object","properties":{}},"ExtraFeeDto":{"type":"object","properties":{}},"ArrivedDto":{"type":"object","properties":{}},"HandoverDto":{"type":"object","properties":{}},"ReasonDto":{"type":"object","properties":{}},"PurchaseDto":{"type":"object","properties":{}},"ParcelDto":{"type":"object","properties":{}},"ParcelStepDto":{"type":"object","properties":{}},"OrderEventDto":{"type":"object","properties":{}},"SignalLabelDto":{"type":"object","properties":{}},"SignalColorDto":{"type":"object","properties":{}},"ImageSearchSignalsDto":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/SignalLabelDto"}},"colors":{"type":"array","items":{"$ref":"#/components/schemas/SignalColorDto"}},"hasBarcode":{"type":"object"}},"required":["labels","colors","hasBarcode"]},"ScanDto":{"type":"object","properties":{"imageUri":{"type":"string"},"signals":{"$ref":"#/components/schemas/ImageSearchSignalsDto"}}},"AdTargetingDto":{"type":"object","properties":{"communes":{"description":"Slugs de communes ciblées","type":"array","items":{"type":"string"}},"categoryIds":{"description":"Ids de catégories de navigation ciblées","type":"array","items":{"type":"string"}},"kinds":{"type":"array","items":{"type":"string","enum":["PRODUCT","SERVICE"]}}}},"CreateAdCampaignDto":{"type":"object","properties":{"itemId":{"type":"string","description":"Article du vendeur à mettre en avant"},"days":{"type":"number","minimum":1,"maximum":30,"description":"Durée de diffusion en jours"},"targeting":{"$ref":"#/components/schemas/AdTargetingDto"}},"required":["itemId","days"]},"UpdateAdCampaignDto":{"type":"object","properties":{"cancel":{"type":"boolean","description":"Annule la campagne"}}},"RegisterDto":{"type":"object","properties":{"fullName":{"type":"string","example":"Awa Konaté"},"phone":{"type":"string","example":"+2250708123456"},"password":{"type":"string","example":"motdepasse123"},"acceptedTermsVersion":{"type":"string","example":"1.0","description":"Version des CGU affichées"},"acceptedPrivacyVersion":{"type":"string","example":"1.0","description":"Version de la politique de confidentialité présentée"}},"required":["fullName","phone","password"]},"LoginDto":{"type":"object","properties":{"phone":{"type":"string","example":"+2250708123456"},"password":{"type":"string"}},"required":["phone","password"]},"LoginEmailDto":{"type":"object","properties":{"email":{"type":"string","example":"admin@generale-ci.com"},"password":{"type":"string"}},"required":["email","password"]},"CheckPhoneDto":{"type":"object","properties":{"phone":{"type":"string","example":"+2250708123456"}},"required":["phone"]},"FirebaseRegisterDto":{"type":"object","properties":{"idToken":{"type":"string","description":"Jeton d'identité Firebase (phone auth)."},"fullName":{"type":"string","example":"Awa Konaté"},"password":{"type":"string","example":"motdepasse123"},"acceptedTermsVersion":{"type":"string","example":"1.0"},"acceptedPrivacyVersion":{"type":"string","example":"1.0"}},"required":["idToken","fullName","password"]},"FirebaseLoginDto":{"type":"object","properties":{"idToken":{"type":"string","description":"Jeton d'identité Firebase (phone auth)."},"newPassword":{"type":"string","description":"Nouveau mot de passe (réinitialisation)."}},"required":["idToken"]},"RequestOtpDto":{"type":"object","properties":{"phone":{"type":"string","example":"+2250708123456"},"purpose":{"type":"string","enum":["REGISTER","LOGIN","RESET_PASSWORD"],"default":"REGISTER"}},"required":["phone","purpose"]},"VerifyOtpDto":{"type":"object","properties":{"phone":{"type":"string","example":"+2250708123456"},"code":{"type":"string","example":"123456"},"purpose":{"type":"string","enum":["REGISTER","LOGIN","RESET_PASSWORD"],"default":"REGISTER"},"newPassword":{"type":"string","description":"Nouveau mot de passe (réinitialisation)."}},"required":["phone","code","purpose"]},"RefreshDto":{"type":"object","properties":{"refreshToken":{"type":"string"}},"required":["refreshToken"]},"LogoutDto":{"type":"object","properties":{"pushToken":{"type":"string","example":"ExpoPushToken[xxxxxxxx]"},"refreshToken":{"type":"string","description":"Session à fermer : seule celle-ci est révoquée (les autres appareils restent connectés)."}}},"ChangePasswordDto":{"type":"object","properties":{"currentPassword":{"type":"string","description":"Mot de passe actuel (requis si le compte en a un)."},"newPassword":{"type":"string"}},"required":["currentPassword","newPassword"]},"PasskeyRegisterVerifyDto":{"type":"object","properties":{"requestId":{"type":"string","description":"Identifiant opaque rendu par /register/options"},"response":{"type":"object","description":"Réponse de navigator.credentials.create()"},"label":{"type":"string","example":"MacBook du bureau"}},"required":["requestId","response"]},"PasskeyLoginVerifyDto":{"type":"object","properties":{"requestId":{"type":"string"},"response":{"type":"object","description":"Réponse de navigator.credentials.get()"}},"required":["requestId","response"]},"PasskeyRenameDto":{"type":"object","properties":{"label":{"type":"string","example":"iPhone 15 Pro"}},"required":["label"]},"UpdateProfileDto":{"type":"object","properties":{"fullName":{"type":"string"},"location":{"type":"string"}}},"UpdateLocaleDto":{"type":"object","properties":{"locale":{"type":"string","enum":["fr","en"]}},"required":["locale"]},"AcceptTermsDto":{"type":"object","properties":{"termsVersion":{"type":"string","example":"1.0","description":"Version des CGU acceptées"},"privacyVersion":{"type":"string","example":"1.0","description":"Version de la politique de confidentialité présentée"}},"required":["termsVersion"]},"UpdateDeviceLocationDto":{"type":"object","properties":{"lat":{"type":"number","example":5.36},"lng":{"type":"number","example":-3.97},"accuracy":{"type":"number","description":"Précision GPS en mètres"}},"required":["lat","lng"]},"UpsertAddressDto":{"type":"object","properties":{"label":{"type":"string"},"recipient":{"type":"string"},"line":{"type":"string"},"city":{"type":"string"},"phone":{"type":"string"},"isDefault":{"type":"boolean"},"communeSlug":{"type":"string","example":"cocody","description":"Slug commune du référentiel Grand Abidjan"},"quartier":{"type":"string"},"quartierId":{"type":"string"},"lat":{"type":"number"},"lng":{"type":"number"},"placeLabel":{"type":"string"},"pinned":{"type":"boolean","description":"Le point lat/lng a été posé exprès (GPS précis ou épingle) : marque l’adresse comme précise."}},"required":["label","recipient","line","city","phone","communeSlug"]},"UpdateAddressDto":{"type":"object","properties":{"label":{"type":"string"},"recipient":{"type":"string"},"line":{"type":"string"},"city":{"type":"string"},"phone":{"type":"string"},"isDefault":{"type":"boolean"},"communeSlug":{"type":"string","description":"Slug commune du référentiel Grand Abidjan"},"quartier":{"type":"string"},"quartierId":{"type":"string"},"lat":{"type":"number"},"lng":{"type":"number"},"placeLabel":{"type":"string"},"pinned":{"type":"boolean","description":"Le point lat/lng a été posé exprès (GPS précis ou épingle) : marque l’adresse comme précise."}}},"RegisterDeviceDto":{"type":"object","properties":{"token":{"type":"string","example":"ExpoPushToken[xxxxxxxx]"},"platform":{"type":"string","enum":["IOS","ANDROID"]},"orderSounds":{"type":"boolean","description":"L’app embarque les sonneries de commande."},"roadsideSiren":{"type":"boolean","description":"L’app embarque la sirène de dépannage (1.0.6+)."},"appVersion":{"type":"string","description":"Version du binaire (« 1.0.6 »), pour les pushs « nouvelle version »."}},"required":["token","platform"]},"UnregisterDeviceDto":{"type":"object","properties":{"token":{"type":"string","example":"ExpoPushToken[xxxxxxxx]"}},"required":["token"]},"UpdateNotificationPrefDto":{"type":"object","properties":{"maintenanceReminders":{"type":"boolean"},"orders":{"type":"boolean"},"live":{"type":"boolean"},"promo":{"type":"boolean"},"ai":{"type":"boolean"},"engagement":{"type":"boolean"},"marketing":{"type":"boolean"},"whatsappProducts":{"type":"boolean"},"quietHourStart":{"type":"number","minimum":0,"maximum":23},"quietHourEnd":{"type":"number","minimum":0,"maximum":23}}},"BulkFilterDto":{"type":"object","properties":{"q":{"type":"string"},"active":{"type":"boolean"},"stock":{"type":"string","enum":["in","low","out"]},"noPhoto":{"type":"boolean"},"noCategory":{"type":"boolean"},"categoryId":{"type":"string"}}},"BulkPriceDto":{"type":"object","properties":{"mode":{"type":"string","enum":["percent","set"]},"value":{"type":"number","description":"Pourcentage (−90 à +500) ou prix fixe en FCFA."}},"required":["mode","value"]},"BulkItemsDto":{"type":"object","properties":{"ids":{"maxItems":500,"type":"array","items":{"type":"string"}},"filter":{"$ref":"#/components/schemas/BulkFilterDto"},"dryRun":{"type":"boolean","description":"Compter sans rien écrire."},"deliveryLarge":{"type":"boolean","description":"Colis volumineux : livré par la boutique."},"shopDeliveryFee":{"type":"object"},"pickupPointId":{"type":"object","description":"Dépôt d’où partent ces articles."},"active":{"type":"boolean"},"categoryId":{"type":"string","description":"Nouveau rayon."},"outOfStock":{"type":"boolean","description":"Mettre en rupture (stock 0, versions comprises)."},"price":{"$ref":"#/components/schemas/BulkPriceDto"}}},"ItemVariantDto":{"type":"object","properties":{"id":{"type":"string","description":"Id d’une variante existante ; absent = création."},"label":{"type":"string","description":"Libellé affiché (« 256 Go », « Rouge », « XL »)."},"price":{"type":"number","description":"Prix ABSOLU en FCFA de cette variante (jamais un écart)."},"stock":{"type":"number","description":"Stock de cette variante ; absent = non suivi."},"imageUrl":{"type":"string","description":"Photo propre à la variante ; absente = galerie du produit."},"position":{"type":"number"},"attributes":{"type":"object","description":"Couleur × taille : { \"Couleur\": \"Rouge\", \"Taille\": \"M\" }. Validé en lot : si une variante n’a pas les mêmes axes, aucune n’en garde."}},"required":["label","price"]},"ItemOptionValueDto":{"type":"object","properties":{"label":{"type":"string"},"priceDelta":{"type":"number","description":"Variation de prix (FCFA). Pour QUANTITY_TIER = prix unitaire du palier."},"position":{"type":"number"},"swatch":{"type":"string","description":"Couleur hex pour un type SWATCH."},"templateUrl":{"type":"string","description":"Gabarit (mockup) pour l’aperçu AUTO."},"placement":{"type":"object","description":"Rectangle { x,y,w,h,rotation?,fit? } en % du gabarit."}},"required":["label","priceDelta"]},"ItemOptionDto":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["SELECT","SWATCH","TOGGLE","QUANTITY_TIER","TEXT"]},"renderAs":{"type":"string","enum":["BUTTONS","DROPDOWN","SWATCH","TOGGLE","STEPPER"]},"required":{"type":"boolean"},"position":{"type":"number"},"values":{"type":"array","items":{"$ref":"#/components/schemas/ItemOptionValueDto"}}},"required":["name","type","renderAs","values"]},"UpsertItemDto":{"type":"object","properties":{"kind":{"type":"string","enum":["product","service"]},"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"oldPrice":{"type":"number"},"priceSuffix":{"type":"string"},"availability":{"type":"string","description":"Disponibilité d’un service, texte FR lisible (« Du 13 juil. au 30 août »)."},"categoryId":{"type":"string"},"stock":{"type":"number"},"digitalType":{"type":"string","enum":["CODE","CONTENT"],"nullable":true,"description":"Livré par code (CODE) ou par contenu (CONTENT). Absent = article ordinaire."},"deliveryEta":{"type":"string","description":"Délai annoncé à l’acheteur, texte libre (« 15 minutes »)."},"imageUrl":{"type":"string","description":"URL publique de la photo (upload presign products)."},"images":{"description":"Galerie d’images (URLs publiques) ; la 1ʳᵉ sert de couverture si imageUrl est absent.","type":"array","items":{"type":"string"}},"active":{"type":"boolean","description":"Activer/désactiver l’article sans le supprimer."},"brand":{"type":"string","description":"Marque du produit. Reprise telle quelle dans le flux catalogue publicitaire (Meta/Google la demandent) ; laisser vide pour un article sans marque."},"gradient":{"type":"array","items":{"type":"string"}},"variants":{"type":"array","items":{"type":"string"}},"labels":{"type":"array","items":{"type":"string"}},"badges":{"type":"array","items":{"type":"string"}},"condition":{"type":"string","enum":["NEUF","COMME_NEUF","PREMIER_CHOIX","DEUXIEME_CHOIX","BON_ETAT","ETAT_CORRECT"],"description":"État friperie / seconde main (null = neuf/non précisé)."},"conditionNote":{"type":"string","description":"Note libre décrivant l’état / un défaut du produit d’occasion."},"deliveryLarge":{"type":"boolean","description":"Gros colis ne passant pas à moto : la boutique assure la livraison et les retours (le partenaire CLT n’intervient pas). false = colis moto (grille CLT auto)."},"perishable":{"type":"boolean","description":"Produit comestible ou périssable : exclut le retour pour changement d’avis."},"shopDeliveryFee":{"type":"number","description":"Tarif de livraison boutique (FCFA) quand deliveryLarge = true."},"madeToOrder":{"type":"boolean","description":"Fait à la commande : pas de décrément de stock, prix recalculé selon les options."},"leadTimeDays":{"type":"number","description":"Délai de fabrication en jours (affiché à la place du stock)."},"previewMode":{"type":"string","enum":["NONE","AUTO","BAT"],"description":"Aperçu : NONE, AUTO (composé dans un gabarit), BAT (validation vendeur, v2)."},"artworkFormats":{"description":"Formats de fichier acceptés pour le design de l’acheteur (pdf, png, jpg…).","type":"array","items":{"type":"string"}},"artworkRequired":{"type":"boolean","description":"Un fichier design de l’acheteur est-il obligatoire ?"},"artworkMinCount":{"type":"number","description":"Nombre MINIMUM de fichiers attendus (album 20 vues → 20)."},"artworkMaxCount":{"type":"number","description":"Nombre MAXIMUM de fichiers acceptés."},"artworkNote":{"type":"string","description":"Consigne affichée à l’acheteur (« 20 photos nettes, format portrait »)."},"onlinePaymentOnly":{"type":"boolean","description":"Paiement en ligne obligatoire (COD bloqué). Posé d’office sur un madeToOrder."},"variantItems":{"description":"Variantes vendables à prix absolu (stockage, couleur, taille). Remplace la liste : une variante retirée est DÉSACTIVÉE, jamais supprimée (des commandes la référencent). Le prix et le stock de l’article deviennent les agrégats (min / somme).","type":"array","items":{"$ref":"#/components/schemas/ItemVariantDto"}},"options":{"description":"Options de personnalisation (remplace toutes les options existantes à la mise à jour).","type":"array","items":{"$ref":"#/components/schemas/ItemOptionDto"}}},"required":["kind","name","description","price"]},"QuickEditDto":{"type":"object","properties":{"price":{"type":"number","description":"Prix en FCFA."},"stock":{"type":"object","nullable":true,"description":"Stock ; null = non suivi."}}},"InitUploadDto":{"type":"object","properties":{"contentType":{"type":"string","example":"video/mp4"}},"required":["contentType"]},"SignPartDto":{"type":"object","properties":{"objectKey":{"type":"string"},"uploadId":{"type":"string"},"partNumber":{"type":"number"}},"required":["objectKey","uploadId","partNumber"]},"CompletedPartDto":{"type":"object","properties":{}},"CompleteUploadDto":{"type":"object","properties":{"objectKey":{"type":"string"},"uploadId":{"type":"string"},"parts":{"type":"array","items":{"$ref":"#/components/schemas/CompletedPartDto"}}},"required":["objectKey","uploadId","parts"]},"EditClipDto":{"type":"object","properties":{}},"TextOverlayDto":{"type":"object","properties":{}},"MusicTrackDto":{"type":"object","properties":{}},"CreateShortDto":{"type":"object","properties":{"clips":{"type":"array","items":{"$ref":"#/components/schemas/EditClipDto"}},"textOverlays":{"type":"array","items":{"$ref":"#/components/schemas/TextOverlayDto"}},"musicTrack":{"$ref":"#/components/schemas/MusicTrackDto"},"originalVolume":{"type":"number"},"coverTimeMs":{"type":"number"},"linkedItemId":{"type":"string"},"linkedShop":{"type":"boolean","description":"Short de boutique : sans produit, le bouton ouvre le magasin."},"title":{"type":"string","description":"Titre d’un short de boutique."}},"required":["clips","textOverlays","originalVolume","coverTimeMs"]},"CreateStockAlertDto":{"type":"object","properties":{"note":{"type":"string","description":"Précision libre du client (« pointure 45 »), rappelée dans la notification."}}},"CreateReviewDto":{"type":"object","properties":{"rating":{"type":"number","minimum":1,"maximum":5,"example":5},"comment":{"type":"string","maxLength":2000},"photos":{"type":"array","items":{"type":"string"}}},"required":["rating"]},"SellerReplyDto":{"type":"object","properties":{"body":{"type":"string","minLength":2,"maxLength":1000}},"required":["body"]},"OrderReviewItemDto":{"type":"object","properties":{"itemId":{"type":"string"},"rating":{"type":"number","minimum":1,"maximum":5,"example":5},"tags":{"example":["quality_good","well_packed"],"type":"array","items":{"type":"string"}},"comment":{"type":"string","maxLength":2000},"photos":{"type":"array","items":{"type":"string"}}},"required":["itemId","rating"]},"CreateOrderReviewDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/OrderReviewItemDto"}},"deliveryRating":{"type":"number","minimum":1,"maximum":5},"deliveryTags":{"example":["fast","courteous"],"type":"array","items":{"type":"string"}}},"required":["items"]},"OptionSelectionDto":{"type":"object","properties":{"optionId":{"type":"string"},"valueId":{"type":"string","description":"Id de la valeur choisie (SELECT/SWATCH/TOGGLE/palier)."},"text":{"type":"string","description":"Texte libre (option TEXT)."}},"required":["optionId"]},"CartItemDto":{"type":"object","properties":{"itemId":{"type":"string"},"name":{"type":"string"},"price":{"type":"number"},"priceSuffix":{"type":"string"},"kind":{"type":"string","enum":["product","service"]},"gradient":{"type":"array","items":{"type":"string"}},"imageUrl":{"type":"string"},"qty":{"type":"number"},"variant":{"type":"string","description":"Libellé de variante (héritage) — le serveur le réécrit depuis `variantId`."},"variantId":{"type":"string","description":"Variante vendable choisie. Son prix ABSOLU remplace celui de l’article ; obligatoire dès que l’article en propose."},"customAmount":{"type":"number","description":"Carte à montant libre : montant entier choisi au curseur (unités de la devise de l’article). Le prix est recalculé serveur."},"bookingStart":{"type":"string","description":"Début de réservation (service), date ISO 8601"},"bookingEnd":{"type":"string","description":"Fin de réservation (service), date ISO 8601"},"optionSelections":{"description":"Choix des options de personnalisation (id de valeur ou texte libre).","type":"array","items":{"$ref":"#/components/schemas/OptionSelectionDto"}},"artworkUrls":{"description":"Fichier(s) design de l’acheteur (URLs MinIO).","type":"array","items":{"type":"string"}},"previewUrl":{"type":"string","description":"Aperçu composé (AUTO) validé à la commande (URL MinIO)."}},"required":["itemId","name","price","kind","gradient","qty"]},"CreateOrderDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CartItemDto"}},"paymentMethod":{"type":"string","enum":["wave","cod"]},"deliveryFee":{"type":"number","description":"Ignoré — frais de livraison calculés côté serveur selon la commune."},"promoCode":{"type":"string","description":"Code promo (un seul par commande)"},"useCredit":{"type":"boolean","description":"Utiliser le crédit du wallet"},"codeBySms":{"type":"boolean","description":"Recevoir aussi le code par SMS (frais `digital.smsCodeFee`, ignoré sans article à code)."},"payAtHandover":{"type":"boolean","description":"Payer par Wave AU MOMENT de la remise du colis. Accepté seulement au-dessus du seuil de gros montant, et jamais pour du digital."},"express":{"type":"boolean","description":"Livraison Express (le jour même, supplément `delivery.expressSurcharge`). Refusée (400 EXPRESS_UNAVAILABLE) si le devis ne la propose plus."},"addressId":{"type":"string","description":"Id de l’adresse de livraison"},"liveRoomId":{"type":"string","description":"Achat direct pendant un live : id de la salle (diffusion du stock temps réel)."},"attributionFbc":{"type":"string","description":"Identifiant de clic Meta, DÉJÀ au format `fb.1.<ms>.<fbclid>` (construit par la page web qui a capté le clic — elle seule connaît l’horodatage). Relie la vente à la publicité."},"acquisition":{"type":"object","description":"Lien suivi d’où vient la commande (`utm_*`), nettoyé par le serveur."},"attributionGclid":{"type":"string","description":"Identifiant de clic Google (`gclid`)."},"adConsent":{"type":"boolean","description":"Consentement publicitaire donné sur le site (bandeau « Cookies et publicité »). Sans `true`, aucun événement de conversion ne part chez Meta pour cette commande."},"attributionFbp":{"type":"string","description":"Cookie `_fbp` du pixel Meta (lu seulement avec `adConsent`)."}},"required":["items","paymentMethod"]},"DeliveryQuoteItemDto":{"type":"object","properties":{"itemId":{"type":"string"},"qty":{"type":"number","default":1},"variantId":{"type":"string"}},"required":["itemId"]},"DeliveryQuoteDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/DeliveryQuoteItemDto"}},"communeSlug":{"type":"string","description":"Slug commune du client (adresse sélectionnée)"},"express":{"type":"boolean","description":"Deviser avec la livraison Express (si elle est possible)."}},"required":["items"]},"CancelOrderDto":{"type":"object","properties":{"reason":{"type":"string","description":"Clé du motif d’annulation."}}},"ConfirmHandoverDto":{"type":"object","properties":{"code":{"type":"string","description":"Code à 4 chiffres affiché dans l’app du client."}},"required":["code"]},"AttachInvoiceDto":{"type":"object","properties":{"url":{"type":"string","description":"URL publique du document (presign « invoice »)."}},"required":["url"]},"RelayUpdateDto":{"type":"object","properties":{}},"CartLineDto":{"type":"object","properties":{"itemId":{"type":"string"},"sellerId":{"type":"string"},"categoryId":{"type":"string"},"unitPrice":{"type":"number"},"qty":{"type":"number"}},"required":["itemId","sellerId","unitPrice","qty"]},"PreviewIncentiveDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/CartLineDto"}},"code":{"type":"string","description":"Un seul code par commande"},"useCredit":{"type":"boolean","description":"Appliquer le crédit du wallet"}},"required":["lines"]},"SimulatePromoDto":{"type":"object","properties":{"type":{"type":"string","enum":["PERCENT","FIXED"]},"value":{"type":"number"},"basket":{"type":"number","description":"Panier de référence en FCFA"},"categoryId":{"type":"string"}},"required":["type","value"]},"UpsertPromoCodeDto":{"type":"object","properties":{"code":{"type":"string"},"type":{"type":"string","enum":["PERCENT","FIXED"]},"value":{"type":"number","description":"% si PERCENT, FCFA si FIXED"},"categoryId":{"type":"string"},"minOrder":{"type":"number"},"maxUsesTotal":{"type":"number"},"maxUsesPerUser":{"type":"number"},"budgetCap":{"type":"number"},"startsAt":{"type":"string"},"endsAt":{"type":"string"},"active":{"type":"boolean"}},"required":["code","type","value"]},"UpdateReferralRuleDto":{"type":"object","properties":{"refereeAmount":{"type":"number"},"referrerAmount":{"type":"number"},"minOrderAmount":{"type":"number"},"creditTtlDays":{"type":"number"},"active":{"type":"boolean"}}},"ApplyInfluencerDto":{"type":"object","properties":{"pitch":{"type":"string","description":"Audience, réseaux, façon de promouvoir"}}},"RequestInfluencerPayoutDto":{"type":"object","properties":{"amount":{"type":"number","example":5000,"description":"Montant brut retiré (FCFA)"},"phone":{"type":"string","example":"+2250700000000","description":"Numéro Wave du bénéficiaire"},"idempotencyKey":{"type":"string","description":"Clé d'idempotence : un identifiant par geste utilisateur. Rejouer la même clé rend le retrait déjà créé au lieu d'en créer un second."}},"required":["amount","phone"]},"ApproveInfluencerDto":{"type":"object","properties":{"followerPct":{"type":"number","example":5,"description":"Réduction offerte à l'audience (%)"},"influencerPct":{"type":"number","example":5,"description":"Gain de l'influenceur (%)"},"note":{"type":"string"}},"required":["followerPct","influencerPct"]},"SuspendInfluencerDto":{"type":"object","properties":{"note":{"type":"string"}}},"CreateApiKeyDto":{"type":"object","properties":{"sandbox":{"type":"boolean"},"name":{"type":"string","example":"Intégration ERP","description":"Libellé de la clé."},"scopes":{"type":"array","example":["items:read","items:write"],"description":"Portées accordées à la clé.","items":{"type":"string","enum":["items:read","items:write","orders:read","orders:write"]}}},"required":["name","scopes"]},"CreateConnectionDto":{"type":"object","properties":{"platform":{"type":"string","enum":["SHOPIFY","WOOCOMMERCE","ODOO"]},"config":{"type":"object","additionalProperties":true,"description":"Identifiants de la plateforme (forme selon `platform`)."}},"required":["platform","config"]},"PartnerCreateItemDto":{"type":"object","properties":{"kind":{"type":"string","enum":["product","service"]},"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"oldPrice":{"type":"number"},"priceSuffix":{"type":"string"},"availability":{"type":"string","description":"Disponibilité d’un service, texte FR lisible (« Du 13 juil. au 30 août »)."},"categoryId":{"type":"string"},"stock":{"type":"number"},"digitalType":{"type":"string","enum":["CODE","CONTENT"],"nullable":true,"description":"Livré par code (CODE) ou par contenu (CONTENT). Absent = article ordinaire."},"deliveryEta":{"type":"string","description":"Délai annoncé à l’acheteur, texte libre (« 15 minutes »)."},"imageUrl":{"type":"string","description":"URL publique de la photo (upload presign products)."},"images":{"description":"Galerie d’images (URLs publiques) ; la 1ʳᵉ sert de couverture si imageUrl est absent.","type":"array","items":{"type":"string"}},"active":{"type":"boolean","description":"Activer/désactiver l’article sans le supprimer."},"brand":{"type":"string","description":"Marque du produit. Reprise telle quelle dans le flux catalogue publicitaire (Meta/Google la demandent) ; laisser vide pour un article sans marque."},"gradient":{"type":"array","items":{"type":"string"}},"variants":{"type":"array","items":{"type":"string"}},"labels":{"type":"array","items":{"type":"string"}},"badges":{"type":"array","items":{"type":"string"}},"condition":{"type":"string","enum":["NEUF","COMME_NEUF","PREMIER_CHOIX","DEUXIEME_CHOIX","BON_ETAT","ETAT_CORRECT"],"description":"État friperie / seconde main (null = neuf/non précisé)."},"conditionNote":{"type":"string","description":"Note libre décrivant l’état / un défaut du produit d’occasion."},"deliveryLarge":{"type":"boolean","description":"Gros colis ne passant pas à moto : la boutique assure la livraison et les retours (le partenaire CLT n’intervient pas). false = colis moto (grille CLT auto)."},"perishable":{"type":"boolean","description":"Produit comestible ou périssable : exclut le retour pour changement d’avis."},"shopDeliveryFee":{"type":"number","description":"Tarif de livraison boutique (FCFA) quand deliveryLarge = true."},"madeToOrder":{"type":"boolean","description":"Fait à la commande : pas de décrément de stock, prix recalculé selon les options."},"leadTimeDays":{"type":"number","description":"Délai de fabrication en jours (affiché à la place du stock)."},"previewMode":{"type":"string","enum":["NONE","AUTO","BAT"],"description":"Aperçu : NONE, AUTO (composé dans un gabarit), BAT (validation vendeur, v2)."},"artworkFormats":{"description":"Formats de fichier acceptés pour le design de l’acheteur (pdf, png, jpg…).","type":"array","items":{"type":"string"}},"artworkRequired":{"type":"boolean","description":"Un fichier design de l’acheteur est-il obligatoire ?"},"artworkMinCount":{"type":"number","description":"Nombre MINIMUM de fichiers attendus (album 20 vues → 20)."},"artworkMaxCount":{"type":"number","description":"Nombre MAXIMUM de fichiers acceptés."},"artworkNote":{"type":"string","description":"Consigne affichée à l’acheteur (« 20 photos nettes, format portrait »)."},"onlinePaymentOnly":{"type":"boolean","description":"Paiement en ligne obligatoire (COD bloqué). Posé d’office sur un madeToOrder."},"variantItems":{"description":"Variantes vendables à prix absolu (stockage, couleur, taille). Remplace la liste : une variante retirée est DÉSACTIVÉE, jamais supprimée (des commandes la référencent). Le prix et le stock de l’article deviennent les agrégats (min / somme).","type":"array","items":{"$ref":"#/components/schemas/ItemVariantDto"}},"options":{"description":"Options de personnalisation (remplace toutes les options existantes à la mise à jour).","type":"array","items":{"$ref":"#/components/schemas/ItemOptionDto"}},"sourceRef":{"type":"string","description":"Référence du produit dans ton système (SKU, id interne)"}},"required":["kind","name","description","price"]},"PartnerUpdateItemDto":{"type":"object","properties":{"kind":{"type":"string","enum":["product","service"]},"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"oldPrice":{"type":"number"},"priceSuffix":{"type":"string"},"availability":{"type":"string","description":"Disponibilité d’un service, texte FR lisible (« Du 13 juil. au 30 août »)."},"categoryId":{"type":"string"},"stock":{"type":"number"},"digitalType":{"type":"string","enum":["CODE","CONTENT"],"nullable":true,"description":"Livré par code (CODE) ou par contenu (CONTENT). Absent = article ordinaire."},"deliveryEta":{"type":"string","description":"Délai annoncé à l’acheteur, texte libre (« 15 minutes »)."},"imageUrl":{"type":"string","description":"URL publique de la photo (upload presign products)."},"images":{"description":"Galerie d’images (URLs publiques) ; la 1ʳᵉ sert de couverture si imageUrl est absent.","type":"array","items":{"type":"string"}},"active":{"type":"boolean","description":"Activer/désactiver l’article sans le supprimer."},"brand":{"type":"string","description":"Marque du produit. Reprise telle quelle dans le flux catalogue publicitaire (Meta/Google la demandent) ; laisser vide pour un article sans marque."},"gradient":{"type":"array","items":{"type":"string"}},"variants":{"type":"array","items":{"type":"string"}},"labels":{"type":"array","items":{"type":"string"}},"badges":{"type":"array","items":{"type":"string"}},"condition":{"type":"string","enum":["NEUF","COMME_NEUF","PREMIER_CHOIX","DEUXIEME_CHOIX","BON_ETAT","ETAT_CORRECT"],"description":"État friperie / seconde main (null = neuf/non précisé)."},"conditionNote":{"type":"string","description":"Note libre décrivant l’état / un défaut du produit d’occasion."},"deliveryLarge":{"type":"boolean","description":"Gros colis ne passant pas à moto : la boutique assure la livraison et les retours (le partenaire CLT n’intervient pas). false = colis moto (grille CLT auto)."},"perishable":{"type":"boolean","description":"Produit comestible ou périssable : exclut le retour pour changement d’avis."},"shopDeliveryFee":{"type":"number","description":"Tarif de livraison boutique (FCFA) quand deliveryLarge = true."},"madeToOrder":{"type":"boolean","description":"Fait à la commande : pas de décrément de stock, prix recalculé selon les options."},"leadTimeDays":{"type":"number","description":"Délai de fabrication en jours (affiché à la place du stock)."},"previewMode":{"type":"string","enum":["NONE","AUTO","BAT"],"description":"Aperçu : NONE, AUTO (composé dans un gabarit), BAT (validation vendeur, v2)."},"artworkFormats":{"description":"Formats de fichier acceptés pour le design de l’acheteur (pdf, png, jpg…).","type":"array","items":{"type":"string"}},"artworkRequired":{"type":"boolean","description":"Un fichier design de l’acheteur est-il obligatoire ?"},"artworkMinCount":{"type":"number","description":"Nombre MINIMUM de fichiers attendus (album 20 vues → 20)."},"artworkMaxCount":{"type":"number","description":"Nombre MAXIMUM de fichiers acceptés."},"artworkNote":{"type":"string","description":"Consigne affichée à l’acheteur (« 20 photos nettes, format portrait »)."},"onlinePaymentOnly":{"type":"boolean","description":"Paiement en ligne obligatoire (COD bloqué). Posé d’office sur un madeToOrder."},"variantItems":{"description":"Variantes vendables à prix absolu (stockage, couleur, taille). Remplace la liste : une variante retirée est DÉSACTIVÉE, jamais supprimée (des commandes la référencent). Le prix et le stock de l’article deviennent les agrégats (min / somme).","type":"array","items":{"$ref":"#/components/schemas/ItemVariantDto"}},"options":{"description":"Options de personnalisation (remplace toutes les options existantes à la mise à jour).","type":"array","items":{"$ref":"#/components/schemas/ItemOptionDto"}}}},"CreateCommentDto":{"type":"object","properties":{}},"FollowPrefsDto":{"type":"object","properties":{}},"UpdateShortDto":{"type":"object","properties":{"name":{"type":"string"},"published":{"type":"boolean"}}},"PinProductDto":{"type":"object","properties":{}},"StartLiveDto":{"type":"object","properties":{}},"PatchLiveDto":{"type":"object","properties":{}},"TrackEventDto":{"type":"object","properties":{}},"UpsertPreferencesDto":{"type":"object","properties":{}},"InviteMemberDto":{"type":"object","properties":{"phone":{"type":"string","example":"0712345678"},"permissions":{"example":["orders.prepare","orders.returns"],"type":"array","items":{"type":"string"}},"notify":{"type":"object","example":{"orderRing":true}}},"required":["phone","permissions"]},"UpdateMemberDto":{"type":"object","properties":{"permissions":{"type":"array","items":{"type":"string"}},"notify":{"type":"object"}}},"MyNotifyDto":{"type":"object","properties":{"notify":{"type":"object","example":{"orderRing":false}}},"required":["notify"]},"TransferShopDto":{"type":"object","properties":{"memberId":{"type":"string"},"code":{"type":"string","example":"123456"}},"required":["memberId","code"]},"AddSellerMemberDto":{"type":"object","properties":{"phone":{"type":"string"},"role":{"type":"string","enum":["OWNER","ORDERS","FINANCE","CATALOG"]}},"required":["phone","role"]},"OpeningHoursDto":{"type":"object","properties":{"days":{"description":"Jours ouverts (1=lun … 7=dim)","type":"array","items":{"type":"number"}},"open":{"type":"string","example":"08:00"},"close":{"type":"string","example":"19:00"}},"required":["days","open","close"]},"CreateSellerDto":{"type":"object","properties":{"name":{"type":"string","example":"Koffi Style"},"acceptedTermsVersion":{"type":"string","example":"1.0","description":"Version des conditions vendeur acceptées"},"communeSlug":{"type":"string","example":"cocody","description":"Slug commune du référentiel Grand Abidjan"},"quartier":{"type":"string","example":"Angré 7e tranche"},"lat":{"type":"number"},"lng":{"type":"number"},"pickupLandmark":{"type":"string","description":"Repère pour le livreur (« après la pharmacie X, portail bleu »)"},"wavePhone":{"type":"string","example":"+225 07 01 23 45 67","description":"Numéro Wave pour recevoir les paiements"},"description":{"type":"string","description":"Présentation courte de la boutique"},"logoUrl":{"type":"string"},"coverUrl":{"type":"string"},"highValueThreshold":{"type":"number","description":"Seuil « gros montant » propre à la boutique (FCFA). Au-dessus : Wave seul (d’avance ou à la remise) et livraison possible par la boutique. Vide = réglage plateforme."},"openingHours":{"$ref":"#/components/schemas/OpeningHoursDto"}},"required":["name","acceptedTermsVersion","communeSlug","wavePhone"]},"UpdateSellerDto":{"type":"object","properties":{"orderSound":{"type":"string","description":"Sonnerie des nouvelles commandes : cloche, carillon, caisse, alarme, ou « default » (son du téléphone)."},"name":{"type":"string"},"communeSlug":{"type":"string"},"quartier":{"type":"string"},"lat":{"type":"number"},"lng":{"type":"number"},"pickupLandmark":{"type":"string","description":"Repère pour le livreur (« après la pharmacie X, portail bleu »)"},"wavePhone":{"type":"string"},"description":{"type":"string"},"logoUrl":{"type":"string"},"coverUrl":{"type":"string"},"highValueThreshold":{"type":"number","description":"Seuil « gros montant » propre à la boutique (FCFA). Au-dessus : Wave seul (d’avance ou à la remise) et livraison possible par la boutique. Vide = réglage plateforme."},"hideExactStock":{"type":"boolean","description":"Masquer le nombre exact d’articles restants (« En stock » / « Rupture » seulement). Réservé aux boutiques certifiées « Officiel »."},"metaPixelId":{"type":"string","description":"Pixel Meta de la boutique (chiffres seuls). Déclenché sur les pages web publiques de la boutique, après consentement du visiteur. Chaîne vide pour le retirer."},"googleTagId":{"type":"string","description":"Étiquette Google Ads / GA4 de la boutique (AW-…, G-…, GT-…). Chaîne vide pour la retirer."},"openingHours":{"$ref":"#/components/schemas/OpeningHoursDto"}}},"BroadcastGeoDto":{"type":"object","properties":{"communes":{"description":"Slugs de communes ciblées","type":"array","items":{"type":"string"}}}},"EstimateBroadcastDto":{"type":"object","properties":{"audience":{"type":"string","enum":["CUSTOMERS","PREFERENCES","SHORT_VIEWERS"]},"shortId":{"type":"string","description":"Short à relancer — requis si audience = SHORT_VIEWERS. Le serveur vérifie qu’il appartient bien à la boutique."},"geoFilter":{"$ref":"#/components/schemas/BroadcastGeoDto"}},"required":["audience"]},"BroadcastTargetDto":{"type":"object","properties":{"type":{"type":"string","enum":["seller","item","short","none"]},"itemId":{"type":"string","description":"Requis si type = item"},"shortId":{"type":"string","description":"Requis si type = short"}},"required":["type"]},"CreateBroadcastDto":{"type":"object","properties":{"audience":{"type":"string","enum":["CUSTOMERS","PREFERENCES","SHORT_VIEWERS"]},"shortId":{"type":"string","description":"Short à relancer — requis si audience = SHORT_VIEWERS. Le serveur vérifie qu’il appartient bien à la boutique."},"geoFilter":{"$ref":"#/components/schemas/BroadcastGeoDto"},"title":{"type":"string","example":"Nouveaux pagnes en boutique"},"body":{"type":"string","example":"Arrivage du jour : 15 modèles à partir de 8 000 F."},"target":{"description":"Redirection au tap : boutique du vendeur, un de ses produits, un de ses shorts, ou rien.","allOf":[{"$ref":"#/components/schemas/BroadcastTargetDto"}]}},"required":["audience","title","body"]},"RejectBroadcastDto":{"type":"object","properties":{"reason":{"type":"string","example":"Promesse de gain irréaliste"}},"required":["reason"]},"SignalDto":{"type":"object","properties":{"type":{"type":"string","enum":["IMPRESSION","VIEW","CLICK","ADD_TO_CART","HEART","COMMENT","PURCHASE","FOLLOW","SHARE"]},"surface":{"type":"string","enum":["HOME","SEARCH","LIVE","SHORT","PRODUCT","CATEGORY"]},"itemId":{"type":"string"},"sellerId":{"type":"string"},"shortId":{"type":"string","description":"Short d’où vient le signal (stats par short et relance de ses spectateurs)."},"liveRoomId":{"type":"string"},"categoryId":{"type":"string"}},"required":["type","surface"]},"TrackSignalsDto":{"type":"object","properties":{"signals":{"description":"Lot de signaux (max 100)","type":"array","items":{"$ref":"#/components/schemas/SignalDto"}}},"required":["signals"]},"SubmitVerificationDto":{"type":"object","properties":{"idDocType":{"type":"string","description":"Pièce présentée : CNI (recto+verso), PASSPORT (page photo), ATTESTATION. Dit à l’admin si le dossier est complet.","enum":["CNI","PASSPORT","ATTESTATION"]},"idDocKeys":{"description":"Clés d’objet MinIO (privées) des photos/PDF de pièce d’identité","type":"array","items":{"type":"string"}},"businessDocKeys":{"description":"Registre de commerce / justificatif d’activité (optionnel)","type":"array","items":{"type":"string"}}},"required":["idDocKeys"]},"ReviewVerificationDto":{"type":"object","properties":{"action":{"type":"string","enum":["approve","reject","revoke"]},"note":{"type":"string","description":"Motif renvoyé au vendeur (rejet / révocation)"}},"required":["action"]},"SetOfficialDto":{"type":"object","properties":{"official":{"type":"boolean"}},"required":["official"]},"CloseSupportDto":{"type":"object","properties":{}},"SendSupportMessageDto":{"type":"object","properties":{}},"SupportDecisionDto":{"type":"object","properties":{}},"SupportProposalDto":{"type":"object","properties":{}},"SupportRelayDto":{"type":"object","properties":{}},"AnswerDeliveryQuestionDto":{"type":"object","properties":{}},"AdminSupportMessageDto":{"type":"object","properties":{}},"AdminSupportDecisionDto":{"type":"object","properties":{}},"AdminDeliveryAnswerDto":{"type":"object","properties":{}},"RegisterTokenDto":{"type":"object","properties":{}},"UpdateWeightsDto":{"type":"object","properties":{}},"CreateOverrideDto":{"type":"object","properties":{}},"CreateEndpointDto":{"type":"object","properties":{}},"ChatAttachmentDto":{"type":"object","properties":{"type":{"type":"string","enum":["image","file"]},"url":{"type":"string","description":"URL publique de la pièce jointe"},"name":{"type":"string"},"mimeType":{"type":"string"}},"required":["type","url"]},"ChatRefDto":{"type":"object","properties":{"itemId":{"type":"string","description":"id de l'article référencé"},"label":{"type":"string","description":"Nom de l'article (aide au contexte)"}},"required":["itemId"]},"ChatInputDto":{"type":"object","properties":{"text":{"type":"string","description":"Message du client (peut être vide si attachments)"},"capabilities":{"type":"array","items":{"type":"string","enum":["interactive_cards"]}},"conversationId":{"type":"string","description":"Fil de conversation (mémoire serveur par thread)"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ChatAttachmentDto"}},"progressToken":{"type":"string","description":"Jeton hex aléatoire pour la progression temps réel"},"refs":{"description":"Articles référencés par tap sur une carte","type":"array","items":{"$ref":"#/components/schemas/ChatRefDto"}}},"required":["text"]},"AnswerDto":{"type":"object","properties":{}},"RequestDeletionDto":{"type":"object","properties":{"reason":{"type":"string"}}},"IngestDto":{"type":"object","properties":{}},"ConsentDto":{"type":"object","properties":{}},"CreateReportDto":{"type":"object","properties":{"target":{"type":"string","enum":["SHORT","SHORT_COMMENT","REVIEW","LIVE_MESSAGE","LIVE_ROOM","ITEM","SELLER","USER"]},"targetId":{"type":"string"},"reason":{"type":"string","enum":["COUNTERFEIT","SEXUAL_CONTENT","VIOLENCE","SCAM","HARASSMENT","ILLEGAL_PRODUCT","SPAM","OTHER"]},"details":{"type":"string"}},"required":["target","targetId","reason"]},"BlockUserDto":{"type":"object","properties":{"userId":{"type":"string"},"sellerId":{"type":"string"}}},"DecideDto":{"type":"object","properties":{"decision":{"type":"string","enum":["CONTENT_REMOVED","CONTENT_RESTORED","REPORT_REJECTED","USER_WARNED","USER_BANNED","USER_UNBANNED","LIVE_ENDED"]},"reason":{"type":"string"},"note":{"type":"string"}},"required":["decision","reason"]},"CreateAnnouncementDto":{"type":"object","properties":{"kind":{"type":"string","enum":["TEXT","IMAGE","AUDIO","VIDEO","UPDATE"]},"title":{"type":"string","example":"Nouvelle version disponible"},"body":{"type":"object","nullable":true},"mediaUrl":{"type":"object","nullable":true,"description":"Image, audio ou vidéo selon le type"},"thumbnailUrl":{"type":"object","nullable":true,"description":"Vignette d’une VIDEO"},"linkUrl":{"type":"object","nullable":true,"description":"Ouvert au tap"},"minAppVersion":{"type":"object","nullable":true,"description":"UPDATE seulement — comparé à la version installée CÔTÉ APP","example":"1.0.3"},"active":{"type":"boolean","default":true},"sortOrder":{"type":"number","default":0},"startsAt":{"type":"object","nullable":true,"description":"Début de la fenêtre (ISO 8601)"},"endsAt":{"type":"object","nullable":true,"description":"Fin de la fenêtre (ISO 8601)"}},"required":["kind","title"]},"UpdateAnnouncementDto":{"type":"object","properties":{"kind":{"type":"string","enum":["TEXT","IMAGE","AUDIO","VIDEO","UPDATE"]},"title":{"type":"string"},"body":{"type":"object","nullable":true},"mediaUrl":{"type":"object","nullable":true},"thumbnailUrl":{"type":"object","nullable":true},"linkUrl":{"type":"object","nullable":true},"minAppVersion":{"type":"object","nullable":true},"active":{"type":"boolean"},"sortOrder":{"type":"number"},"startsAt":{"type":"object","nullable":true},"endsAt":{"type":"object","nullable":true}}}}}}