Setting Up Device Data Collection with a Network Token/Tokenized Card {#pa2-use-setup-tokenized-intro}
======================================================================================================

Running the Setup service identifies the customer's bank and prepares for collecting data about the device that the customer is using to place the order. In this instance, a tokenized card is used instead of the payment card data.

Country-Specific Requirements
-----------------------------

These fields are required for transactions in specific countries.

orderInformation.billTo.administrativeArea
:
This field is required for transactions in the US and Canada.

orderInformation.billTo.postalCode
:
This field is required when the orderInformation.billTo.country field value is `US` or `CA`.
{#pa2-use-setup-tokenized-intro_dl_gpf_5rz_rxb} {#pa2-use-setup-tokenized-intro_dl_kcl_pkc_1cc}

Endpoint
--------

**Production:** `POST ``https://api.smartpayfuse.barclaycard``/risk/v1/authentication-setups`  
**Test:** `POST ``https://api.smartpayfuse-test.barclaycard``/risk/v1/authentication-setups`

Required Fields for Setting Up Device Data Collection with a Network Token/Tokenized Card {#pa2-use-setup-token-tokenized-card-reqd-fields}
===========================================================================================================================================

These fields are the minimum fields required when you request the Payer Authentication Setup service while using a tokenized card. Other fields that are required during Setup service are listed in [Required Fields for Collecting Device Data](/docs/barclays/en-us/payer-authentication/developer/barclays/rest/payer-auth/pa2-use-cases-intro/pa2-set-up-use-intro/pa2-use-setup-reqd-fields.md "").

Required Fields
---------------

paymentInformation.tokenizedCard.expirationMonth
:

paymentInformation.tokenizedCard.expirationYear
:

paymentInformation.tokenizedCard.number
:

paymentInformation.tokenizedCard.transactionType
:

paymentInformation.tokenizedCard.type
:
{#pa2-use-setup-token-tokenized-card-reqd-fields_dl_ctj_hjq_bdc}

REST Example: Setting Up Device Data Collection When Using a Network Token/Tokenized Card {#pa2-use-token-tokenized-setup}
==========================================================================================================================

Request

```
{
  "paymentInformation": {
    "tokenizedCard": {
      "transactionType": "1",
      "type": "001",
      "expirationMonth": "11",
      "expirationYear": "2025",
      "number": "4111111111111111"
    }
  }
}
```

Response to Successful Request

```
{
    "clientReferenceInformation": {
        "code": "1725450205426"
    },
    "consumerAuthenticationInformation": {
        "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJlOGI4ODk5Ny1iYzY2LTRkYTEtOTYyNi1iNTc3MTlhNTczNzAiLCJpYXQiOjE3MjU0NTAyMDUsImlzcyI6IjVkZDgzYmYwMGU0MjNkMTQ5OGRjYmFjYSIsImV4cCI6MTcyNTQ1MzgwNSwiT3JnVW5pdElkIjoiNWI5YzRiYjNmZjYyNmIxMzQ0ODEwYTAxIiwiUmVmZXJlbmNlSWQiOiJiYmY4YzU3NS01NjRiLTQzYWYtOGI1Yy0yODdiNmU2ZWM4OGYifQ.UVNLUVmFJKwFxIO1prb5hpaKRR5WRI3esl0UnRg37Fg",
        "deviceDataCollectionUrl": "https://centinelapistag.cardinalcommerce.com/V1/Cruise/Collect",
        "referenceId": "bbf8c575-564b-43af-8b5c-287b6e6ec88f",
        "token": "AxizbwSTiURwrn44LBakABEBTyDYGB7gAhMQyaSZejFczCmAmAAAzghh"
    },
    "id": "7254502054416956004004",
    "status": "COMPLETED",
    "submitTimeUtc": "2024-09-04T11:43:25Z"
}      
```

