Card Present Connect \| Retail Integration Guide {#cp-retail-about-guide}
=========================================================================

This section describes how to use this guide and where to find further information.

Audience and Purpose
--------------------

This guide is written for merchants who want to process card-present retail payments through `Cybersource` and provides information about the `REST API` guide for `China UnionPay`. For information about additional requirements and options for card-present transactions, see the [*Payments Developer Guide*](https://developer.cybersource.com/docs.md#PaymentServices "") in the Technical Documentation Portal.

Conventions
-----------

The following special statement is used in this document:

> IMPORTANT
> An *Important* statement contains information essential to successfully completing a task or learning a concept.

Customer Support
----------------

For support information about any service, visit the Support Center:  
<http://support.visaacceptance.com>

Pilot Release {#cp-retail-pilot-release}
========================================

This document provides information about the pilot release of Card Present Connect \| Retail for `China UnionPay`.

Recent Revisions to This Document {#cp-retail-doc-revisions}
============================================================

26.10.01
--------

Initial release for `China UnionPay`.

Introduction to Card Present Connect \| Retail {#cp-intro-cpc}
==============================================================

Card Present Connect \| Retail is part of a unified commerce solution for payment technology providers. This solution supports card-present transactions at the point of sale (POS) and on mobile POS (mPOS) devices. The solution also enables you to integrate with multiple processors and acquirers.  
Card Present Connect payment management platform uses end-to-end encryption to enable secure and innovative payment solutions. Retail integration and value-added services are available through a single integration on the platform.  
`China UnionPay` uses a different set of terms for standard industry payment services. For example, the `CUP` term for an authorization is a [pre-authorization](# ""). For more information, see [Supported Transaction Types and Integrations](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-intro-cpc/cp-retail-cup-txn-types.md ""). Also see the individual payment services discussed in [Card-Present Retail Payment Services](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-retail-pymnt-svcs-cup-intro.md "").

Enabling the Card Present Connect Platform {#cp-enabling-task}
==============================================================

Before you can use the Card Present Connect platform, you must enable it.  
Follow these steps to enable the Card Present Connect platform:

1. Set up a `Cybersource` merchant account. To get started, contact your sales engineer, alliance partner, or technical account manager.
2. Integrate the `Cybersource` APIs for use on the Card Present Connect platform.
3. Integrate your terminal's key management encryption and decryption with the Card Present Connect platform.
4. Complete message-level validation (MLV) and Level 3 (L3) device certification. To get started, contact your sales engineer, alliance partner, or technical account manager.

Card-Present Transaction Risk Control Requirements {#cp-intro-transactions-risk-control}
========================================================================================

Card-present transactions carry lower risk than card-not-present transactions because the customer and payment card are physically present, which can result in lower transaction fees. However, acquirers must still apply standard risk-control measures. Acquirers must monitor transaction activity and manage fraud and disputes in accordance with payment network rules, including the Global Acquirer Risk Standards. They also must comply with these Visa risk compliance programs:

* Visa Fraud Monitoring Program

* Visa Dispute Monitoring Program
  {#cp-intro-transactions-risk-control_ul_gmj_31g_d3c} To meet risk control requirements, acquirers can use one of these options:

* Enable `Cybersource` transaction and fraud monitoring tools.

* Ensure that their payment technology partners (PTPs) implement transaction and fraud monitoring tools.

* Deploy their own transaction and fraud monitoring tools.

Each option provides necessary fraud and risk controls for direct merchant relationships and for PTPs that do not operate their own monitoring solutions. For more information, see [Fraud and Risk Management Solutions](https://www.cybersource.com/en-us/solutions/fraud-and-risk-management.md "").

Supported Transaction Types and Integrations {#cp-retail-cup-txn-types}
=======================================================================

The table lists card-present retail transaction types and integrations supported by `China UnionPay`. The standard industry term for each transaction type is listed with the corresponding `China UnionPay` term.  
These device types are supported:

* Point-of-sale (POS) devices
* Cardholder-activated terminals (CATs)/unattended terminals
* Mobile point-of-sale (mPOS) devices
* Software point-of-sale (SoftPOS) devices, contactless only

{#cp-retail-cup-txn-types_ul_l43_krr_pkc}  
The values listed in the Comments Field Value column of the table are entered in the clientReferenceInformation.comments REST API field of transaction requests.  
For information about required EMV tags, see [Required EMV Tags](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-retail-pymnt-svcs-cup-intro/cp-retail-cup-emv-tags.md "").

| Transaction Type \| `China UnionPay` Term                           | Comments Field Value     | Entry Mode                               | PIN Capability                                                                  | Device Type                                    |
|:--------------------------------------------------------------------|:-------------------------|:-----------------------------------------|:--------------------------------------------------------------------------------|:-----------------------------------------------|
| Authorization                                                       | `Auth`                   | * Contact * Contactless * Swiped * Keyed | * Online PIN: Contact, Contactless, Swiped, Keyed * PINless: Contactless, Keyed | * POS * CAT * mPOS * SoftPOS: Contactless only |
| `China UnionPay` term: *Pre-Authorization*                          | `Auth`                   | * Contact * Contactless * Swiped * Keyed | * Online PIN: Contact, Contactless, Swiped, Keyed * PINless: Contactless, Keyed | * POS * CAT * mPOS * SoftPOS: Contactless only |
| Sale                                                                | `Sale`                   | * Contact * Contactless * Swiped * Keyed | * Online PIN: Contact, Contactless, Swiped, Keyed * PINless: Contactless, Keyed | * POS * CAT * mPOS * SoftPOS: Contactless only |
| `China UnionPay` term: *Purchase*                                   | `Sale`                   | * Contact * Contactless * Swiped * Keyed | * Online PIN: Contact, Contactless, Swiped, Keyed * PINless: Contactless, Keyed | * POS * CAT * mPOS * SoftPOS: Contactless only |
| Capture                                                             | `Capture`                | * Contact * Contactless * Swiped * Keyed | * Online PIN: Contact, Contactless, Swiped, Keyed * PINless: Contactless, Keyed | * POS * CAT * mPOS * SoftPOS: Contactless only |
| `China UnionPay` term: *Pre-Authorization Completion*               | `Capture`                | * Contact * Contactless * Swiped * Keyed | * Online PIN: Contact, Contactless, Swiped, Keyed * PINless: Contactless, Keyed | * POS * CAT * mPOS * SoftPOS: Contactless only |
| Refund                                                              | `Refund`                 | * Contact * Contactless * Swiped * Keyed | * Does not apply.                                                               | * POS * CAT * mPOS * SoftPOS: Contactless only |
| `China UnionPay` term: *Refund - Matched*                           | `Refund`                 | * Contact * Contactless * Swiped * Keyed | * Does not apply.                                                               | * POS * CAT * mPOS * SoftPOS: Contactless only |
| Stand-Alone Credit                                                  | `Stand-alone Credit`     | * Contact * Contactless * Swiped * Keyed | * Does not apply.                                                               | * POS * CAT * mPOS * SoftPOS: Contactless only |
| `China UnionPay` term: *Refund - Un-matched*                        | `Stand-alone Credit`     | * Contact * Contactless * Swiped * Keyed | * Does not apply.                                                               | * POS * CAT * mPOS * SoftPOS: Contactless only |
| Authorization Reversal                                              | `Auth Reversal`          | * Contact * Contactless * Swiped * Keyed | * Online PIN: Contact, Contactless, Swiped, Keyed * PINless: Contactless, Keyed | * POS * mPOS * SoftPOS: Contactless only       |
| `China UnionPay` term: *Pre-Authorization Cancellation*             | `Auth Reversal`          | * Contact * Contactless * Swiped * Keyed | * Online PIN: Contact, Contactless, Swiped, Keyed * PINless: Contactless, Keyed | * POS * mPOS * SoftPOS: Contactless only       |
| Time-Out Authorization Reversal                                     | `Time-out Auth Reversal` | * Does not apply.                        | * Does not apply.                                                               | * Does not apply.                              |
| `China UnionPay` term: *Reversal of a Pre-Authorization*            | `Time-out Auth Reversal` | * Does not apply.                        | * Does not apply.                                                               | * Does not apply.                              |
| Void Sale                                                           | `Sale Void`              | * Contact * Contactless * Swiped * Keyed | * Online PIN: Contact, Contactless, Swiped, Keyed * PINless: Contactless, Keyed | * POS * mPOS * SoftPOS: Contactless only       |
| `China UnionPay` term: *Purchase Cancellation*                      | `Sale Void`              | * Contact * Contactless * Swiped * Keyed | * Online PIN: Contact, Contactless, Swiped, Keyed * PINless: Contactless, Keyed | * POS * mPOS * SoftPOS: Contactless only       |
| Void Capture                                                        | `Capture Void`           | * Contact * Contactless * Swiped * Keyed | * Online PIN: Contact, Contactless, Swiped, Keyed * PINless: Contactless, Keyed | * POS * mPOS * SoftPOS: Contactless only       |
| `China UnionPay` term: *Pre-Authorization Completion Cancellation*  | `Capture Void`           | * Contact * Contactless * Swiped * Keyed | * Online PIN: Contact, Contactless, Swiped, Keyed * PINless: Contactless, Keyed | * POS * mPOS * SoftPOS: Contactless only       |
| Time-Out Void Sale                                                  | `Sale Time-out Void`     | * Does not apply.                        | * Does not apply.                                                               | * Does not apply.                              |
| `China UnionPay` term: *Reversal of a Purchase*                     | `Sale Time-out Void`     | * Does not apply.                        | * Does not apply.                                                               | * Does not apply.                              |
| Time-Out Void Capture                                               | `Capture Time-out Void`  | * Does not apply.                        | * Does not apply.                                                               | * Does not apply.                              |
| `China UnionPay` term: *Reversal of a Pre-Authorization Completion* | `Capture Time-out Void`  | * Does not apply.                        | * Does not apply.                                                               | * Does not apply.                              |
[Supported Transaction Types and Integrations for `China UnionPay`]

Card-Present Retail Payment Services {#cp-retail-pymnt-svcs-cup-intro}
======================================================================

This section describes various card-present retail payment services for `China UnionPay` and how to use them.

Required EMV Tags {#cp-retail-cup-emv-tags}
===========================================

The EMV tags listed in the table are required for `China UnionPay` requests that include the pointOfSaleInformation.emv.tags REST API field.  
These are the values in the Attributes column of the table:

* `b`: Binary (binary number or bit combination)
* `cn`: Binary Coded Decimal
* `an`: Alphanumeric data elements (each byte can be A-Z, a-z, or 0-9)

| Tag ID | Tag Name                                             | Tag Length (Characters) | Attribute                                              |
|:-------|:-----------------------------------------------------|:------------------------|:-------------------------------------------------------|
| 9F26   | Application Cryptogram (AC)                          | 8                       | `b`                                                    |
| 9F27   | Cryptogram Information Data                          | 1                       | `b`                                                    |
| 9F10   | Issuer Application Data (IAD)                        | Maximum 32              | `b`                                                    |
| 9F37   | Unpredictable Number                                 | 4                       | `b`                                                    |
| 9F36   | Application Transaction Counter (ATC)                | 2                       | `b`                                                    |
| 95     | Terminal Verification Result (TVR)                   | 5                       | `b`                                                    |
| 9A     | Transaction Date                                     | 3                       | `cn` (including a 6-digit valid number, format YYMMDD) |
| 9C     | Transaction Type                                     | 1                       | `cn` (including a 2-digit valid number)                |
| 9F02   | Transaction Amount or Amount Authorized              | 6                       | `cn` (including a 12-digit valid number)               |
| 5F2A   | Transaction Currency Code                            | 2                       | `cn` (including a 3-digit valid number)                |
| 82     | Application Interchange Profile                      | 2                       | `b`                                                    |
| 9F1A   | Terminal Country Code                                | 2                       | `cn` (including a 3-digit valid number)                |
| 9F03   | Amount Other                                         | 6                       | `cn` (including a 12-digit valid number)               |
| 9F33   | Terminal Capabilities                                | 3                       | `b`                                                    |
| 9F34   | Cardholder Verification Method Result (CVMR)         | 3                       | `b`                                                    |
| 9F35   | Terminal Type                                        | 1                       | `cn` (a 2-digit valid number)                          |
| 9F1E   | Interface Device Serial Number (IFD)                 | 8                       | `an`                                                   |
| 84     | Dedicated File Name (DF)                             | 5\~16                   | `b`                                                    |
| 9F09   | Terminal Application Version Number                  | 2                       | `b`                                                    |
| 9F41   | Transaction Sequence Counter                         | 2\~4                    | `cn` (including a 4-digit to 8-digit valid number)     |
| 91     | Issuer Authentication Data                           | 8\~16                   | `b`                                                    |
| 71     | Issuer Script Template 1                             | 1\~128                  | `b`                                                    |
| 72     | Issuer Script Template 2                             | 1\~128                  | `b`                                                    |
| DF31   | Issuer Script Results                                | 5\~21                   | `b`                                                    |
| 9F74   | Issuer Authorization Code -- Electronic Cash (ECIAC) | 6                       | `an`                                                   |
| 9F63   | Card Product Identification Information              | 16                      | `b`                                                    |
[EMV Tags]

For the Transaction Amount or Amount Authorized tag (`9F02`), the value in Field 55 records the transaction amount transmitted from the terminal to the ICC/chip card. This value might be the same as, or different from, the value in Field 4, which indicates the actual transaction amount charged to the cardholder.  
When QR code (QRC) data contains chip information, the acquirer must submit chip information in Field 55 with the same transmission requirements.

Authorization {#cp-retail-auth-cup-intro}
=========================================

Use this information to process an authorization. An authorization verifies that funds are available and reserves them for a subsequent capture.  
The `China UnionPay` term for an authorization is *pre-authorization*.  
For more information about transaction types, see [Supported Transaction Types and Integrations](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-intro-cpc/cp-retail-cup-txn-types.md ""). Also see [Required EMV Tags](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-retail-pymnt-svcs-cup-intro/cp-retail-cup-emv-tags.md "").

Endpoint {#cp-retail-auth-cup-intro_d7e16}
------------------------------------------

**Production:** `POST ``https://api.cybersource.com``/pts/v2/payments`{#cp-retail-auth-cup-intro_d7e25}  
**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/payments`{#cp-retail-auth-cup-intro_d7e35}

Required Fields for an Authorization {#cp-retail-auth-cup-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 "")
:

[clientReferenceInformation.comments](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-comments.md "")
:
Set the value to `Auth`.

[clientReferenceInformation.partner.developerId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-developer-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.solutionId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-solution-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.thirdPartyCertificationNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-third-party-certnum.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.transactionId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-transaction-id.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 "")
:

[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.card.expirationMonth](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-mo.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.expirationYear](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-year.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.number](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-number.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.securityCode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-security-code-a.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.type](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-type-a.md "")
:
Set the value to `062`.

[pointOfSaleInformation.catLevel](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-cat-level.md "")
:
Set the value to `1` or `2` for unattended devices, `5` for SoftPOS, or `6` for mPOS.

[pointOfSaleInformation.emv.cardSequenceNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-card-sequence-num.md "")
:
A value is required when EMV tag 5F34 is configured on the ICC/chip card.

[pointOfSaleInformation.emv.fallback](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-fallback-a.md "")
:
A value is required for fallback scenarios.

[pointOfSaleInformation.emv.fallbackCondition](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-fallback-condition.md "")
:
A value is required for fallback scenarios in swiped or keyed transactions. Set the value to `1` or `2`.

[pointOfSaleInformation.emv.tags](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-tags.md "")
:
A value is required for full EMV on contact and contactless entry modes.

[pointOfSaleInformation.encryptedKeySerialNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-encrypted-key-serial-num.md "")
:
A value is required for PIN transactions using DUKPT for encryption.

[pointOfSaleInformation.encryptedPin](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-encrypted-pin.md "")
:
A value is required for PIN transactions.

[pointOfSaleInformation.entryMode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-entry-mode.md "")
:
Set the value to `contact`, `contactless`, `swiped`, or `keyed`.

[pointOfSaleInformation.pinBlockEncodingFormat](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-pin-block-encoding-format.md "")
:
Set the value to `0` or `1` for PIN transactions.

[pointOfSaleInformation.terminalCapability](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-capability.md "")
:
A value is required when configuring POS terminal capability.

[pointOfSaleInformation.terminalPinCapability](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-pin-capability.md "")
:
A value is required for PIN transactions.

[pointOfSaleInformation.trackData](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-track-data.md "")
:
A value is required for `contact`, `contactless`, and `swiped` entry modes.

[processingInformation.commerceIndicator](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-commerce-ind.md "")
:
Set the value to `retail`.

Optional Fields for an Authorization {#cp-retail-auth-cup-opt-fields}
=====================================================================

When you do not include one of these optional fields in an authorization request, the value in your merchant account or configuration is used.

[merchantInformation.categoryCode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-category-code-a.md "")
:

[merchantInformation.merchantDescriptor.country](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-merchant-descriptor-country-a.md "")
:

[merchantInformation.merchantDescriptor.locality](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-merchant-descriptor-locality.md "")
:

[merchantInformation.merchantDescriptor.name](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-merchant-descriptor-name.md "")
:

[merchantInformation.transactionLocalDateTime](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-transaction-local-date-time.md "")
:

[pointOfSaleInformation.terminalId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-id.md "")
:

REST Example: Authorization {#cp-retail-auth-cup-ex-rest}
=========================================================

Request

```
{
    "clientReferenceInformation": {
        "code": "CUPPIN",
        "comments": "Auth",
        "transactionId": "uniqueValue221",
        "partner": {
            "thirdPartyCertificationNumber": "testTPCN",
            "developerId": "cup12",
            "solutionId": "cup123"
        }
    },
    "pointOfSaleInformation": {
        "encryptedPin": "5AA3077474494121",
        "trackData": ";6210947000000013=30102010000000000000?",
        "encryptedKeySerialNumber": "23288800020018400013",
        "pinBlockEncodingFormat": "0",
        "terminalId": "12348765",
        "terminalPinCapability": "6",
        "emv": {
            "cardSequenceNumber": "001",
            "tags": "840B55494343204372656469749F3704333731379F2608ED64F3832566D2799F2701805F2A0203449A032501229C0103950500000000009F1A0203449F02060000000010009F090200109F1E0830303030303030319F03060000000000009F41024714820200009F33032040409F3501229F34034203009F100807000103A02002019F36020005910AE0581BE5F01EC4C33030"
        },
        "entryMode": "contact",
        "terminalCapability": "4"
    },
    "processingInformation": {
        "commerceIndicator": "retail"
    },
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "421",
            "currency": "CNY"
        }
    },
    "paymentInformation": {
        "card": {
            "type": "062"
        }
    }
}
```

Response to a Successful Request

```
{
    "_links": {
        "authReversal": {
            "method": "POST",
            "href": "/pts/v2/payments/7848077500097009811061/reversals"
        },
        "self": {
            "method": "GET",
            "href": "/pts/v2/payments/7848077500097009811061"
        },
        "capture": {
            "method": "POST",
            "href": "/pts/v2/payments/7848077500097009811061/captures"
        }
    },
    "clientReferenceInformation": {
        "code": "CUPPIN",
        "transactionId": "uniqueValue221"
    },
    "id": "7848077500097009811061",
    "orderInformation": {
        "amountDetails": {
            "authorizedAmount": "421.00",
            "currency": "CNY"
        }
    },
    "paymentAccountInformation": {
        "card": {
            "type": "062"
        }
    },
    "paymentInformation": {
        "tokenizedCard": {
            "type": "062"
        },
        "card": {
            "type": "062"
        }
    },
    "processorInformation": {
        "approvalCode": "414384",
        "settlementDate": "0723",
        "responseCode": "00",
        "avs": {
            "code": "2"
        }
    },
    "promotionInformation": {
        "code": "Discount:35.29",
        "description": "Paid:385.71",
        "discountApplied": "35.29"
    },
    "reconciliationId": "620411220530",
    "status": "AUTHORIZED",
    "submitTimeUtc": "2026-07-23T11:55:51Z"
}
```

Sale {#cp-retail-sale-cup-intro}
================================

Use this information to process a sale, which combines an authorization and capture into a single transaction.  
The `China UnionPay` term for a sale is *purchase*.  
For more information about transaction types, see [Supported Transaction Types and Integrations](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-intro-cpc/cp-retail-cup-txn-types.md ""). Also see [Required EMV Tags](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-retail-pymnt-svcs-cup-intro/cp-retail-cup-emv-tags.md "").

Endpoint {#cp-retail-sale-cup-intro_d7e240}
-------------------------------------------

**Production:** `POST ``https://api.cybersource.com``/pts/v2/payments`{#cp-retail-sale-cup-intro_d7e248}  
**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/payments`{#cp-retail-sale-cup-intro_d7e258}

Required Fields for a Sale {#cp-retail-sale-cup-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 "")
:

[clientReferenceInformation.comments](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-comments.md "")
:
Set the value to `Sale`.

[clientReferenceInformation.partner.developerId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-developer-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.solutionId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-solution-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.thirdPartyCertificationNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-third-party-certnum.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.transactionId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-transaction-id.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 "")
:

[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.card.expirationMonth](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-mo.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.expirationYear](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-year.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.number](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-number.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.securityCode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-security-code-a.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.type](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-type-a.md "")
:
Set the value to `062`.

[pointOfSaleInformation.catLevel](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-cat-level.md "")
:
Set the value to `1` or `2` for unattended devices, `5` for SoftPOS, or `6` for mPOS.

[pointOfSaleInformation.emv.cardSequenceNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-card-sequence-num.md "")
:
A value is required when EMV tag 5F34 is configured on the ICC/chip card.

[pointOfSaleInformation.emv.fallback](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-fallback-a.md "")
:
A value is required for fallback scenarios.

[pointOfSaleInformation.emv.fallbackCondition](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-fallback-condition.md "")
:
A value is required for fallback scenarios in swiped or keyed transactions. Set the value to `1` or `2`.

[pointOfSaleInformation.emv.tags](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-tags.md "")
:
A value is required for full EMV on contact and contactless entry modes.

[pointOfSaleInformation.encryptedKeySerialNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-encrypted-key-serial-num.md "")
:
A value is required for PIN transactions using DUKPT for encryption.

[pointOfSaleInformation.encryptedPin](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-encrypted-pin.md "")
:
A value is required for PIN transactions.

[pointOfSaleInformation.entryMode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-entry-mode.md "")
:
Set the value to `contact`, `contactless`, `swiped`, or `keyed`.

[pointOfSaleInformation.pinBlockEncodingFormat](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-pin-block-encoding-format.md "")
:
Set the value to `0` or `1` for PIN transactions.

[pointOfSaleInformation.terminalCapability](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-capability.md "")
:
A value is required when configuring POS terminal capability.

[pointOfSaleInformation.terminalPinCapability](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-pin-capability.md "")
:
A value is required for PIN transactions.

[pointOfSaleInformation.trackData](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-track-data.md "")
:
A value is required for `contact`, `contactless`, and `swiped` entry modes.

[processingInformation.capture](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-capture-a.md "")
:
Set the value to `true`.

[processingInformation.commerceIndicator](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-commerce-ind.md "")
:
Set the value to `retail`.

Optional Fields for a Sale {#cp-retail-sale-cup-opt-fields}
===========================================================

When you do not include one of these optional fields in a sale request, the value in your merchant account or configuration is used.

[merchantInformation.categoryCode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-category-code-a.md "")
:

[merchantInformation.merchantDescriptor.country](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-merchant-descriptor-country-a.md "")
:

[merchantInformation.merchantDescriptor.locality](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-merchant-descriptor-locality.md "")
:

[merchantInformation.merchantDescriptor.name](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-merchant-descriptor-name.md "")
:

[merchantInformation.transactionLocalDateTime](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-transaction-local-date-time.md "")
:

[pointOfSaleInformation.terminalId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-id.md "")
:

REST Example: Sale {#cp-retail-sale-cup-ex-rest}
================================================

Request

```
{
    "clientReferenceInformation": {
        "code": "CUPPIN",
        "comments": "Sale",
        "transactionId": "uniqueValue221",
        "partner": {
            "thirdPartyCertificationNumber": "testTPCN",
            "developerId": "cup12",
            "solutionId": "cup123"
        }
    },
    "pointOfSaleInformation": {
        "encryptedPin": "5AA3077474494121",
        "trackData": ";6210947000000013=30102010000000000000?",
        "encryptedKeySerialNumber": "23288800020018400013",
        "pinBlockEncodingFormat": "0",
        "terminalId": "12348765",
        "terminalPinCapability": "6",
        "emv": {
            "cardSequenceNumber": "001",
            "tags": "840B55494343204372656469749F3704333731379F2608ED64F3832566D2799F2701805F2A0203449A032501229C0103950500000000009F1A0203449F02060000000010009F090200109F1E0830303030303030319F03060000000000009F41024714820200009F33032040409F3501229F34034203009F100807000103A02002019F36020005910AE0581BE5F01EC4C33030"
        },
        "entryMode": "contact",
        "terminalCapability": "4"
    },
    "processingInformation": {
        "commerceIndicator": "retail",
        "capture": "true"
    },
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "421",
            "currency": "CNY"
        }
    },
    "paymentInformation": {
        "card": {
            "type": "062"
        }
    }
}
```

Response to a Successful Request

```
{
    "_links": {
        "void": {
            "method": "POST",
            "href": "/pts/v2/payments/7848164905397011911061/voids"
        },
        "self": {
            "method": "GET",
            "href": "/pts/v2/payments/7848164905397011911061"
        }
    },
    "clientReferenceInformation": {
        "code": "CUPPIN",
        "transactionId": "uniqueValue221"
    },
    "id": "7848164905397011911061",
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "421.00",
            "authorizedAmount": "421.00",
            "currency": "CNY"
        }
    },
    "paymentAccountInformation": {
        "card": {
            "type": "062"
        }
    },
    "paymentInformation": {
        "tokenizedCard": {
            "type": "062"
        },
        "card": {
            "type": "062"
        }
    },
    "pointOfSaleInformation": {
        "emv": {
            "tags": "9F36020005910AE0581BE5F01EC4C33030720B860984180000042B2A509E"
        }
    },
    "processorInformation": {
        "settlementDate": "0723",
        "responseCode": "00",
        "avs": {
            "code": "2"
        }
    },
    "promotionInformation": {
        "code": "Discount:35.29",
        "description": "Paid:385.71",
        "discountApplied": "35.29"
    },
    "reconciliationId": "620414220544",
    "status": "AUTHORIZED",
    "submitTimeUtc": "2026-07-23T14:21:32Z"
}
```

Capture {#cp-retail-capture-cup-intro}
======================================

Use this information to capture a previous authorization. This section includes REST examples for capturing a transaction with and without using a payment card. Transactions processed without the payment card are typically initiated by the merchant's back-office staff.  
The `China UnionPay` term for a capture is *pre-authorization completion*.  
For more information about transaction types, see [Supported Transaction Types and Integrations](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-intro-cpc/cp-retail-cup-txn-types.md ""). Also see [Required EMV Tags](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-retail-pymnt-svcs-cup-intro/cp-retail-cup-emv-tags.md "").

Endpoint {#cp-retail-capture-cup-intro_d7e127}
----------------------------------------------

**Production:** `POST ``https://api.cybersource.com``/pts/v2/payments/`*{id}*`/captures`{#cp-retail-capture-cup-intro_d7e136}  
**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/payments/`*{id}*`/captures`{#cp-retail-capture-cup-intro_d7e149}  
The *{id}* is the transaction ID returned in the authorization response.

Required Fields for a Capture {#cp-retail-capture-cup-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 "")
:

[clientReferenceInformation.comments](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-comments.md "")
:
Set the value to `Capture`.

[clientReferenceInformation.partner.developerId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-developer-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.solutionId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-solution-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.thirdPartyCertificationNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-third-party-certnum.md "")
:
`Cybersource` provides the value for this field.

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

[paymentInformation.card.expirationMonth](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-mo.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.expirationYear](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-year.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.number](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-number.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.securityCode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-security-code-a.md "")
:
A value is required for keyed transactions.

[pointOfSaleInformation.emv.cardSequenceNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-card-sequence-num.md "")
:
A value is required when EMV tag 5F34 is configured on the ICC/chip card.

[pointOfSaleInformation.emv.tags](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-tags.md "")
:
A value is required for full EMV on contact and contactless entry modes.

[pointOfSaleInformation.encryptedKeySerialNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-encrypted-key-serial-num.md "")
:
A value is required for PIN transactions using DUKPT for encryption.

[pointOfSaleInformation.encryptedPin](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-encrypted-pin.md "")
:
A value is required for PIN transactions.

[pointOfSaleInformation.entryMode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-entry-mode.md "")
:
Set the value to `contact`, `contactless`, `swiped`, or `keyed`.

[pointOfSaleInformation.pinBlockEncodingFormat](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-pin-block-encoding-format.md "")
:
Set the value to `0` or `1` for PIN transactions.

[pointOfSaleInformation.terminalPinCapability](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-pin-capability.md "")
:
A value is required for PIN transactions.

[pointOfSaleInformation.trackData](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-track-data.md "")
:
A value is required for `contact`, `contactless`, and `swiped` entry modes.

[processingInformation.commerceIndicator](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-commerce-ind.md "")
:
Set the value to `retail` when PAN or track data is sent in the request for a payment initiated using a payment card.

Optional Fields for a Capture {#cp-retail-capture-cup-opt-fields}
=================================================================

When you do not include one of these optional fields in a capture request, the value in your merchant account or configuration is used.

[merchantInformation.transactionLocalDateTime](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-transaction-local-date-time.md "")
:

[pointOfSaleInformation.terminalId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-id.md "")
:

REST Example: Capture Initiated Using a Payment Card {#cp-retail-capture-cup-ex-rest-card}
==========================================================================================

Request

```
{
    "clientReferenceInformation": {
        "code": "RTS-Capture",
        "comments": "Capture",
        "partner": {
            "thirdPartyCertificationNumber": "testTPCN",
            "developerId": "cup12",
            "solutionId": "cup123"
        }
    },
    "processingInformation": {
        "commerceIndicator": "retail"
    },
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "210",
            "currency": "CNY"
        }
    },
    "pointOfSaleInformation": {
        "encryptedPin": "5AA3077474494121",
        "trackData": ";6210947000000013=30102010000000000000?",
        "encryptedKeySerialNumber": "23288800020018400013",
        "pinBlockEncodingFormat": "0",
        "terminalId": "12345678",
        "terminalPinCapability": "6",
        "entryMode": "contact",
        "emv": {
            "cardSequenceNumber": "001"
        }
    }
}
```

Response to a Successful Request

```
{
    "_links": {
        "void": {
            "method": "POST",
            "href": "/pts/v2/captures/7847874797217000511061/voids"
        },
        "self": {
            "method": "GET",
            "href": "/pts/v2/captures/7847874797217000511061"
        }
    },
    "clientReferenceInformation": {
        "code": "RTS-Capture"
    },
    "id": "7847874797217000511061",
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "210.00",
            "currency": "CNY"
        }
    },
    "processorInformation": {
        "settlementDate": "0723"
    },
    "reconciliationId": "620406220446",
    "status": "PENDING",
    "submitTimeUtc": "2026-07-23T06:18:01Z"
}
```

REST Example: Capture Initiated Without Using a Payment Card {#cp-retail-capture-cup-ex-rest-no-card}
=====================================================================================================

Request

```
{
    "clientReferenceInformation": {
        "code": "RTS-Capture",
        "comments": "Capture",
        "partner": {
            "thirdPartyCertificationNumber": "testTPCN",
            "developerId": "cup12",
            "solutionId": "cup123"
        }
    },
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "210",
            "currency": "CNY"
        }
    }
}
```

Response to a Successful Request

```
{
    "_links": {
        "void": {
            "method": "POST",
            "href": "/pts/v2/captures/7847885476267001311061/voids"
        },
        "self": {
            "method": "GET",
            "href": "/pts/v2/captures/7847885476267001311061"
        }
    },
    "clientReferenceInformation": {
        "code": "RTS-Capture"
    },
    "id": "7847885476267001311061",
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "210.00",
            "currency": "CNY"
        }
    },
    "processorInformation": {
        "settlementDate": "0723"
    },
    "reconciliationId": "620406220453",
    "status": "PENDING",
    "submitTimeUtc": "2026-07-23T06:35:48Z"
}
```

Refund {#cp-retail-refund-cup-intro}
====================================

Use this information to process a refund for a previous capture or sale. This section includes REST examples for processing a refund with and without using a payment card. Transactions processed without the payment card are typically initiated by the merchant's back-office staff.  
The `China UnionPay` term for a refund matched to a previous transaction is *refund - matched*.  
For more information about transaction types, see [Supported Transaction Types and Integrations](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-intro-cpc/cp-retail-cup-txn-types.md ""). Also see [Required EMV Tags](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-retail-pymnt-svcs-cup-intro/cp-retail-cup-emv-tags.md "").

Endpoint {#cp-retail-refund-cup-intro_d7e199}
---------------------------------------------

**Production:** `POST ``https://api.cybersource.com``/pts/v2/payments/`*{id}*`/refunds`{#cp-retail-refund-cup-intro_d7e207}  
**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/payments/`*{id}*`/refunds`{#cp-retail-refund-cup-intro_d7e220}  
The *{id}* is the transaction ID returned in the capture or sale response.

Required Fields for a Refund {#cp-retail-refund-cup-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 "")
:

[clientReferenceInformation.comments](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-comments.md "")
:
Set the value to `Refund`.

[clientReferenceInformation.partner.developerId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-developer-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.solutionId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-solution-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.thirdPartyCertificationNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-third-party-certnum.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.transactionId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-transaction-id.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 "")
:

[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.card.expirationMonth](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-mo.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.expirationYear](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-year.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.number](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-number.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.securityCode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-security-code-a.md "")
:
A value is required for keyed transactions.

[pointOfSaleInformation.emv.cardSequenceNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-card-sequence-num.md "")
:
A value is required when EMV tag 5F34 is configured on the ICC/chip card.

[pointOfSaleInformation.entryMode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-entry-mode.md "")
:
Set the value to `contact`, `contactless`, `swiped`, or `keyed`.

[pointOfSaleInformation.trackData](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-track-data.md "")
:
A value is required for `contact`, `contactless`, and `swiped` entry modes.

[processingInformation.commerceIndicator](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-commerce-ind.md "")
:
Set the value to `retail` when PAN or track data is sent in the request for a payment initiated using a payment card.

Optional Fields for a Refund {#cp-retail-refund-cup-opt-fields}
===============================================================

When you do not include one of these optional fields in a refund request, the value in your merchant account or configuration is used.

[merchantInformation.transactionLocalDateTime](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-transaction-local-date-time.md "")
:

[pointOfSaleInformation.terminalId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-id.md "")
:

REST Example: Refund Initiated Using a Payment Card {#cp-retail-refund-cup-ex-rest-card}
========================================================================================

Request

```
{
    "clientReferenceInformation": {
        "code": "Refund",
        "comments": "Refund",
        "transactionId": "uniqueValue221",
        "partner": {
            "thirdPartyCertificationNumber": "testTPCN",
            "developerId": "cup12",
            "solutionId": "cup123"
        }
    },
    "processingInformation": {
        "commerceIndicator": "retail"
    },
    "pointOfSaleInformation": {
        "terminalId": "12345678",
        "trackData": ";6225830010000202=27126210000000000001F?",
        "emv": {
            "cardSequenceNumber": 1
        },
        "entryMode": "contact"
    },
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "100.00",
            "currency": "CNY"
        }
    },
    "merchantInformation": {
        "transactionLocalDateTime": "20260724085022"
    }
}
```

Response to a Successful Request

```
{
    "_links": {
        "void": {
            "method": "POST",
            "href": "/pts/v2/refunds/7848896021147003640428/voids"
        },
        "self": {
            "method": "GET",
            "href": "/pts/v2/refunds/7848896021147003640428"
        }
    },
    "clientReferenceInformation": {
        "code": "Refund",
        "transactionId": "uniqueValue221"
    },
    "id": "7848896021147003640428",
    "orderInformation": {
        "amountDetails": {
            "currency": "cny"
        }
    },
    "processorInformation": {
        "retrievalReferenceNumber": "2300058480",
        "settlementDate": "0724"
    },
    "reconciliationId": "620510228807",
    "refundAmountDetails": {
        "currency": "CNY",
        "refundAmount": "100.00"
    },
    "status": "PENDING",
    "submitTimeUtc": "2026-07-24T10:40:07Z"
}
```

REST Example: Refund Initiated Without Using a Payment Card {#cp-retail-refund-cup-ex-rest-no-card}
===================================================================================================

Request

```
{
    "clientReferenceInformation": {
        "code": "Refund",
        "comments": "Refund",
        "transactionId": "uniqueValue221",
        "partner": {
            "thirdPartyCertificationNumber": "testTPCN",
            "developerId": "cup12",
            "solutionId": "cup123"
        }
    },
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "100.00",
            "currency": "cny"
        }
    }
}
```

Response to a Successful Request

```
{
    "_links": {
        "void": {
            "method": "POST",
            "href": "/pts/v2/refunds/7848896021147003640428/voids"
        },
        "self": {
            "method": "GET",
            "href": "/pts/v2/refunds/7848896021147003640428"
        }
    },
    "clientReferenceInformation": {
        "code": "Refund",
        "transactionId": "uniqueValue221"
    },
    "id": "7848896021147003640428",
    "orderInformation": {
        "amountDetails": {
            "currency": "cny"
        }
    },
    "processorInformation": {
        "retrievalReferenceNumber": "2300058480",
        "settlementDate": "0724"
    },
    "reconciliationId": "620510228807",
    "refundAmountDetails": {
        "currency": "cny",
        "refundAmount": "100.00"
    },
    "status": "PENDING",
    "submitTimeUtc": "2026-07-24T10:40:07Z"
}
```

Stand-Alone Credit {#cp-retail-stand-alone-credit-cup-intro}
============================================================

Use this information to process a stand-alone credit, with no reference to a previous transaction.  
The `China UnionPay` term for a refund not matched to a previous transaction is *refund - un-matched*.  
For more information about transaction types, see [Supported Transaction Types and Integrations](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-intro-cpc/cp-retail-cup-txn-types.md "").

Endpoint {#cp-retail-stand-alone-credit-cup-intro_d7e169}
---------------------------------------------------------

**Production:** `POST ``https://api.cybersource.com``/pts/v2/credits/`{#cp-retail-stand-alone-credit-cup-intro_d7e178}  
**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/credits/`{#cp-retail-stand-alone-credit-cup-intro_d7e188}

Required Fields for a Stand-Alone Credit {#cp-retail-stand-alone-credit-cup-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 "")
:

[clientReferenceInformation.comments](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-comments.md "")
:
Set the value to `Stand-alone Credit`.

[clientReferenceInformation.partner.developerId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-developer-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.solutionId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-solution-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.thirdPartyCertificationNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-third-party-certnum.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.transactionId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-transaction-id.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 "")
:

[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.card.expirationMonth](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-mo.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.expirationYear](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-year.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.number](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-number.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.securityCode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-security-code-a.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.type](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-type-a.md "")
:
Set the value to `062`.

[pointOfSaleInformation.catLevel](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-cat-level.md "")
:
Set the value to `1` or `2` for unattended devices, `5` for SoftPOS, or `6` for mPOS.

[pointOfSaleInformation.emv.cardSequenceNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-card-sequence-num.md "")
:
A value is required when EMV tag 5F34 is configured on the ICC/chip card.

[pointOfSaleInformation.emv.fallback](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-fallback-a.md "")
:
A value is required for fallback scenarios for transactions initiated using a card.

[pointOfSaleInformation.emv.fallbackCondition](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-fallback-condition.md "")
:
A value is required for fallback scenarios in swiped or keyed transactions initiated using a card. Set the value to `1` or `2`.

[pointOfSaleInformation.entryMode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-entry-mode.md "")
:
Set the value to `contact`, `contactless`, `swiped`, or `keyed`.

[pointOfSaleInformation.terminalCapability](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-capability.md "")
:
A value is required when configuring POS terminal capability for transactions initiated using a card.

[pointOfSaleInformation.trackData](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-track-data.md "")
:
A value is required for `contact`, `contactless`, and `swiped` entry modes.

[processingInformation.commerceIndicator](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-commerce-ind.md "")
:
Set the value to `retail`.

Optional Fields for a Stand-Alone Credit {#cp-retail-stand-alone-credit-cup-opt-fields}
=======================================================================================

When you do not include one of these optional fields in a stand-alone credit request, the value in your merchant account or configuration is used.

[merchantInformation.categoryCode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-category-code-a.md "")
:

[merchantInformation.merchantDescriptor.country](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-merchant-descriptor-country-a.md "")
:

[merchantInformation.merchantDescriptor.locality](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-merchant-descriptor-locality.md "")
:

[merchantInformation.merchantDescriptor.name](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-merchant-descriptor-name.md "")
:

[merchantInformation.transactionLocalDateTime](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-transaction-local-date-time.md "")
:

[pointOfSaleInformation.terminalId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-id.md "")
:

REST Example: Stand-Alone Credit {#cp-retail-stand-alone-credit-cup-ex-rest-card}
=================================================================================

Request

```
{
    "clientReferenceInformation": {
        "code": "FE56907",
        "comments": "Stand-alone Credit",
        "transactionId": "uniqueValue221",
        "partner": {
            "thirdPartyCertificationNumber": "testTPCN",
            "developerId": "cup12",
            "solutionId": "cup123"
        }
    },
    "processingInformation": {
        "commerceIndicator": "retail"
    },
    "pointOfSaleInformation": {
        "terminalId": "12345678",
        "terminalCapability": "5",
        "trackData": ";6225830010000202=27126210000000000001F?",
        "emv": {
            "cardSequenceNumber": 1
        },
        "entryMode": "contactless"
    },
    "paymentInformation": {
        "card": {
            "type": "062"
        }
    },
    "orderInformation": {
        "amountDetails": {
            "totalAmount": "100.00",
            "currency": "CNY"
        }
    },
    "merchantInformation": {
        "transactionLocalDateTime": "20260724085022"
    }
}
```

Response to a Successful Request

```
{
    "_links": {
        "void": {
            "method": "POST",
            "href": "/pts/v2/credits/7848177260997013211061/voids"
        },
        "self": {
            "method": "GET",
            "href": "/pts/v2/credits/7848177260997013211061"
        }
    },
    "clientReferenceInformation": {
        "code": "FE56907",
        "transactionId": "uniqueValue221"
    },
    "creditAmountDetails": {
        "currency": "CNY",
        "creditAmount": "100.00"
    },
    "id": "7848177260997013211061",
    "orderInformation": {
        "amountDetails": {
            "currency": "CNY"
        }
    },
    "paymentAccountInformation": {
        "card": {
            "type": "062"
        }
    },
    "paymentInformation": {
        "tokenizedCard": {
            "type": "062"
        },
        "card": {
            "type": "062"
        }
    },
    "processorInformation": {
        "retrievalReferenceNumber": "2300056700",
        "settlementDate": "0723"
    },
    "reconciliationId": "620414220556",
    "status": "PENDING",
    "submitTimeUtc": "2026-07-23T14:42:09Z"
}
```

Authorization Reversal {#cp-retail-auth-reversal-cup-intro}
===========================================================

Use this information to reverse a previous authorization. This section includes REST examples for reversing an authorization with and without using a payment card. Transactions processed without the payment card are typically initiated by the merchant's back-office staff.  
The `China UnionPay` term for an authorization reversal is *pre-authorization cancellation*.  
For more information about transaction types, see [Supported Transaction Types and Integrations](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-intro-cpc/cp-retail-cup-txn-types.md ""). Also see [Required EMV Tags](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-retail-pymnt-svcs-cup-intro/cp-retail-cup-emv-tags.md "").

Endpoint {#cp-retail-auth-reversal-cup-intro_d7e85}
---------------------------------------------------

**Production:** `POST ``https://api.cybersource.com``/pts/v2/payments/`*{id}*`/reversals`{#cp-retail-auth-reversal-cup-intro_d7e94}  
**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/payments/`*{id}*`/reversals`{#cp-retail-auth-reversal-cup-intro_d7e107}  
The *{id}* is the transaction ID returned in the authorization response.

Required Fields for an Authorization Reversal {#cp-retail-auth-reversal-cup-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 "")
:

[clientReferenceInformation.comments](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-comments.md "")
:
Set the value to `Auth Reversal`.

[clientReferenceInformation.partner.developerId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-developer-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.solutionId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-solution-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.thirdPartyCertificationNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-third-party-certnum.md "")
:
`Cybersource` provides the value for this field.

[paymentInformation.card.expirationMonth](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-mo.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.expirationYear](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-year.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.number](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-number.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.securityCode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-security-code-a.md "")
:
A value is required for keyed transactions.

[pointOfSaleInformation.emv.cardSequenceNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-card-sequence-num.md "")
:
A value is required when EMV tag 5F34 is configured on the ICC/chip card.

[pointOfSaleInformation.encryptedKeySerialNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-encrypted-key-serial-num.md "")
:
A value is required for PIN transactions using DUKPT for encryption.

[pointOfSaleInformation.encryptedPin](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-encrypted-pin.md "")
:
A value is required for PIN transactions.

[pointOfSaleInformation.entryMode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-entry-mode.md "")
:
Set the value to `contact`, `contactless`, `swiped`, or `keyed`.

[pointOfSaleInformation.pinBlockEncodingFormat](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-pin-block-encoding-format.md "")
:
Set the value to `0` or `1` for PIN transactions.

[pointOfSaleInformation.terminalPinCapability](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-pin-capability.md "")
:
A value is required for PIN transactions.

[pointOfSaleInformation.trackData](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-track-data.md "")
:
A value is required for `contact`, `contactless`, and `swiped` entry modes.

[processingInformation.commerceIndicator](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-commerce-ind.md "")
:
Set the value to `retail` when PAN or track data is sent in the request for a payment initiated using a payment card.

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

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

Optional Fields for an Authorization Reversal {#cp-retail-auth-reversal-cup-opt-fields}
=======================================================================================

When you do not include one of these optional fields in an authorization reversal request, the value in your merchant account or configuration is used.

[merchantInformation.transactionLocalDateTime](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-transaction-local-date-time.md "")
:

[pointOfSaleInformation.terminalId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-id.md "")
:

REST Example: Authorization Reversal Initiated Using a Payment Card {#cp-retail-auth-reversal-cup-ex-rest-card}
===============================================================================================================

Request

```
{
  "clientReferenceInformation": {
    "code": "RTS-Auth-Reversal",
    "comments": "Auth Reversal",
    "partner": {
      "thirdPartyCertificationNumber": "testTPCN",
      "developerId": "cup12",
      "solutionId": "cup123"
    }
  },
  "processingInformation": {
    "commerceIndicator": "retail"
  },
  "reversalInformation": {
    "amountDetails": {
      "currency": "CNY",
      "totalAmount": "421"
    }
  },
  "pointOfSaleInformation": {
    "encryptedPin": "5AA3077474494121",
    "trackData": ";6210947000000013=30102010000000000000?",
    "encryptedKeySerialNumber": "23288800020018400013",
    "pinBlockEncodingFormat": "0",
    "terminalPinCapability": "6",
    "terminalId": "12345678",
    "entryMode": "contact",
    "emv": {
      "cardSequenceNumber": "001"
    }
  }
}
```

Response to a Successful Request

```
{
    "_links": {
        "self": {
            "method": "GET",
            "href": "/pts/v2/reversals/7847895874767002111061"
        }
    },
    "authorizationInformation": {
        "approvalCode": "414304"
    },
    "clientReferenceInformation": {
        "code": "RTS-Auth-Reversal"
    },
    "id": "7847895874767002111061",
    "orderInformation": {
        "amountDetails": {
            "currency": "CNY"
        }
    },
    "processorInformation": {
        "settlementDate": "0723",
        "responseCode": "00"
    },
    "reconciliationId": "620406220460",
    "reversalAmountDetails": {
        "reversedAmount": "421.00",
        "currency": "CNY"
    },
    "status": "REVERSED",
    "submitTimeUtc": "2026-07-23T06:53:08Z"
}
```

REST Example: Authorization Reversal Initiated Without Using a Payment Card {#cp-retail-auth-reversal-cup-ex-rest-no-card}
==========================================================================================================================

Request

```
{
  "clientReferenceInformation": {
    "code": "RTS-Auth-Reversal",
    "comments": "Auth Reversal",
    "transactionId": "uniqueValue221",
    "partner": {
      "thirdPartyCertificationNumber": "testTPCN",
      "developerId": "cup12",
      "solutionId": "cup123"
    }
  },
  "reversalInformation": {
    "amountDetails": {
      "currency": "CNY",
      "totalAmount": "421"
    }
  }
}
```

Response to a Successful Request

```
{
    "_links": {
        "self": {
            "method": "GET",
            "href": "/pts/v2/reversals/7847897892327002611061"
        }
    },
    "authorizationInformation": {
        "approvalCode": "414305"
    },
    "clientReferenceInformation": {
        "code": "RTS-Auth-Reversal"
    },
    "id": "7847897892327002611061",
    "orderInformation": {
        "amountDetails": {
            "currency": "CNY"
        }
    },
    "processorInformation": {
        "settlementDate": "0723",
        "responseCode": "00"
    },
    "reconciliationId": "620406220464",
    "reversalAmountDetails": {
        "reversedAmount": "421.00",
        "currency": "CNY"
    },
    "status": "REVERSED",
    "submitTimeUtc": "2026-07-23T06:56:30Z"
}
```

Time-Out Authorization Reversal {#cp-retail-auth-timeout-reversal-cup-intro}
============================================================================

Use this information to process a merchant-initiated, time-out authorization reversal when you do not receive a response message after sending an authorization request.  
The `China UnionPay` term for a time-out authorization reversal is *reversal of a pre-authorization*.  
For more information about transaction types, see [Supported Transaction Types and Integrations](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-intro-cpc/cp-retail-cup-txn-types.md "").

Endpoint {#cp-retail-auth-timeout-reversal-cup-intro_d7e556}
------------------------------------------------------------

**Production:** `POST ``https://api.cybersource.com``/pts/v2/reversals`{#cp-retail-auth-timeout-reversal-cup-intro_d7e565}  
**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/reversals`{#cp-retail-auth-timeout-reversal-cup-intro_d7e575}

Required Fields for a Time-Out Authorization Reversal {#cp-retail-auth-timeout-reversal-cup-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 "")
:

[clientReferenceInformation.comments](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-comments.md "")
:
Set the value to `Time-out Auth Reversal`.

[clientReferenceInformation.partner.developerId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-developer-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.solutionId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-solution-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.thirdPartyCertificationNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-third-party-certnum.md "")
:
`Cybersource` provides the value for this field.

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

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

REST Example: Time-Out Authorization Reversal {#cp-retail-auth-timeout-reversal-cup-ex-rest}
============================================================================================

Request

```
{
  "clientReferenceInformation": {
    "code": "RTS-Auth-TOR",
    "transactionId": "cppincert1",
    "comments": "Time-out Auth Reversal",
    "partner": {
      "thirdPartyCertificationNumber": "testTPCN",
      "developerId": "cup12",
      "solutionId": "cup123"
    }
  },
  "reversalInformation": {
    "amountDetails": {
      "totalAmount": "505"
    }
  }
}
```

Response to a Successful Request

```
{
    "_links": {
        "self": {
            "method": "GET",
            "href": "/pts/v2/reversals/7848899814087004240428"
        }
    },
    "clientReferenceInformation": {
        "code": "RTS-Auth-TOR",
        "transactionId": "cppincert1"
    },
    "id": "7848899814087004240428",
    "orderInformation": {
        "amountDetails": {
            "currency": "CNY"
        }
    },
    "processorInformation": {
        "settlementDate": "0724",
        "responseCode": "00"
    },
    "reconciliationId": "620510228810",
    "reversalAmountDetails": {
        "reversedAmount": "505.00",
        "currency": "CNY"
    },
    "status": "REVERSED",
    "submitTimeUtc": "2026-07-24T10:40:07Z"
}
```

Void a Sale or Capture {#cp-retail-void-cup-intro}
==================================================

Use this information to void a sale or a capture transaction. This section includes REST examples for voiding a sale or capture with and without using a payment card. Transactions processed without the payment card are typically initiated by the merchant's back-office staff.  
The `China UnionPay` term for a voided sale is *purchase cancellation* . The term for a voided capture is *pre-authorization completion cancellation*.  
For more information about transaction types, see [Supported Transaction Types and Integrations](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-intro-cpc/cp-retail-cup-txn-types.md ""). Also see [Required EMV Tags](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-retail-pymnt-svcs-cup-intro/cp-retail-cup-emv-tags.md "").

Void a Sale
-----------

Use this endpoint to void a sale transaction.

Endpoint {#cp-retail-void-cup-intro_d7e429}
-------------------------------------------

**Production:** `POST ``https://api.cybersource.com``/pts/v2/payments/`*{id}*`/voids`{#cp-retail-void-cup-intro_d7e438}  
**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/payments/`*{id}*`/voids`{#cp-retail-void-cup-intro_d7e451}  
The *{id}* is the transaction ID returned in the sale response.

Void a Capture
--------------

Use this endpoint to void a capture transaction.

Endpoint {#cp-retail-void-cup-intro_d7e387}
-------------------------------------------

**Production:** `POST ``https://api.cybersource.com``/pts/v2/captures/`*{id}*`/voids`{#cp-retail-void-cup-intro_d7e396}  
**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/captures/`*{id}*`/voids`{#cp-retail-void-cup-intro_d7e409}  
The *{id}* is the transaction ID returned in the capture response.

Required Fields for Voiding a Sale or Capture {#cp-retail-void-cup-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 "")
:

[clientReferenceInformation.comments](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-comments.md "")
:
Set the value to `Sale Void` or `Capture Void`.

[clientReferenceInformation.partner.developerId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-developer-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.solutionId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-solution-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.thirdPartyCertificationNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-third-party-certnum.md "")
:
`Cybersource` provides the value for this field.

[paymentInformation.card.expirationMonth](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-mo.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.expirationYear](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-exp-year.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.number](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-number.md "")
:
A value is required for keyed transactions.

[paymentInformation.card.securityCode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/payment-info-aa/payment-info-card-security-code-a.md "")
:
A value is required for keyed transactions.

[pointOfSaleInformation.emv.cardSequenceNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-emv-card-sequence-num.md "")
:
A value is required when EMV tag 5F34 is configured on the ICC/chip card.

[pointOfSaleInformation.encryptedKeySerialNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-encrypted-key-serial-num.md "")
:
A value is required for PIN transactions using DUKPT for encryption.

[pointOfSaleInformation.encryptedPin](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-encrypted-pin.md "")
:
A value is required for PIN transactions.

[pointOfSaleInformation.entryMode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-entry-mode.md "")
:
Set the value to `contact`, `contactless`, `swiped`, or `keyed`.

[pointOfSaleInformation.pinBlockEncodingFormat](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-pin-block-encoding-format.md "")
:
Set the value to `0` or `1` for PIN transactions.

[pointOfSaleInformation.terminalPinCapability](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-pin-capability.md "")
:
A value is required for PIN transactions.

[pointOfSaleInformation.trackData](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-track-data.md "")
:
A value is required for `contact`, `contactless`, and `swiped` entry modes.

[processingInformation.commerceIndicator](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-commerce-ind.md "")
:
Set the value to `retail` when PAN or track data is sent in the request for a payment initiated using a payment card.

Optional Fields for Voiding a Sale or Capture {#cp-retail-void-cup-opt-fields}
==============================================================================

When you do not include one of these optional fields in a void request, the value in your merchant account or configuration is used.

[merchantInformation.transactionLocalDateTime](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/merch-info-aa/merch-info-transaction-local-date-time.md "")
:

[pointOfSaleInformation.terminalId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/pos-info-aa/pos-info-terminal-id.md "")
:

REST Example: Voiding a Sale or Capture Initiated Using a Payment Card {#cp-retail-void-cup-ex-rest-card}
=========================================================================================================

Request

```
{
    "clientReferenceInformation": {
        "code": "RTS-Void",
        "comments": "Sale Void",
        "partner": {
            "thirdPartyCertificationNumber": "testTPCN",
            "developerId": "cup12",
            "solutionId": "cup123"
        }
    },
    "processingInformation": {
        "commerceIndicator": "retail"
    },
    "pointOfSaleInformation": {
        "encryptedPin": "AC287D0B9C81B5AE",
        "encryptedKeySerialNumber": "23288800020018400013",
        "pinBlockEncodingFormat": "0",
        "terminalPinCapability": "6",
        "terminalId": "12345678",
        "trackData": ";8171999900000018=30102010000000000000?",
        "entryMode": "contact",
        "emv": {
            "cardSequenceNumber": "001"
        }
    }
}
```

Response to a Successful Request

```
{
    "_links": {
        "self": {
            "method": "GET",
            "href": "/pts/v2/voids/7848068861837009211061"
        }
    },
    "clientReferenceInformation": {
        "code": "RTS-Void"
    },
    "id": "7848068861837009211061",
    "orderInformation": {
        "amountDetails": {
            "currency": "CNY"
        }
    },
    "processorInformation": {
        "settlementDate": "0723",
        "responseCode": "00"
    },
    "reconciliationId": "620411220523",
    "status": "VOIDED",
    "submitTimeUtc": "2026-07-23T11:41:27Z",
    "voidAmountDetails": {
        "currency": "cny",
        "voidAmount": "320.00"
    }
}
```

REST Example: Voiding a Sale or Capture Initiated Without Using a Payment Card {#cp-retail-void-cup-ex-rest-no-card}
====================================================================================================================

Request

```
{
    "clientReferenceInformation": {
        "code": "RTS-Void",
        "comments": "Sale Void",
        "partner": {
            "thirdPartyCertificationNumber": "testTPCN",
            "developerId": "cup12",
            "solutionId": "cup123"
        }
    }
}
```

Response to a Successful Request

```
{
    "_links": {
        "self": {
            "method": "GET",
            "href": "/pts/v2/voids/7848070302487009411061"
        }
    },
    "clientReferenceInformation": {
        "code": "RTS-Void"
    },
    "id": "7848070302487009411061",
    "orderInformation": {
        "amountDetails": {
            "currency": "CNY"
        }
    },
    "processorInformation": {
        "settlementDate": "0723",
        "responseCode": "00"
    },
    "reconciliationId": "620411220525",
    "status": "VOIDED",
    "submitTimeUtc": "2026-07-23T11:43:51Z",
    "voidAmountDetails": {
        "currency": "cny",
        "voidAmount": "320.00"
    }
}
```

Void Time-Out Reversal {#cp-retail-void-timeout-reversal-cup-intro}
===================================================================

Use this information to process a merchant-initiated, void time-out reversal when you do not receive a response message after sending a void request.  
The `China UnionPay` term for a sale time-out void is *reversal of a purchase* . The term for a capture time-out void is *reversal of a pre-authorization completion*.  
For more information about transaction types, see [Supported Transaction Types and Integrations](/docs/cybs/en-us/cp-retail/integration/cup/rest/cp-retail/cp-intro-cpc/cp-retail-cup-txn-types.md "").

Endpoint {#cp-retail-void-timeout-reversal-cup-intro_d7e585}
------------------------------------------------------------

**Production:** `POST ``https://api.cybersource.com``/pts/v2/voids/`{#cp-retail-void-timeout-reversal-cup-intro_d7e594}  
**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/voids/`{#cp-retail-void-timeout-reversal-cup-intro_d7e604}

Required Fields for a Void Time-Out Reversal {#cp-retail-void-timeout-reversal-cup-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 "")
:

[clientReferenceInformation.comments](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-comments.md "")
:
Set the value to `Sale Time-out Void` or `Capture Time-out Void`.

[clientReferenceInformation.partner.developerId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-developer-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.solutionId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-solution-id.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.partner.thirdPartyCertificationNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-partner-third-party-certnum.md "")
:
`Cybersource` provides the value for this field.

[clientReferenceInformation.transactionId](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/client-ref-info-aa/client-ref-info-transaction-id.md "")
:
Set the value to the transaction ID for the original transaction.

REST Example: Void Time-Out Reversal {#cp-retail-void-timeout-reversal-cup-ex-rest}
===================================================================================

Request

```
{
    "clientReferenceInformation": {
        "code": "RTS-Void TOR",
        "transactionId": "cppincert5",
        "comments": "Sale Time-out Void",
        "partner": {
            "thirdPartyCertificationNumber": "testTPCN",
            "developerId": "cup12",
            "solutionId": "cup123"
        }
    }
}
```

Response to a Successful Request

```
{
    "_links": {
        "self": {
            "method": "GET",
            "href": "/pts/v2/voids/7848910512387005440428"
        }
    },
    "clientReferenceInformation": {
        "code": "RTS-Void TOR",
        "transactionId": "cppincert5"
    },
    "id": "7848910512387005440428",
    "orderInformation": {
        "amountDetails": {
            "currency": "CNY"
        }
    },
    "processorInformation": {
        "settlementDate": "0724",
        "responseCode": "00"
    },
    "reconciliationId": "620511228818",
    "status": "VOIDED",
    "submitTimeUtc": "2026-07-24T11:04:12Z",
    "voidAmountDetails": {
        "currency": "cny",
        "voidAmount": "265.00"
    }
}
```

