Skip to main content
POST
Order Pay Authorise Only

Headers

x-api-version
string
default:2026-01-01
required

API version to be used.

x-request-id
string

Request ID for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to Cashfree.

x-idempotency-key
string<UUID>

An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.

Body

application/json

Request body to create an authorization only transaction at cashfree using payment_session_id.

Complete object for the authorize only api that uses authorization data object.

payment_session_id
string
required
Example:

"session__CvcEmNKDkmERQrxnx39ibhJ3Ii034pjc8ZVxf3qcgEXCWlgDDlHRgz2XYZCqpajDQSXMMtCusPgOIxYP2LZx0-05p39gC2Vgmq1RAj--gcn"

authorization_data
object
required

Details required for authorization, received in authentication response from processor.

Response

OK.

cf_payment_id
string

Payment entity full object.

order_id
string
entity
string
error_details
ErrorDetailsInPayments Ā· object

The error details are present only for failed payments.

Example:
is_captured
boolean
order_amount
number

Order amount can be different from payment amount if you collect service fee from the customer.

payment_group
string

Type of payment group. One of ['prepaid_card', 'upi_ppi_offline', 'cash', 'upi_credit_card', 'paypal', 'net_banking', 'cardless_emi', 'credit_card', 'bank_transfer', 'pay_later', 'debit_card_emi', 'debit_card', 'wallet', 'upi_ppi', 'upi', 'credit_card_emi'].

payment_currency
string
payment_amount
number
payment_time
string

This is the time when the payment was initiated.

payment_completion_time
string

This is the time when the payment reaches its terminal state.

payment_status
enum<string>

The transaction status can be one of ["SUCCESS", "NOT_ATTEMPTED", "FAILED", "USER_DROPPED", "VOID", "CANCELLED", "PENDING"].

Available options:
SUCCESS,
NOT_ATTEMPTED,
FAILED,
USER_DROPPED,
VOID,
CANCELLED,
PENDING
payment_message
string
bank_reference
string

Issuing bank’s transaction reference number.

auth_id
string

Authorisation ID provided by the issuing bank.

order_currency
string
authorization
AuthorizationInPayments Ā· object

If preauth enabled for account you will get this body.

Example:
payment_method
Card Ā· object

The following code samples show the payment method object payload for different payment methods.

international_payment
InternationalPayment Ā· object

International payment details.

payment_gateway_details
PaymentGatewayDetails Ā· object

payment gateway details present in the webhook response.

payment_surcharge
object