Payment Processing

Process Payslip

POST api/process-payment

Description:

This endpoint is used for processing payments (pay slips, invoices).

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Request Body:

Depending on the type of payment, the required fields differ.

For One-Time Payments (Pay slips or Invoices):

{
    "user_email": <email address of the user receiving the money>
    "payment_type": "one_time",
    "payment_date": "2023-07-14",
    "one_time_type": "paystub",
    "transaction_id": <ID of the paystub>
}

For Instant Payments:

Response:

The API returns a JSON response with a message and data structure. Below is a sample response (the structure will be similar regardless of payment type):

Last updated