Client Session API

Retrieve a client session

GET
This API call retrieves all the details associated with the client session corresponding to the client token that is provided in the request. The fields with empty values are excluded from the response.

Query parameters

clientTokenstringOptional
Client token corresponding to the client session to retrieve

Response

This endpoint returns an object
customerId
stringOptional
A unique identifier for your customer.
orderId
stringOptional
Your reference for the payment.
currencyCode
enumOptional

The 3-letter currency code in ISO 4217 format. e.g. use USD for US dollars.

amount
integerOptional

The amount you are going to charge the customer, in minor units. This amount is calculated from the line items, shipping and other amounts provided in the order. If a top-level amount is provided, it would override any calculated amount.

metadata
map from strings to anyOptional
Additional data to be used throughout the payment lifecycle.
customer
objectOptional
More information associated with the customer.
order
objectOptional
More information associated with the order.
paymentMethod
objectOptional
Enable certain options associated with the payment methods.

Errors