On This Page

{#jumplink-list}  
[Markdown](/docs/cybs/en-us/payments/developer/ctv/rest/payments/payment-tms-process-intro/tms-legacy-tkn-pay-intro.md)  
Filter  
FILTER BY TAG

Authorizing a Payment with a Legacy Token {#tms-legacy-tkn-pay-intro}
=====================================================================

This section describes how to authorize a payment with a legacy token.

Endpoint {#tms-legacy-tkn-pay-intro_d27e16}
-------------------------------------------

**Production:** `POST ``https://api.cybersource.com``/pts/v2/payments`{#tms-legacy-tkn-pay-intro_d27e25}  
**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/payments`{#tms-legacy-tkn-pay-intro_d27e35}

Required Fields for Authorizing a Payment with a Legacy Token {#tms-legacy-tkn-pay-reqfields}
=============================================================================================

[clientReferenceInformation.code](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-code.md "")
:

paymentInformation.legacyToken.id
:
Include the ID of the legacy token you want to use to authorize a payment.

[orderInformation.amountDetails.currency](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-amount-details-currency.md "")
:

[orderInformation.amountDetails.totalAmount](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-amount-details-total-amount.md "")
:
{#tms-legacy-tkn-pay-reqfields_dl_bcz_qry_dwb}

Related Information {#tms-legacy-tkn-pay-reqfields_section_jpc_xzz_sxb}
-----------------------------------------------------------------------

* [API field reference guide for the REST API](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/api-fields-about-guide.md "")
  {#tms-legacy-tkn-pay-reqfields_ul_kpc_xzz_sxb}

REST Example: Authorizing a Payment with a Legacy Token {#tms-legacy-tkn-pay-ex-rest}
=====================================================================================

Request

```
{
  "clientReferenceInformation": {
    "code": "12345678"
  },
  "paymentInformation": {
    "legacyToken": {
      "id": "B21E6717A6F03479E05341588E0A303F"
    }
  },
  "orderInformation": {
    "amountDetails": {
      "totalAmount": "22.00",
      "currency": "USD"
    }
  }
}
```

{#tms-legacy-tkn-pay-ex-rest_codeblock_v4l_mlt_lwb}  
Response to a Successful Request

```
{
  "_links": {
    "authReversal": {
      "method": "POST",
      "href": "/pts/v2/payments/7055956342476789004951/reversals"
    },
    "self": {
      "method": "GET",
      "href": "/pts/v2/payments/7055956342476789004951"
    },
    "capture": {
      "method": "POST",
      "href": "/pts/v2/payments/7055956342476789004951/captures"
    }
  },
  "clientReferenceInformation": {
    "code": "12345678"
  },
  "id": "7055956342476789004951",
  "orderInformation": {
    "amountDetails": {
      "authorizedAmount": "22.00",
      "currency": "USD"
    }
  },
  "paymentAccountInformation": {
    "card": {
      "type": "001"
    }
  },
  "paymentInformation": {
    "tokenizedCard": {
      "type": "001"
    },
    "card": {
      "type": "001"
    }
  },
  "pointOfSaleInformation": {
    "terminalId": "111111"
  },
  "processorInformation": {
    "approvalCode": "888888",
    "networkTransactionId": "123456789619999",
    "transactionId": "123456789619999",
    "responseCode": "100",
    "avs": {
      "code": "X",
      "codeRaw": "I1"
    }
  },
  "reconciliationId": "67468431FRIIS246",
  "status": "AUTHORIZED",
  "submitTimeUtc": "2024-01-18T16:33:54Z"
}
```

{#tms-legacy-tkn-pay-ex-rest_codeblock_x4l_mlt_lwb}  
RELATED TO THIS PAGE

