Follow-On Credit {#payments-processing-basic-refund-intro}
==========================================================

This section provides the information you need in order to process a follow-on credit, which is linked to a capture or sale. You must request a follow-on credit within 180 days of the authorization or sale.
When your account is enabled for credit authorizations, also known as purchase return authorizations, `Cybersource` authenticates the card and customer during a follow-on refund or stand-alone credit request. Every credit request is automatically authorized.  
Credit authorization results are returned in these response fields:

* ccCreditReply_authorizationCode
* ccCreditReply_paymentNetworkTransactionID
* ccCreditReply_processorResponse
  {#payments-processing-basic-refund-intro_d17e25}  
  When you request a void for a refund or credit before settlement, the refund or credit is voided. If your account is enabled for credit authorizations, the credit authorization is also reversed.

Endpoint {#payments-processing-basic-refund-intro_d14e137}
----------------------------------------------------------

Set the ccCreditService_run field to `true`.  
Send the request to `https://ics2ws.ic3.com/commerce/1.x/transactionProcessor`.

Required Fields for Processing a Follow-On Credit {#payments-processing-basic-refund-required-fields}
=====================================================================================================

ccCreditService_captureRequestID
:

ccCreditService_run
:
Set the value to `true`.

merchantID
:

merchantReferenceCode
:
Set the value merchantReferenceCode value used in corresponding capture or sale request.

purchaseTotals_currency
:

purchaseTotals_grandTotalAmount
:

Simple Order Example: Processing a Follow-On Credit {#payments-processing-basic-refund-ex-so-nvp}
=================================================================================================

Request

```
&lt;requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.86"&gt;
  &lt;merchantID&gt;merchantID&lt;/merchantID&gt;
  &lt;merchantReferenceCode&gt;merchantRefCode&lt;/merchantReferenceCode&gt;
  &lt;purchaseTotals&gt;
    &lt;currency&gt;USD&lt;/currency&gt;
    &lt;grandTotalAmount&gt;1.01&lt;/grandTotalAmount&gt;
  &lt;/purchaseTotals&gt;
  &lt;ccCreditService run="true"&gt;
    &lt;captureRequestID&gt;captureRequestID&lt;/captureRequestID&gt;
  &lt;/ccCreditService&gt;
&lt;/requestMessage&gt;
```

Response to a Successful Request

```
&lt;c:replyMessage xmlns:c="urn:schemas-cybersource-com:transaction-data-1.86"&gt;
  &lt;c:merchantReferenceCode&gt;Postman-1666641056&lt;/c:merchantReferenceCode&gt;
  &lt;c:requestID&gt;6666410568976150003010&lt;/c:requestID&gt;
  &lt;c:decision&gt;ACCEPT&lt;/c:decision&gt;
  &lt;c:reasonCode&gt;100&lt;/c:reasonCode&gt;
  &lt;c:purchaseTotals&gt;
    &lt;c:currency&gt;USD&lt;/c:currency&gt;
  &lt;/c:purchaseTotals&gt;
  &lt;c:ccCreditReply&gt;
    &lt;c:reasonCode&gt;100&lt;/c:reasonCode&gt;
    &lt;c:requestDateTime&gt;2022-10-24T19:50:57Z&lt;/c:requestDateTime&gt;
    &lt;c:amount&gt;1.01&lt;/c:amount&gt;
    &lt;c:reconciliationID&gt;6691571329CM5P99&lt;/c:reconciliationID&gt;
    &lt;c:authorizationCode&gt;831111&lt;/c:authorizationCode&gt;
    &lt;c:processorResponse&gt;00&lt;/c:processorResponse&gt;
    &lt;c:paymentNetworkTransactionID&gt;222222222222222&lt;/c:paymentNetwork&gt;
  &lt;/c:ccCreditReply&gt;
&lt;/c:replyMessage&gt;
```

