Skip to main content

Approve a payment

This endpoint approves a payment request based on the provided reference.

Header Parameters
apiToken string REQUIRED

Secret key for the project

Request Body REQUIRED
reference string REQUIRED

Unique reference for the payment.

approved boolean REQUIRED

Approval status of the payment.

Responses
200

Payment request processed successfully

Schema OPTIONAL
success boolean

Indicates if the payment request was processed successfully.

message string

A message accompanying the response.

data string

Details about the payment request.

400

Bad request, such as invalid input

Schema OPTIONAL
code int32

Error code representing the type of error.

message string

Error message detailing what went wrong.

401

Unauthorized access

Schema OPTIONAL
code int32

Error code representing the type of error.

message string

Error message detailing what went wrong.

500

Internal Server Error

Schema OPTIONAL
code int32

Error code representing the type of error.

message string

Error message detailing what went wrong.