cURL
curl --request POST \ --url https://api.splose.com/v1/payments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "patientId": 1, "locationId": 1, "paymentMethodId": 1, "amount": 193.99, "paymentDate": "2024-03-01T00:00:00.000Z", "paymentInvoices": [ { "invoiceId": 1, "amount": 193.99, "xeroId": "<string>" } ], "xeroId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }'
{ "id": 1, "paymentNumber": "RCPT-0001", "amount": 193.99, "patientId": 1, "locationId": 1, "paymentMethodId": 1, "paymentDate": "2023-07-30T09:00:00.000Z", "paymentInvoices": [ { "invoiceId": 1, "amount": 193.99, "xeroId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } ], "creditAllocations": [], "xeroId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "archivedAt": "<string>", "archived": false }
Create single payment for specific invoice
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Object with payment data.
The response is of type object.
object