const options = {method: 'GET'};
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"
}
]Returns all recorded payments against the invoice — both Stripe-originated (via webhook) and SMB-recorded manual payments. Ordered newest first.
const options = {method: 'GET'};
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.
OK
Stripe, Manual, null Show child attributes
Show child attributes
Show child attributes