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.
customerIdstringOptional

A unique identifier for your customer.

orderIdstringOptional

Your reference for the payment.

currencyCodeenumOptional

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

amountintegerOptional

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.

metadatamap from strings to anyOptional

Additional data to be used throughout the payment lifecycle.

customerobjectOptional

More information associated with the customer.

orderobjectOptional

More information associated with the order.

paymentMethodobjectOptional

Enable certain options associated with the payment methods.

Errors