POST/api/partner/invoices/:invoiceId/pay

Pay an invoice

Pays an invoice one of your users owes, from the bank account or card you name. Returns the invoice as it stands after the payment.

Path parameters

Field Type Required
invoiceId string yes

Request body

Field Type Required
clientId string yes
bankAccountId string or null no
creditCardId string or null no
200 OK
{
  "success": true,
  "message": "Invoice paid",
  "result": {
    "invoice": {
      "id": "3b9d…",
      "status": "paid"
    }
  }
}

A user who is not the payer on the invoice returns 422. Payment errors keep their own status.

Prio may display inaccurate info at times, please double check the responses.