On This Page

{#jumplink-list}  
[Markdown](/docs/cybs/en-us/click-to-pay/developer/all/rest/click-to-pay/ctp-token-get-pymnt-details.md)  
Filter  
FILTER BY TAG

Payment Details API {#ctp-token-get-pymnt-details}
==================================================

This section contains the information you need to retrieve the non-sensitive data associated with a `Unified Checkout` transient token and the payment details API. This API can be used to retrieve personally identifiable information, such as the cardholder name and billing and shipping details, without retrieving payment credentials, which helps ease the PCI compliance burden.
There are two methods of authentication, and they are described in the Getting Started with REST Developer Guide:

* [Set Up a JSON Web Token Message](https://developer.cybersource.com/docs/cybs/en-us/platform/developer/all/rest/rest-getting-started/restgs-jwt-message-intro.md "")
* [Set Up HTTP Signature Message](https://developer.cybersource.com/docs/cybs/en-us/platform/developer/all/rest/rest-getting-started/restgs-http-message-intro.md "")

> IMPORTANT
> ` Cybersource ` recommends that you dynamically parse the response for the fields that you are looking for when you integrate with ` Cybersource ` APIs. ` Cybersource ` may add additional fields in the future.  
> You must ensure that your integration can handle new fields that are returned in the response. Even though the underlying data structures do not change, you must also ensure that your integration can handle changes to the order in which the data is returned. ` Cybersource ` uses semantic versioning practices, which enables you to retain backwards compatibility as new fields are introduced in minor version updates.

Endpoint {#ctp-token-get-pymnt-details_d10e1029}
------------------------------------------------

**Production:** `GET ``https://api.cybersource.com``/up/v1/payment-details/`*{id}*{#ctp-token-get-pymnt-details_d10e1036}  
**Test:** `GET ``https://apitest.cybersource.com``/up/v1/payment-details/`*{id}*{#ctp-token-get-pymnt-details_d10e1048}  
The `{id}` is the full JWT received from `Unified Checkout` as the result of capturing payment information. The transient token is a JWT object that you retrieved as part of a successful capture of payment information from a cardholder.

Required Field for Retrieving Transient Token Payment Details {#ctp-token-get-pymnt-details-required}
=====================================================================================================

Your payment credentials request must include this field:

id
:
The `{id}` is the full JWT received from `Unified Checkout` as the result of capturing payment information.

REST Example: Retrieving Transient Token Payment Details {#ctp-token-get-pymnt-details-ex-rest}
===============================================================================================

Request

```keyword
GET https://apitest.cybersource.com/up/v1/payment-details/{id}
```

{#ctp-token-get-pymnt-details-ex-rest_codeblock_c51_vmt_gwb}  
Response to Successful Request

```
{
  "paymentInformation": {
    "card": {
      "expirationYear": "2027",
      "number": "XXXXXXXXXXXX9908",
      "expirationMonth": "03",
      "type": "002",
      "typeSelectionIndicator": "1"
    }
  },
  "orderInformation": {
    "amountDetails": {
      "totalAmount": "21.00",
      "currency": "USD"
    },
    "billTo": {
      "firstName": "Jane",
      "country":  "USD"
      "lastName": "Doe",
      "phoneNumber": "+44-1234567890",
      "address1": "900 Metro Center Boulevard",
      "postalCode": "94404",
      "locality": "Foster City",
      "administrativeArea": "CA",
      "email": "example@email.com"
    },
    "shipTo": {
      "firstName": "Jane",
      "country": "US",
      "lastName": "Doe",
      "address1": "123 Main Street",
      "postalCode": "10789",
      "locality": "New York",
      "administrativeArea": "NY"
    }
  }
}
```

RELATED TO THIS PAGE

