Skip to main content
POST
Authorize Transaction

Authorizations

Authorization
string
header
required

Payaza {{Public API Key in Base 64}}

Body

application/json
authorization_reference
string
required

Unique reference for this authorization request.

Example:

"AUTH-1234567890"

amount
number
required

The amount to hold.

Example:

100

currency
string
required

Currency code (e.g., NGN, USD).

Example:

"NGN"

customer_email
string<email>
required

Customer's email address.

Example:

"customer@example.com"

authorization_redirect_url
string<uri>
required

URL to redirect the customer after the transaction.

Example:

"https://merchant-site.com/checkout/complete"

order_reference
string | null

Unique order ID linked to this transaction.

Example:

"ORD-001"

merchant_reference
string | null

Merchant's internal reference.

Example:

"MR-001"

card_number
string

The customer's card number (PAN).

Example:

"5123456789012346"

card_expiry_month
string

Two-digit expiry month.

Example:

"12"

card_expiry_year
string

Four-digit expiry year.

Example:

"2025"

card_cvv
string

Card security code.

Example:

"123"

card_token
string | null

Token representing the card (if using tokenization).

Example:

"token_reference_here"

customer_name
string

Full name of the customer.

Example:

"John Doe"

expire_in_days
integer

Number of days before the authorization hold expires.

Example:

7

authorization_webhook_url
string<uri>

URL to receive webhook notifications about the auth status.

Example:

"https://example.com/webhook"

Response

Authorize Transaction

status
string

Status of the authorization (AUTHORIZED, PENDING, DECLINED).

Example:

"AUTHORIZED"

message
string

Descriptive message about the status.

Example:

"Authorization successful"

authorization_reference
string | null

Unique reference for the authorization.

Example:

"AUTH-1234567890"

authorization_code
string | null

Code provided by the issuer if authorized.

Example:

"123456"

authorized_amount
number | null

The amount successfully held.

Example:

100

currency
string | null

Currency code.

Example:

"NGN"

expires_at
string<date-time> | null

Timestamp when the hold expires.

Example:

"2025-01-19T10:30:00"

do3dsAuth
boolean

Indicates if 3D Secure authentication is required.

Example:

false

threeDsUrl
string<uri> | null

URL to redirect for 3DS authentication.

Example:

"https://acs.example.com/3ds"

threeDsHtml
string | null

HTML content for 3DS page rendering.

Example:

"<html>...</html>"

formData
string | null

Form data (cReq/PaReq) for 3DS.

Example:

"cReq_or_PaReq_data_here"

error_code
string | null

Error code if declined.

Example:

"INVALID_CARD"

error_message
string | null

Detailed error description.

Example:

"Card number is invalid"