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

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

method
enum<string>

Payment method (only 'vertofx' requires additional fields)

Available options:
vertofx
walletId
string

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

purposeCode
string

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

files
file[]

Receipt files (PDF, images, etc.)

Response

Success

message
string
paymentRequest
object