Passer au contenu

✅ Accept an inbound invoice

Requête

Accept an inbound invoice, in full or in part.

Supplying details.partial_approval approves only part of the invoice: it reports the invoice as partially approved, and states the motive and the amounts approved and not approved. An amount must state the VAT rate it applies to, unless the invoice charges a single one.

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
detailsAcceptDetails (object) or null
Any of:

Optional details for accepting an invoice (status 205 - Approuvée).

Carrying partial_approval accepts only part of the invoice and reports status 206 (Approuvée partiellement) instead.

curl -i -X POST \
  'https://pdp.seqino.dev/api/invoicing/invoices/{invoice_id}/accept' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -H 'X-PDP-Client-Id: client_abc123' \
  -d '{
    "details": {
      "comment": "string",
      "partial_approval": {
        "reason_code": "ART_ERR",
        "reason_text": "string",
        "amounts": [
          {
            "type": "MAP",
            "amount": 0,
            "tax_rate": 0
          }
        ]
      }
    }
  }'

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 }