POST
/
api
/
v1
/
pay
curl --request POST \
  --url https://adapter.cepta.co/api/v1/pay \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 123,
  "currency": "<string>",
  "description": "<string>",
  "pageName": "<string>",
  "transactionReference": "<string>",
  "customerEmail": "<string>",
  "customUrl": "<string>",
  "expiryDate": "2023-11-07T05:31:56Z"
}'
{
  "status": true,
  "message": "<string>",
  "data": {
    "transactionRef": "<string>",
    "paymentUrl": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Authorization header with the <SECRET_KEY> value.

Body

amount
number
required

The payment amount to be paid by customer (must be greater than 0)

transactionReference
string
required

Unique identifier for the transaction

Required string length: 5 - 50
customerEmail
string
required

URL to redirect after payment

currency
string | null

The currency code (e.g., “USD”, “NGN”)

description
string | null

Description of the transaction

pageName
string | null

Name of the payment page

customUrl
string | null

URL to redirect after payment

expiryDate
string

Expiry date for the payment link.

Response

200
text/plain
Success
status
boolean

Indicates if the request was successful.

message
string | null

Descriptive message about the request result.

data
object