Sales with Level III Data {#l23-l3-processing-sale-intro}
=========================================================

This section shows you how to process a sale transaction with Level III data.  
A sale transaction combines and authorization and a capture into a single transaction.

Endpoint {#l23-l3-processing-sale-intro_d7e240}
-----------------------------------------------

**Production:** `POST ``https://api.cybersource.com``/pts/v2/payments`{#l23-l3-processing-sale-intro_d7e248}  
**Test:** `POST ``https://apitest.cybersource.com``/pts/v2/payments`{#l23-l3-processing-sale-intro_d7e258}

Required Fields for Processing a Sale with Level III Data Using the REST API {#l23-l3-processing-sale-req-fields-fdiglobal}
===========================================================================================================================

The following fields are required in a request for a sale with Level III data:

[buyerInformation.vatRegistrationNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/buyer-info-aa/buyer-info-vat-registration-num.md "")
:
Required for non-US Visa transactions.

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

[orderInformation.billTo.address1](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-bill-to-address1.md "")
:

[orderInformation.billTo.administrativeArea](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-bill-to-admin-area.md "")
:

[orderInformation.billTo.country](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-bill-to-company-country.md "")
:

[orderInformation.billTo.email](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-bill-to-email.md "")
:

[orderInformation.billTo.firstName](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-bill-to-first-name.md "")
:

[orderInformation.billTo.lastName](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-bill-to-last-name.md "")
:

[orderInformation.billTo.locality](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-bill-to-locality.md "")
:

[orderInformation.billTo.postalCode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-bill-to-postal-code.md "")
:

[orderInformation.invoiceDetails.purchase OrderNumber](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-invoice-details-purchase-order-num.md "")
:
Required for purchase or procurement cards only.

[orderInformation.invoiceDetails.supplier OrderReference](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-invoice-details-supplier-order-ref.md "")
:
Required for Mastercard transactions only.

[orderInformation.lineItems\[\].commodity Code](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-line-items-commodity-code.md "")
:
Required for Visa transactions only.

[orderInformation.lineItems\[\].productCode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-line-items-product-code.md "")
:

[orderInformation.lineItems\[\].productName](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-line-items-product-name.md "")
:

[orderInformation.lineItems\[\].productSku](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-line-items-product-sku.md "")
:
Required when orderInformation.lineItems\[\].productCode is not set to `default`.

[orderInformation.lineItems\[\].quantity](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-line-items-quantity.md "")
:

[orderInformation.lineItems\[\].unitOfMeasure](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-line-items-unit-of-measure.md "")
:
Required for Mastercard transactions only.

[orderInformation.lineItems\[\].unitPrice](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-line-items-unit-price.md "")
:

[orderInformation.shipTo.administrativeArea](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-shipto-administrative-area.md "")
:
Required when orderInformation.shipTo.country is included in the request and the ship-to-country is in the US or Canada.

[orderInformation.shipTo.postalCode](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/order-info-aa/order-info-shipto-postal-code.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 "")
:

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

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

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

[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 field to `true`.

[processingInformation.purchaseLevel](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processing-info-aa/processing-info-purchase-level.md "")
:
Set field to `3`.
{#l23-l3-processing-sale-req-fields-fdiglobal_dl_cdb_3kp_vwb}

> IMPORTANT  
> When relaxed requirements for address data and the expiration date are being used, not all fields in this list are required. It is your responsibility to determine whether your account is enabled to use this feature and which fields are required. For details about relaxed requirements, see [Relaxed Requirements for Address Data and Expiration Date in a Payment](/docs/cybs/en-us/level-2-3/developer/fdiglobal/rest/level-2-3/reference-overview/payments-relax-reqs.md "").

Optional Fields for Processing a Sale with Level III Data Using the REST API {#l23-l3-processing-sale-opt-fields-fdiglobal}
===========================================================================================================================

These fields are optional in a sale request with Level III data:

orderInformation.amountDetails.discount Amount
:
Optional for Mastercard transactions only.

orderInformation.amountDetails.dutyAmount
:
Optional for Visa transactions only.

orderInformation.amountDetails.freightAmount
:

orderInformation.invoiceDetails.taxable
:

orderInformation.lineItems\[\].commodityCode
:
Optional for Mastercard transactions only.

orderInformation.lineItems\[\].discountAmount
:

orderInformation.lineItems\[\].invoiceNumber
:

orderInformation.lineItems\[\].productName
:
Optional for Visa transactions only.

orderInformation.lineItems\[\].taxDetails\[\].amount
:

orderInformation.lineItems\[\].taxDetails\[\].rate
:

orderInformation.shipTo.country
:
Optional for Mastercard transactions only.
{#l23-l3-processing-sale-opt-fields-fdiglobal_dl_u5k_dvn_vwb}

REST API Example: Processing a Sale with Level III Data {#l23-l3-processing-sale-ex-rest-fdiglobal}
===================================================================================================

Request

```
{
  "clientReferenceInformation": {
    "code": "US-VISA-L3-SALE-0001"
  },
  "processingInformation": {
    "capture": true,
    "purchaseLevel": "3"
  },
  "paymentInformation": {
    "card": {
      "number": "4111111111111111",
      "expirationMonth": "12",
      "expirationYear": "2031",
      "type": "001"
    }
  },
  "orderInformation": {
    "amountDetails": {
      "currency": "USD",
      "totalAmount": "250.00"
    },
    "billTo": {
      "firstName": "Jane",
      "lastName": "Doe",
      "address1": "1 Market St",
      "locality": "San Francisco",
      "administrativeArea": "CA",
      "postalCode": "94105",
      "country": "US",
      "email": "jane.doe@example.com"
    },
    "invoiceDetails": {
      "purchaseOrderNumber": "PO-987654"
    },
    "shipTo": {
      "administrativeArea": "CA",
      "postalCode": "94105"
    },
    "lineItems": [
      {
        "commodityCode": "4321",
        "productCode": "default",
        "productName": "Industrial Control Module",
        "quantity": "1",
        "unitPrice": "250.00"
      }
    ]
  }
}
```

{#l23-l3-processing-sale-ex-rest-fdiglobal_codeblock_wmc_gfn_vwb}  
Successful Response

```
{
  "_links": {
    "self": {
      "method": "GET",
      "href": "/pts/v2/payments/6893214579082345603059"
    },
    "void": {
      "method": "POST",
      "href": "/pts/v2/payments/6893214579082345603059/voids"
    }
  },
  "clientReferenceInformation": {
    "code": "US-VISA-L3-SALE-0001"
  },
  "id": "6893214579082345603059",
  "orderInformation": {
    "invoiceDetails": {
      "level3TransmissionStatus": "Y"
    },
    "amountDetails": {
      "authorizedAmount": "250.00",
      "currency": "USD"
    }
  },
  "paymentInformation": {
    "card": {
      "type": "001"
    }
  },
  "processorInformation": {
    "merchantNumber": "000000000001234"
  },
  "reconciliationId": "54831290",
  "status": "AUTHORIZED",
  "submitTimeUtc": "2026-04-23T03:02:18Z"
}
```

{#l23-l3-processing-sale-ex-rest-fdiglobal_codeblock_ymc_gfn_vwb}
