PIN Debit Partial Authorization with Swiped Track Data {#pd-purch-swipe-partial-task}
=====================================================================================

This section describes how to process a PIN debit partial authorization with swiped track data.

Fields Specific to This Use Case
--------------------------------

This API request field is specific to this use case:

processingInformation.authorizationOptions.partialAuthIndicator
:
Set the value to `true`.

Endpoint {#pd-purch-swipe-partial-task_d7e16}
---------------------------------------------

**Production:** `POST ``https://api.visaacceptance.com``/pts/v2/payments`{#pd-purch-swipe-partial-task_d7e25}  
**Test:** `POST ``https://apitest.visaacceptance.com``/pts/v2/payments`{#pd-purch-swipe-partial-task_d7e35}

Required Fields for a Swiped PIN Debit Partial Authorization {#pd-purch-swipe-partial-req-fields}
=================================================================================================

clientReferenceInformation.code
:

clientReferenceInformation.partner.thirdPartyCertificationNumber
:
`Visa Acceptance Solutions` provides the value for this field.

orderInformation.amountDetails.currency
:

orderInformation.amountDetails.totalAmount
:

paymentInformation.card.sourceAccountType
:
Set the value to `UA`.

paymentInformation.card.useAs
:
Leave this field blank.

paymentInformation.paymentType.name
:
Set the value to `CARD`.

paymentInformation.paymentType.subTypeName
:
Set the value to `DEBIT`.

pointOfSaleInformation.encryptedKeySerialNumber
:

pointOfSaleInformation.encryptedPin
:

pointOfSaleInformation.entryMode
:
Set the value to `swiped`.

pointOfSaleInformation.pinBlockEncodingFormat
:
Set the value to `1`.

pointOfSaleInformation.terminalCapability
:

pointOfSaleInformation.trackData
:

processingInformation.authorizationOptions.partialAuthIndicator
:
Set the value to `true`.

processingInformation.commerceIndicator
:
Set the value to `retail`.

REST Example: PIN Debit Partial Authorization with Swiped Track Data {#pd-purch-swipe-partial-ex-rest}
======================================================================================================

Request

```
{
  "clientReferenceInformation": {
    "code": "ABC1234", 
    "partner": {
      "thirdPartyCertificationNumber": "PTP1234"
    }
  },
  "processingInformation": {
    "commerceIndicator": "retail",
    "networkRoutingOrder": "GUFV",
    "authorizationOptions": {
      "partialAuthIndicator": "true"
    }
  },
  "paymentInformation": {
    "paymentType": {
      "name": "CARD",
      "subTypeName": "DEBIT"
    },
    "card": {
      "useAs": "",
      "sourceAccountType": "UA"
    }
  },
  "orderInformation": {
    "amountDetails": {
      "totalAmount": "202.00",
      "currency": "USD"
    }
  },
  "merchantInformation": {
    "merchantDescriptor": {
      "name": "John Smith",
      "alternateName": "ABC Limited",
      "locality": "Austin",
      "country": "United States",
      "administrativeArea": "AL"
    }
  },
  "pointOfSaleInformation": {
    "entryMode": "swiped",
    "terminalCapability": "4",
    "trackData": "%B4111111111111111^JONES/JONES ^3312101976110000868000000?;4111111111111111=33121019761186800000?",
    "pinBlockEncodingFormat": 1,
    "encryptedPin": "52F20658C04DB351",
    "encryptedKeySerialNumber": "FFFF1B1D140000000005"
  }
}
```

Response to a Successful Request

```
{
  "_links": {
    "void": {
      "method": "POST",
      "href": "/pts/v2/payments/6886788570426450204953/voids"
    },
    "self": {
      "method": "GET",
      "href": "/pts/v2/payments/6886788570426450204953"
    }
  },
  "clientReferenceInformation": {
    "code": "Pin Debit Purchase Using Swiped Track Data"
  },
  "id": "6886788570426450204953",
  "orderInformation": {
    "amountDetails": {
      "authorizedAmount": "150.00",
      "currency": "usd"
    }
  },
  "processingInformation": {
    "reconciliationId": "6886788570426450204953"
  },
  "processorInformation": {
    "systemTraceAuditNumber": "111888",
    "routing": {
      "network": "0000"
    },
    "approvalCode": "831000",
    "retrievalReferenceNumber": "123456111888",
    "transactionId": "000000000000000",
    "responseCode": "10"
  },
  "reconciliationId": "6886788570426450204953",
  "status": "AUTHORIZED",
  "submitTimeUtc": "2023-07-06T21:27:37Z"
}
```

