Create Payment
Payments
Create Payment
Create Payment
POST
Create Payment
This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
Create Payment Description: The/payment/ endpoint allows creation of payment records with transaction details, currency information, and associated files.
Method:
POST
Request Payload:
| Parameter | Type | Description |
|---|---|---|
| user | string | User ID associated with the payment |
| title | string | Title/description of the payment |
| transactionDate | string | Date and time of the transaction |
| currency | string | Currency code (e.g., USD, NGN) |
| amount | number | Amount in the specified currency |
| amountUSD | number | Amount converted to USD |
| conversionRate | number | Exchange rate used for conversion |
| memo | string | Additional notes about the payment |
| files | array | File uploads (multipart/form-data) |
| id | string | Optional custom ID for the payment record |
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
TenantUserId associated with the payment
Title/description of the payment
Date and time of the transaction
Currency code (e.g., USD, NGN)
Amount in the specified currency
Amount converted to USD
Exchange rate used for conversion
Additional notes about the payment
File attachments (receipts, invoices, etc.)
Optional custom ID for the payment record