Add a payment to an Invoice
Changed onBeta: Breaking changes may occur without notice.
Adds a payment to an Invoice and returns the created payment. Recalculates the invoice totals and amount due as a side effect.
Request
- Base URLhttps://api.workiz.com/crm/api
- Authnone declared. Required headers: Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The invoice ID (prefix IV-).
Headers
Bearer Token
Request body
Example request
{
"type": "cash",
"amount": 100,
"confirmationCode": "Check #1234",
"date": "2022-01-01 10:00:00"
}Response
The created payment.
Example response
{
"id": "PAY-BA5r7o4bqzR9MONa",
"date": "2026-01-01 10:00:00",
"amount": 250.5,
"tipAmount": 10,
"type": "charge",
"status": "succeeded",
"estimateId": "ES-LwqGJnRwvZPaNe5E",
"confirmationCode": "ch_3QwErTyUiOp12345",
"collectedById": "USR-38c1ee5c4efa38a4",
"invoiceId": "IV-bK9r2XyZL54aWDR0",
"jobId": "JOB-BA5r7o4bqzR9MONa"
}Changes
- breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became optional for the status - breaking
the response property
became optional for the status - breaking
the response property
became optional for the status - warning
removed the request property
- warning
removed the optional property
from the response with the status - warning
added the new
bank_transferenum value to theresponse property for the response status - warning
added the new
bank_transfer_offlineenum value to theresponse property for the response status - warning
added the new
cashenum value to theresponse property for the response status - warning
added the new
cash_appenum value to theresponse property for the response status - warning
added the new
chargeenum value to theresponse property for the response status - warning
added the new
checkenum value to theresponse property for the response status - warning
added the new
check_depositenum value to theresponse property for the response status - warning
added the new
consumer_financingenum value to theresponse property for the response status - warning
added the new
creditenum value to theresponse property for the response status - warning
added the new
debit_offlineenum value to theresponse property for the response status - warning
added the new
installmentsenum value to theresponse property for the response status - warning
added the new
interacenum value to theresponse property for the response status - warning
added the new
refundenum value to theresponse property for the response status - warning
added the new
refund_offlineenum value to theresponse property for the response status - warning
added the new
venmoenum value to theresponse property for the response status - warning
added the new
zelleenum value to theresponse property for the response status - info
added the new optional request property
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking
- info
endpoint added
- info