Payments
Create a payment record
Create a payment record manually. Useful for importing historical data. If status is SUCCEEDED, the associated invoice will also be marked as paid.
post/api/payments
Request body
Example request
{
"provider": "manual",
"amount": 49.99,
"currency": "USD"
}Response
Payment created
Example response
{
"id": "clx1234567890",
"invoiceId": "clxinv123",
"provider": "paystack",
"providerTransactionId": "PAY_txn_abc123",
"amount": "99.9900",
"currency": "USD",
"status": "SUCCEEDED",
"failureReason": "Insufficient funds"
}