const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({amount: 123, paidAt: '2023-11-07T05:31:56Z', notes: '<string>'})
};
fetch('https://api.dolfinai.co/invoices/{id}/payments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"currency": "<string>",
"status": "<string>",
"providerReference": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"chargeReference": "<string>",
"applicationFeeAmount": 123,
"notes": "<string>",
"receiptUrl": "<string>",
"receiptEmail": "<string>",
"paymentMethod": {
"type": "<string>",
"id": "<string>",
"brand": "<string>",
"last4": "<string>",
"expMonth": 123,
"expYear": 123,
"funding": "<string>",
"country": "<string>",
"wallet": "<string>"
},
"billing": {
"name": "<string>",
"email": "<string>"
},
"risk": {
"level": "<string>",
"score": 123
},
"succeededAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}Used when the customer pays off-platform (bank transfer, cash, cheque). Dispatches MarkInvoicePaid with Source=Manual — the saga handles the state transition (PartiallyPaid or Paid) via the same path as Stripe-originated payments.
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({amount: 123, paidAt: '2023-11-07T05:31:56Z', notes: '<string>'})
};
fetch('https://api.dolfinai.co/invoices/{id}/payments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"currency": "<string>",
"status": "<string>",
"providerReference": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"chargeReference": "<string>",
"applicationFeeAmount": 123,
"notes": "<string>",
"receiptUrl": "<string>",
"receiptEmail": "<string>",
"paymentMethod": {
"type": "<string>",
"id": "<string>",
"brand": "<string>",
"last4": "<string>",
"expMonth": 123,
"expYear": 123,
"funding": "<string>",
"country": "<string>",
"wallet": "<string>"
},
"billing": {
"name": "<string>",
"email": "<string>"
},
"risk": {
"level": "<string>",
"score": 123
},
"succeededAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}Documentation Index
Fetch the complete documentation index at: https://docs.dolfinai.co/llms.txt
Use this file to discover all available pages before exploring further.
Created
Stripe, Manual, null Show child attributes
Show child attributes
Show child attributes