Sale Service {#samsungpay-sale-intro}
=====================================

A sale is a bundled authorization and capture. Request the authorization and capture services at the same time. `Cybersource` processes the capture immediately.

Required Fields for Performing a Sale {#samsungpay-sale-cybsdecypt-amex-mandatory}
==================================================================================

The following fields are required when submitting a sale request:

Fields required for requesting the authorization service
:
Use the same values that are set for requesting the [Authorization Service](/docs/cybs/en-us/samsung-pay/developer/citimb/rest/samsungpay/samsungpay-services/samsungpay-auth-intro.md "").  
The sales request is sent to the following endpoint: `https://api.cybersource.com`/pts/v2/payments.

Related Information {#samsungpay-sale-cybsdecypt-amex-mandatory_section_abb_khn_b1c}
------------------------------------------------------------------------------------

[REST API Field Reference Guide](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/rest-api-fields-intro.md "")

Authorizing and Capturing a Payment {#samsungpay-sale-procedure}
================================================================

You can authorize and capture a payment at the same time, which is known as performing a sale.

1. Send the service request to `https://api.cybersource.com``/pts/v2/payments`.
2. Check the response message to make sure that the request was successful. A 200-level HTTP response code indicates success. For information about response codes, see [Transaction Response Codes](https://developer.cybersource.com/api/reference/response-codes.md "").

Example: Basic Credit Card Sale Using the REST API {#samsungpay-sale-cybsdecrypt-ex-amex-rest}
==============================================================================================

Authorization and Capture (Sale) Request

```
{
    "clientReferenceInformation": {
        "code": "demorefnum"
    },
    "processingInformation": {
        "paymentSolution": "008",
        "commerceIndicator": "aesk"
    },
    "paymentInformation": {
        "tokenizedCard": {
            "transactionType": "1",
            "type": "003"
        }
    },
    "fluidData": {
      "descriptor": "ABCDEFabcdefABCDEFabcdef0987654321234567",
      "value": "RklEPUNPTU1PTi5TQU1TVU5HLklOQVBQLlBBWU1FTlQ="
    },
    "billTo": {
        "firstName": "James",
        "lastName": "Smith",
         "address1": "111 S. Division St.",
         "address2": "Suite 123",
         "locality": "Ann Arbor",
         "administrativeArea": "MI",
         "postalCode": "48104-2201",
         "country": "US",
         "email": "demo@example.com",
         "phoneNumber": "9999999999"
      },
      "orderInformation": {
         "amountDetails": {
             "currency": "USD",
             "totalAmount": "100.00"
         }
      }
}
```

Authorization and Capture (Sale) Response

```
{
    "clientReferenceInformation": {
        "code": "demorefnum"
    },
    "orderInformation": {
        "amountDetails": {
            "currency": "USD",
            "authorizedAmount": "100.00",
            "totalAmount": "100.00"
        }
    },
    "paymentInformation": {
         "tokenizedCard": {
            "prefix": "593056",
            "suffix": "0842",
            "expirationMonth": "08",
            "expirationYear": "2021"
         }
    },
    "processingInformation": {
        "reconciliationID": "13209256CGJSMQCZ"
    },
    "processorInformation": {
        "approvalCode": "888888",
        "responseCode": "100",
        "avs": {
            "code": "I1"
        }
    },
    "submitTimeUtc": "2015-11-03T205202Z"
    }    
}    
```

