Passer au contenu

đŸš« Refuse an inbound invoice

RequĂȘte

Refuse an inbound invoice.

The PPF requires a refusal to report a reason code (G7.08) and a comment (G7.25), so an omitted details.reason_code defaults to "CONTACT_ACHTR" and an omitted details.comment to "TRANSAC_INC".

Sécurité
APIKeyHeader
Chemin
invoice_idstring(Invoice Id)obligatoire
En-tĂȘtes
X-PDP-Client-Idstring(X-Pdp-Client-Id)obligatoire

ID of the PDP Client for which the operation is performed

Examples:
Sandbox client
client_abc123
Corpsapplication/json
detailsRefuseDetails (object) or null
Any of:

Details for refusing an invoice (status 210 - Refusée).

curl -i -X POST \
  'https://pdp.seqino.dev/api/invoicing/invoices/{invoice_id}/refuse' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -H 'X-PDP-Client-Id: client_abc123' \
  -d '{
    "details": {
      "reason_code": "AUT_MOTIF_ERR_VALIDEUR",
      "reason_text": "string",
      "comment": "string"
    }
  }'

Réponses

Successful Response

Corpsapplication/json
invoice_idstring(Invoice Id)obligatoire
statusstring(Status)obligatoire
successboolean(Success)obligatoire
Response
{ "invoice_id": "string", "status": "string", "success": true }