POST
/v1/invoices/{id}/payRecords money received outside Sovgate, such as a bank transfer, cash or a check. It marks the invoice paid without Sovgate seeing the money, so it needs a secret key: a restricted key can't call it. It's recorded only on a sent invoice, never for more than is owed.
Endpoint
Path parameters
| Name | Type | Description |
|---|---|---|
id | string | The invoice's ID, inv_.... |
Request body
| Name | Type | Required | Description |
|---|---|---|---|
customer | string | Optional | Who paid, cust_.... Default: everyone still owing. |
amount | integer | Required | What was received, in cents. |
note | string | Optional | Such as the transfer's reference. |