Retrieve payment session client details
/sessions/payment/{id}/client_detailsRetrieves the location details of the customer's device for a payment session opened with Pay.com.js.
Headers
AuthorizationstringRequiredidempotency-keystringA unique key, such as a UUID, that makes a POST or DELETE request safe to retry. Pay.com keeps each key for 24 hours, separately for each workspace.
- A retry with the same key, endpoint and body gets the first request's stored status and body, without running the request again.
- If the first request is still being processed, a retry gets 409
idempotency_error(request_in_progress). - The same key on another endpoint, or with another body, gets 400
idempotency_error(invalid_parameters). - GET, PUT and PATCH requests ignore the key.
The response repeats the key in its Idempotency-Key header.
Path parameters
idstringRequiredThe unique identifier of the payment session.
Returns
Returns the client details object.
idstringRequiredUnique identifier for the client details. Uses the payment session's digits with the clnt_ prefix.
resourcestringRequiredString representing the object's type.
countrystringTwo-letter ISO country code of the client.
ip_addressstringIP address of the client.
citystringCity of the client.
continentstringContinent of the client.
latitudestringLatitude coordinate of the client's location.
longitudestringLongitude coordinate of the client's location.
Show 7 more attributesShow fewer attributes
statestring or nullState or province of the client.
postal_codestringPostal code of the client.
regionstringRegion of the client.
region_codestringRegion code of the client.
subdivisionstringSubdivision of the client's location.
timezonestringTimezone of the client.
test_modebooleanWhether the payment session was created in the sandbox.
Errors
400401invalid_key and the other codes of a 401).403resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.404409idempotency-key is still being processed (request_in_progress). Wait, then retry with the same key.500503Retry-After, or after a few seconds when there's none.