curl --location --request GET '/companies//payments' \
--header 'Authorization: <api-key>'{
"success": true,
"data": [
{
"id": "inv_pay_123",
"amount": 1000,
"currencyCode": "USD",
"paymentDate": "2024-03-15",
"notes": "Payment for March services",
"referenceNumber": "REF123",
"createdAt": "2024-03-15T10:30:00Z",
"invoice": {
"id": "inv_123",
"number": 1001,
"prefix": "INV",
"date": "2024-03-10"
}
}
],
"errors": [
"string"
]
}