Invoices

Record Payment for Multiple Invoices

POST
/invoices/payments.json

Records an external payment against multiple invoices.

To apply a payment to multiple invoices, at minimum, specify the amount and applications (i.e., invoice_uid and amount) details.

Note that the invoice payment amounts must be greater than 0. Total amount must be greater or equal to invoices payment amount sum.

Authorization

BasicAuth
AuthorizationBasic <token>

The username is a Maxio Chargify API key. The password is x.

In: header

Request Body

application/json

payment*

Response Body

application/json

application/json

curl -X POST "https://example.com/invoices/payments.json" \  -H "Content-Type: application/json" \  -d '{    "payment": {      "memo": "to pay the bills",      "details": "check number 8675309",      "method": "check",      "amount": "100.00",      "applications": [        {          "invoice_uid": "inv_8gk5bwkct3gqt",          "amount": "50.00"        },        {          "invoice_uid": "inv_7bc6bwkct3lyt",          "amount": "50.00"        }      ]    }  }'
{  "payment": {    "transaction_id": 1,    "total_amount": "100.00",    "currency_code": "USD",    "applications": [      {        "invoice_uid": "inv_8gk5bwkct3gqt",        "application_uid": "pmt_1tr0hgsct3ybx",        "applied_amount": "50.00"      },      {        "invoice_uid": "inv_7bc6bwkct3lyt",        "application_uid": "pmt_2",        "applied_amount": "50.00"      }    ]  }}