POST
/
api
/
v1
/
pay
/
purchase
curl --request POST \
  --url https://adapter.cepta.co/api/v1/pay/purchase \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "transactionRef": "<string>",
  "customerEmail": "<string>",
  "amount": 123,
  "currency": "<string>",
  "ipAddress": "<string>",
  "callbackUrl": "<string>",
  "cardDetails": "<string>",
  "deviceInformation": {
    "httpBrowserLanguage": "<string>",
    "httpBrowserJavaEnabled": true,
    "httpBrowserJavaScriptEnabled": true,
    "httpBrowserColorDepth": "<string>",
    "httpBrowserScreenHeight": "<string>",
    "httpBrowserScreenWidth": "<string>",
    "httpBrowserTimeDifference": "<string>",
    "userAgentBrowserValue": "<string>",
    "deviceChannel": "<string>"
  }
}'
{
  "status": true,
  "message": "<string>",
  "data": {
    "referenceInformationCode": "<string>",
    "responseCode": "<string>",
    "amount": "<string>",
    "transactionRef": "<string>",
    "status": "<string>",
    "submitTimeUtc": "<string>",
    "transactionId": "<string>",
    "transactionId3DSecure": "<string>",
    "eciFlag": "<string>",
    "md": "<string>",
    "accessToken": "<string>",
    "threedSecureUrl": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Authorization header with the <SECRET_KEY> value.

Body

transactionRef
string
required

Unique identifier for the transaction

customerEmail
string
required

Email of the customer who made the payment

amount
number
required

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

ipAddress
string
required

IP address of the customer who made the payment

currency
string | null

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

callbackUrl
string | null

URL to redirect after payment

cardDetails
string | null

Card details of the customer

deviceInformation
object

Information about the customer's device

Response

200
text/plain
Success
status
boolean

status code

message
string | null

Descriptive message about the request result.

data
object