Making a Credit with a Payment Instrument {#tms-pi-tkn-credit-intro}
====================================================================

This section describes how to make a credit with a payment instrument.

Endpoint {#tms-pi-tkn-credit-intro_section_mks_hyd_pwb}
-------------------------------------------------------

**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/credits `{#tms-pi-tkn-credit-intro_restcust-test}  
**Production:** `POST ``https://api.cybersource.com``pts/v2/credits`  
**Production in India:** `POST ``https://api.in.cybersource.com``pts/v2/credits`{#tms-pi-tkn-credit-intro_restcust-prod-india}  
**Production in Saudi Arabia:** `POST ``https://api.sa.cybersource.com``/pts/v2/credits `{#tms-pi-tkn-credit-intro_restcust-prod-ksa}  
**Test in Saudi Arabia:** `POST ``https://apitest.sa.cybersource.com``/pts/v2/credits `{#tms-pi-tkn-credit-intro_restcust-test-ksa}

Required Fields for Making a Credit with a Payment Instrument {#tms-pi-tkn-credit-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 "")
:

[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 "")
:
Set the value to `INR`.
:   `Vero` supports Brazilian real (BRL) currency only.

[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 "")
:

[paymentInformation.paymentInstrument.id](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-payment-instrument-id.md "")
:
Set to the ID of the payment instrument token you want to use.

Related Information {#tms-pi-tkn-credit-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-pi-tkn-credit-reqfields_ul_kpc_xzz_sxb}

REST Example: Making a Credit with a Payment Instrument {#tms-pi-tkn-credit-ex-rest}
====================================================================================

Request

```
{
  "clientReferenceInformation": {
    "code": "12345678"
  },
    "paymentInformation": {
        "paymentInstrument": {
            "id": "F4D5E715F7BD9910E053A2598D0A7278"
        }
    },
    "orderInformation": {
        "amountDetails": {
            "currency": "USD",
            "totalAmount": "10.00"
        }
    }
}
```

{#tms-pi-tkn-credit-ex-rest_codeblock_v4l_mlt_lwb}  
Response to a Successful Request

```
{
  "_links": {
    "void": {
      "method": "POST",
      "href": "/pts/v2/credits/7055969586686467104953/voids"
    },
    "self": {
      "method": "GET",
      "href": "/pts/v2/credits/7055969586686467104953"
    }
  },
  "clientReferenceInformation": {
    "code": "12345678"
  },
  "creditAmountDetails": {
    "currency": "USD",
    "creditAmount": "10.00"
  },
  "id": "7055969586686467104953",
  "orderInformation": {
    "amountDetails": {
      "currency": "USD"
    }
  },
  "paymentAccountInformation": {
    "card": {
      "type": "001"
    }
  },
  "paymentInformation": {
    "tokenizedCard": {
      "type": "001"
    },
    "instrumentIdentifier": {
      "id": "7010000000016241111",
      "state": "ACTIVE"
    },
    "paymentInstrument": {
      "id": "F4D5E715F7BD9910E053A2598D0A7278"
    },
    "card": {
      "type": "001"
    }
  },
  "processorInformation": {
    "approvalCode": "888888",
    "responseCode": "100"
  },
  "reconciliationId": "67446174JRIKXXHB",
  "status": "PENDING",
  "submitTimeUtc": "2024-01-18T16:55:59Z"
}
```

{#tms-pi-tkn-credit-ex-rest_codeblock_x4l_mlt_lwb}
