Caisse POS (V2)

Émet un ticket de remboursement NF525 lié au ticket parent.

Émet un ticket de remboursement NF525 lié au ticket parent.

V1 = full refund (le ticket d'annulation reprend la totalité des
montants/lignes du parent en miroir négatif). Partial refund roadmap V2.

Inalterabilité NF525 :
- Le ticket parent reste IMMUTABLE (status='issued' inchangé).
- Le ticket d'annulation est un nouveau CashTicket `status='refund'`
  avec `original_ticket_id` pointant vers le parent, chaînage SHA-256
  continu, signature Fernet, JFP event `ticket_refunded`.
- Stock IN inverse pour chaque ligne avec product_id (réintègre le
  stock sorti à la vente d'origine).

Body : `{reason: str}` (3-500 car., obligatoire pour audit fiscal)
Permission : `caisse:refund` (rôles `gerant_boutique`, `admin`).
Idempotency : `Idempotency-Key` header recommandé (cache 24h Redis).

Permissions requises : caisse:refund

post/api/v1/caisse/tickets/{ticket_id}/refund

Request

  • Base URL: https://erp.eyeot.fr/api/v1
  • URL: https://erp.eyeot.fr/api/v1/api/v1/caisse/tickets/{ticket_id}/refund
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Response

Succès — payload {data, meta} (cf. API-GUIDE §3.1)

Changes

No recorded changes to this operation across all 1 revision of this API.