POST
/
payments
/
initiate
/
{method}
curl --request POST \
  --url https://api.live.paisr.tech/{version}/payments/initiate/{method} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "invoice_id": "<string>",
  "redirect_url": "<string>"
}'
{
  "success": true,
  "data": {
    "session": "https://app.paisr.tech/pay/ey7bTCm6tur63CR6mzbuq23r",
    "expires_in": "30 Minutes"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

method
enum<string>
required

Payment Method.

Available options:
wallet,
qr,
card,
bank

Body

application/json
The details required to initiate a payment.
invoice_id
string
required

The ID of the invoice being paid.

redirect_url
string
required

The url to redirect the customer to after completing the payment.

Response

200
application/json
Successfully initiated payment.
success
boolean

Indicates if the request was successful.

data
object