POST
/
invoices
/
{id}
/
pay
Mark invoice as paid
curl --request POST \
  --url https://api.contazen.ro/v1/invoices/{id}/pay \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 123,
  "payment_date": "2023-12-25",
  "payment_method": "<string>",
  "observations": "<string>"
}'
{
  "success": true,
  "data": {
    "is_paid": true,
    "total_amount": 123,
    "total_paid": 123,
    "remaining": 123
  },
  "meta": {
    "version": "v1",
    "request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "response_time": "23.45ms"
  }
}

Authorizations

Authorization
string
header
required

Use your API key (sk_live_xxx or sk_test_xxx)

Path Parameters

id
string
required

Invoice CzUid

Body

application/json
amount
number
required

Payment amount

payment_date
string<date>
required

Payment date (defaults to today)

payment_method
string

Payment method used

observations
string

Payment notes

Response

Payment recorded

success
boolean
data
object
meta
object