Skip to content

Record a payment on an invoice

POST
/api/v1/invoices/{id}/payments
curl --request POST \
--url https://digize.com/api/v1/invoices/example/payments \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "amount": 1, "method": "cash", "paidAt": "2026-04-15T12:00:00Z" }'

Records money taken outside Stripe (cash, check, bank transfer) toward an invoice: all or part of its balance. It shows in Payments, and the invoice is partly paid or paid.

Needs the crm:write permission.

id
required
string
>= 1 characters <= 64 characters
Idempotency-Key
string
>= 1 characters <= 255 characters

Makes the request safe to send again: for 24 hours the same key and request answer the first response without repeating the change.

Example

5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69
Media typeapplication/json
object
amount
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
>= 1 <= 100000000
method
required
string
Allowed values: cash check bank_transfer other
paidAt
string format: date-time

Done

Media typeapplication/json
object
id
required
string
number
required
string
contact
required
object
id
required

The contact’s id.

string
name
required
string
email
required
string
company
required
string | null
lines
required
Array<object>
object
id
required
string
description
required
string
quantity
required
number
unitPrice
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
productId
required

The commerce product, if any.

string | null
taxRateId
required

The line’s own tax rate.

string | null
discount
required

Taken off the subtotal before tax.

integer
<= 100000000
taxRate
required

Percent: 8.25 is 8.25%, on lines without a tax rate of their own.

number
taxes
required

Each tax rate’s share.

Array<object>
object
taxRateId
required

Null for the invoice’s own percent.

string | null
name
required
string
bps
required

Basis points: 825 is 8.25%.

number
taxable
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
amount
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
coupon
required
Any of:
object
code
required
string
discount
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
subtotal
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
tax
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
total
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
amountPaid
required

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
balance
required

What’s still owed.

integer
<= 100000000
tips
required

Tips paid on top.

integer
<= 100000000
allowPartial
required

Whether the customer may pay part of it on its page.

boolean
autoCharge
required

Whether it’s charged to the contact’s saved card when sent.

boolean
notes
required
string | null
status
required
string
Allowed values: draft sent viewed partially_paid paid overdue void
issuedAt
required
string format: date-time
dueAt
required
string format: date-time
sentAt
required
Any of:
string format: date-time
viewedAt
required
Any of:
string format: date-time
paidAt
required
Any of:
string format: date-time
reminders
required

Automatic reminders sent so far.

number
lastRemindedAt
required
Any of:
string format: date-time
quoteId
required
string | null
scheduleId
required
string | null
opportunityId
required
string | null
paymentUrl
required

Where the customer pays it online.

string

Example

{
"status": "draft"
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

A request with the same Idempotency-Key is still running (conflict).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The Idempotency-Key was used with a different request.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}