curl -X POST "https://api.nevatal.com/api/v1/billing/payments" \
-H "Authorization: Bearer nvtl_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"invoiceId": "inv_001",
"amount": 178500,
"method": "transfer",
"reference": "BANK-REF-12345"
}'
{
"id": "pay_002",
"invoiceId": "inv_001",
"amount": 178500,
"currency": "COP",
"method": "transfer",
"status": "completed",
"reference": "BANK-REF-12345",
"paidAt": "2025-03-16T14:00:00Z"
}
Record a payment against an invoice
curl -X POST "https://api.nevatal.com/api/v1/billing/payments" \
-H "Authorization: Bearer nvtl_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"invoiceId": "inv_001",
"amount": 178500,
"method": "transfer",
"reference": "BANK-REF-12345"
}'
{
"id": "pay_002",
"invoiceId": "inv_001",
"amount": 178500,
"currency": "COP",
"method": "transfer",
"status": "completed",
"reference": "BANK-REF-12345",
"paidAt": "2025-03-16T14:00:00Z"
}
cash, card, transfer, othercurl -X POST "https://api.nevatal.com/api/v1/billing/payments" \
-H "Authorization: Bearer nvtl_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"invoiceId": "inv_001",
"amount": 178500,
"method": "transfer",
"reference": "BANK-REF-12345"
}'
{
"id": "pay_002",
"invoiceId": "inv_001",
"amount": 178500,
"currency": "COP",
"method": "transfer",
"status": "completed",
"reference": "BANK-REF-12345",
"paidAt": "2025-03-16T14:00:00Z"
}