Skip to main content
Base URL: https://your-domain.com/api
All endpoints on this page require Authorization: Bearer {token}.

Flow overview

1

Validate the payer

Call POST /request-money-email-check or POST /request-money-phone-check.
2

Select a currency

Call GET /get-request-currency to list eligible currencies.
3

Create the request

Call POST /request-money-pay.
4

Payer accepts or cancels

The payer calls POST /accept-request-payment-pay to accept, or either party calls POST /cancel-request to cancel.

POST /request-money-email-check

Validates the payer’s email before creating a request.

Request parameters

user_id
number
required
The authenticated requester’s ID.
receiverEmail
string
required
Email of the user who will pay.

Response fields

success
object
curl --request POST \
  --url https://your-domain.com/api/request-money-email-check \
  --header 'Authorization: Bearer {token}' \
  --header 'Content-Type: application/json' \
  --data '{"user_id": 42, "receiverEmail": "[email protected]"}'

POST /request-money-phone-check

Validates the payer’s phone number before creating a request.

Request parameters

user_id
number
required
The authenticated requester’s ID. Must have a phone number set.
receiverPhone
string
required
Phone number of the user who will pay (international format).

Response fields

success
object
curl --request POST \
  --url https://your-domain.com/api/request-money-phone-check \
  --header 'Authorization: Bearer {token}' \
  --header 'Content-Type: application/json' \
  --data '{"user_id": 42, "receiverPhone": "+11234567890"}'

GET /get-request-currency

Returns currencies that can be used in a money request, filtered by active fee/limit rules.

Request parameters

user_id
number
required
The authenticated user’s ID.

Response fields

success
object
curl --request GET \
  --url 'https://your-domain.com/api/get-request-currency?user_id=42' \
  --header 'Authorization: Bearer {token}'

POST /request-money-pay

Creates a money request. The payer receives a notification by email or SMS.

Request parameters

user_id
number
required
The authenticated requester’s ID.
emailOrPhone
string
required
Email or phone number of the payer.
currencyId
number
required
Currency ID for the request.
amount
number
required
Requested amount.
note
string
Optional note for the payer.

Response fields

status
boolean
true if the request was created.
tr_ref_id
number
ID of the created request payment record.
requestMoneyMailErrorMessage
string
Email error message if notification failed but the request was still created.
curl --request POST \
  --url https://your-domain.com/api/request-money-pay \
  --header 'Authorization: Bearer {token}' \
  --header 'Content-Type: application/json' \
  --data '{
    "user_id": 42,
    "emailOrPhone": "[email protected]",
    "currencyId": 1,
    "amount": 50,
    "note": "Split for dinner"
  }'

GET /accept-request-email-phone

Retrieves the request details (creator email/phone, amount, currency) for a given request payment. Used to populate the accept flow.

Request parameters

tr_ref_id
number
required
The request payment ID.

Response fields

success
object
curl --request GET \
  --url 'https://your-domain.com/api/accept-request-email-phone?tr_ref_id=77' \
  --header 'Authorization: Bearer {token}'

POST /request-accept-amount-limit-check

Checks whether the payer has sufficient balance and the amount is within limits before acceptance.

Request parameters

user_id
number
required
The payer’s user ID.
amount
number
required
The amount being accepted.
currency_id
number
required
Currency ID of the request.

Response fields

success
object
curl --request POST \
  --url https://your-domain.com/api/request-accept-amount-limit-check \
  --header 'Authorization: Bearer {token}' \
  --header 'Content-Type: application/json' \
  --data '{"user_id": 55, "amount": 50, "currency_id": 1}'

GET /get-accept-fees-details

Returns the fee breakdown for accepting a money request.

Request parameters

user_id
number
required
The payer’s user ID.
amount
number
required
The request amount.
currency_id
number
required
Currency ID.

Response fields

success
object
curl --request GET \
  --url 'https://your-domain.com/api/get-accept-fees-details?user_id=55&amount=50&currency_id=1' \
  --header 'Authorization: Bearer {token}'

POST /accept-request-payment-pay

Confirms and executes the payment for an accepted money request.

Request parameters

user_id
number
required
The payer’s user ID.
tr_ref_id
number
required
The request payment ID.
amount
number
required
The accepted amount.
currency_id
number
required
Currency ID.
totalFees
number
required
Total fees from /get-accept-fees-details.
tr_email_or_phone
string
required
Creator’s email or phone (used for notification routing).

Response fields

status
boolean
true if the payment was accepted.
requestAccptValidationErrorMessage
string
Validation error when status is false.
curl --request POST \
  --url https://your-domain.com/api/accept-request-payment-pay \
  --header 'Authorization: Bearer {token}' \
  --header 'Content-Type: application/json' \
  --data '{
    "user_id": 55,
    "tr_ref_id": 77,
    "amount": 50,
    "currency_id": 1,
    "totalFees": 0.75,
    "tr_email_or_phone": "[email protected]"
  }'

POST /cancel-request

Cancels an existing money request. Either the creator or the payer may call this endpoint.

Request parameters

user_id
number
required
The calling user’s ID (creator or payer).
tr_id
number
required
The transaction ID associated with the request payment.
tr_email_or_phone
string
required
The other party’s email or phone (used for notification routing).

Response fields

status
number
200 on success, 401 on error.
message
string
Error message on failure.
curl --request POST \
  --url https://your-domain.com/api/cancel-request \
  --header 'Authorization: Bearer {token}' \
  --header 'Content-Type: application/json' \
  --data '{
    "user_id": 42,
    "tr_id": 1001,
    "tr_email_or_phone": "[email protected]"
  }'

Build docs developers (and LLMs) love