Skip to content

Create Mandate API

| View as Markdown

Establish recurring payment or single mandate agreements with your customers. Easily configure frequency, start/end dates, amount, and payment channel. Enables merchants to automate subscriptions, secure upfront payments, or manage user consents.

https://payments.airpay.co.in/pay/v4/api/mandates/create.php
ParameterType ValueDescriptionValue Like
Content-Type requiredStringThe Content-Type header specifies the media type of the request or response body, allowing the receiver to correctly interpret the For XML data, use application/xml.For JSON: application/json,For XML: application/xml
ParameterType ValueDescriptionValue Like
orderid requiredAlphanumeric
(10-200)
Unique order identifier.
amount requiredNumeric
(1–10)
Transaction amount.
currency_code requiredNumeric
(3)
ISO 4217 numeric currency code.356
iso_currency requiredString
(3)
ISO 4217 alphabetic currency code.INR
buyer_email requiredEmail
(3–50)
Buyer’s email address.
buyer_phone requiredNumeric
(8–15)
Buyer’s phone number.
buyer_firstname requiredAlphanumeric
(1–50)
Buyer’s first name.
buyer_lastname requiredAlphanumeric
(1–50)
Buyer’s last name.
buyer_address optionalAlphanumeric
(1–50)
Buyer’s address.
buyer_city optionalAlphanumeric
(1–50)
Buyer’s city.
buyer_state optionalAlphanumeric
(1–50)
Buyer’s state.
buyer_pincode optionalAlphanumeric
(4–8)
Buyer’s postal code.
buyer_country optionalAlphanumeric
(2–50)
Buyer’s country.
customvar optionalAlphanumeric/Space/Equal
(1–4096)
Custom data field for merchant use.
txnsubtype requiredNumericTransaction subtype identifier.
start_date requiredAlphanumeric
(Date{dd/mm/yyyy})
Mandate start date.
end_date requiredAlphanumeric
(Date{dd/mm/yyyy})
Mandate end date.
period requiredStringFrequency or duration period of mandate.
block_fund requiredString
(1)
Required only in case of on-time mandate.
channel requiredStringTransaction channel (e.g., UPI, enach).
customer_vpa optionalAlphanumericRequired if channel is UPI.
account_number optionalNumericRequired if channel is eNACH.
account_type optionalStringRequired if channel is eNACH.
ifsc_code optionalAlphanumericRequired if channel is eNACH.
auth_mode optionalStringRequired if channel is eNACH.
bank_id optionalNumericRequired if channel is eNACH.
ParameterType ValueDescriptionValue Like
merchant_id requiredNumericUnique identifier assigned to the merchant.
orderid requiredAlphanumeric
(10-200)
Unique order identifier.
ap_transactionid requiredNumericTransaction ID assigned by the payment gateway.
txn_mode optionalStringMode of transaction.LIVE, TEST
chmod requiredStringChannel mode.upi, enach
amount requiredNumericTransaction amount.
currency_code requiredNumericTransaction ID assigned by the payment gateway.
iso_currency requiredString
(3)
ISO 4217 alphabetic currency code.INR
transaction_status requiredNumericStatus code representing the transaction result.211 = InProcess, 400 = Failed
transaction_payment_status requiredStringStatus text representing the payment state.INPROCESS, SUCCESS, FAILED
customer_name optionalStringName of the customer.
customer_phone optionalNumericCustomer’s phone number.
customer_email optionalEmailCustomer’s email address.
transaction_type optionalNumericType or category of transaction.
risk optionalNumericRisk indicator or fraud check score (0 = no risk).
transaction_time optionalString
(DateTime (dd-mm-yyyy HH:MM:SS))
Timestamp of the transaction event.
customer_vpa optionalAlphanumericRequired only in case of channel = UPI Customer’s Virtual Payment Address (applicable for UPI).
ap_securehash optionalStringRequired only in case of channel = UPI Secure hash for integrity validation of request.
redirection_url optionalStringRequired only in case of channel = eNACH for redirection after mandate.