Skip to main content
PATCH
Approve Payment Request
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

Approve Payment Request Description:
The /payment-request/{id}/approve endpoint approves a specific payment request.
Authorization:
  • Required role: admin or higher
Method:
PATCH
Path Parameter: Request Body Note: When uploading files, use multipart/form-data content type. PDF receipt is automatically generated upon approval.

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string
required

Payment Request ID

Body

method
enum<string>
required

Payment method (required). 'vertofx' requires walletId/purposeCode; 'paystack' requires the request's linked Payment Setting to already have a resolved PaystackRecipientCode and a positive amount/amountUSD.

Available options:
standard,
vertofx,
paystack
title
string

Title for the payment (defaults to "Payment for [original request title]")

transactionDate
string<date-time>

Transaction date (defaults to current date)

currency
string

Currency code (defaults to request currency)

amount
number

Payment amount (defaults to request amount)

amountUSD
number

Payment amount in USD (defaults to request amountUSD)

conversionRate
number

Conversion rate if different from default

memo
string

Additional notes about the payment

walletId
string

Required if method is 'vertofx' - Wallet ID for VertoFX

purposeCode
string

Required if method is 'vertofx' - Purpose code for VertoFX

reason
string

Note attached to the transfer (method 'paystack' only)

Maximum string length: 255
files
file[]

Receipt files (PDF, images, etc.)

Response

Success

message
string
paymentRequest
object