Invoice Payments
Create an Invoice Payment
Supported for:
freshbooks quickbooks xero oracleNetsuite sageBusinessCloud sageIntacct dynamicsBusinessCentral myob zohoBooks
post/v2/accounting/invoices/payments
Request body
Example request
{
"connectionUuid": "CON-396d5daa-26b2-4979-89b6-cafb2c298155",
"data": {
"passThrough": {
"CustomField": [
{
"DefinitionId": "1",
"StringValue": "my custom value",
"Name": "Field One"
}
]
},
"accountRef": {
"id": "200"
},
"customerRef": {
"id": "124"
},
"currency": "CAD",
"totalAmount": 200.5,
"currencyRate": 1.13,
"paymentMethod": "creditCard",
"paymentMethodRef": {
"id": "1",
"name": "Harmonized sales tax",
"type": "creditCard"
},
"lines": [
{
"links": [
{
"id": "133"
}
],
"allocatedOnDate": "2021-03-29"
}
],
"date": "2021-03-29",
"subsidiaryRefs": [
{
"id": "4"
}
],
"memo": "Invoice payment memo."
}
}Response
Example response
{
"connectionUuid": "CON-396d5daa-26b2-4979-89b6-cafb2c298155",
"businessName": "Railz",
"serviceName": "xero",
"pushCommunicationId": "60473b57f0cdd1683ca71f60",
"requestedOn": "2021-03-09T08:15:22.035Z",
"status": "pending",
"data": {
"passThrough": {
"CustomField": [
{
"DefinitionId": "1",
"StringValue": "my custom value",
"Name": "Field One"
}
]
},
"accountRef": {
"id": "200"
},
"customerRef": {
"id": "124"
},
"currency": "CAD",
"totalAmount": 200.5,
"currencyRate": 1.13,
"paymentMethod": "creditCard",
"paymentMethodRef": {
"id": "1",
"name": "Harmonized sales tax",
"type": "creditCard"
},
"lines": [
{
"links": [
{
"id": "133"
}
],
"allocatedOnDate": "2021-03-29"
}
],
"date": "2021-03-29",
"subsidiaryRefs": [
{
"id": "4"
}
],
"memo": "Invoice payment memo."
}
}