Retrieve a client session
Changed onThis 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.
Request
- Base URLhttps://api.sandbox.primer.io
- URLhttps://api.sandbox.primer.io/client-session
- AuthAPI key in header X-API-KEY
Query parameters
Client token
Client token corresponding to the client session to retrieve
Headers
Specifies the version of the API to use. This must be set to 2.4.
Response
Successful Response
Example response
{
"customerId": "customer-123",
"orderId": "order-abc",
"currencyCode": "GBP",
"amount": 650,
"metadata": {
"productType": "Clothing"
},
"customer": {
"emailAddress": "john@primer.io"
},
"order": {
"lineItems": [
{
"itemId": "t-shirt-1",
"description": "White T-Shirt",
"amount": 500,
"quantity": 1
}
],
"fees": [
{
"type": "SURCHARGE",
"amount": 100
}
],
"shipping": {
"amount": 50
},
"paymentMethod": {
"vaultOnSuccess": false,
"vaultOn3DS": false,
"options": {
"GOOGLE_PAY": {
"surcharge": {
"amount": 100
}
},
"PAYMENT_CARD": {
"networks": {
"VISA": {
"surcharge": {
"amount": 10
}
},
"MASTERCARD": {
"surcharge": {
"amount": 20
}
}
}
},
"PAY_NL_IDEAL": {
"surcharge": {
"amount": 50
}
}
}
},
"authorizationType": "ESTIMATED"
}
}Changes
- breaking
the
queryrequest parameterclientTokenbecame required - warning
added the new
EFTPOSenum value to the//response property for the response status - warning
added the new
SLEenum value to theresponse property for the response status - warning
added the new
STNenum value to theresponse property for the response status - warning
added the new
VEDenum value to theresponse property for the response status - warning
added the new
VESenum value to theresponse property for the response status - warning
added the new
XCGenum value to theresponse property for the response status - warning
added the new
ZWGenum value to theresponse property for the response status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
removed the
MROenum value from theresponse property for the response status - info
removed the
XAGenum value from theresponse property for the response status - info
removed the
XAUenum value from theresponse property for the response status - info
removed the
XBAenum value from theresponse property for the response status - info
removed the
XBBenum value from theresponse property for the response status - info
removed the
XBCenum value from theresponse property for the response status - info
removed the
XBDenum value from theresponse property for the response status - info
removed the
XDRenum value from theresponse property for the response status - info
removed the
XFUenum value from theresponse property for the response status - info
removed the
XPDenum value from theresponse property for the response status - info
removed the
XPTenum value from theresponse property for the response status - info
removed the
XSUenum value from theresponse property for the response status - info
removed the
XTSenum value from theresponse property for the response status - info
removed the
XUAenum value from theresponse property for the response status
- breaking