- Introduction to Payments
- Standard Payment Processing
- Card Present Connect | Retail Processing
- Card Present Connect | Mass Transit Processing
- Debit and Prepaid Card Processing
- Processing Debit and Prepaid Authorizations
- Airline Data Processing
- Japanese Payment Options Processing
- Processing Payments Using Credentials
- Using Stored Customer Credentials During a CIT
- Merchant-Initiated Delayed Transaction with PAN
- Merchant-Initiated Incremental Transaction with PAN
- Merchant-Initiated No-Show Transactions with PAN
- Merchant-Initiated Reauthorization Transactions with PAN
- Merchant-Initiated Resubmission Transaction with PAN
- Installment Payments
- Recurring Payments
- Token Management Service Processing
On This Page
REST API | Visa Platform Connect
Authorization with Line Itemization
This section shows you how to process an authorization request with line items.
Fields Specific to this Use Case
Remove the
orderInformation.amountDetails.totalAmount
field used in a basic authorization and include one or more line items in the lineItem[]
array.Using Line Items
These
fields
are required for each line item that you use:- orderInformation.lineItems[].unitPrice
- orderInformation.lineItems[].quantity
- orderInformation.lineItems[].productCode
- orderInformation.lineItems[].productSku(optional whenitem_#_productCodeis set todefault,shipping_only,handling_only, orshipping_and_handling)
- orderInformation.lineItems[].productName(optional whenitem_#_productCodeis set todefault,shipping_only,handling_only, orshipping_and_handling)
At a minimum, you must include the
item_#_unitPrice
field in order to include a line item in an authorization. When this field is the only field included in the authorization, the system sets:- orderInformation.lineItems[].productCode: default
- orderInformation.lineItems[].quantity: 1
For example, these three line items are valid.
"orderInformation": { "lineItems": [ { "unitPrice": "10.00" }, { "unitPrice": "5.99", "quantity": "3", "productCode": "shipping_only" }, { "unitPrice": "29.99", "quantity": "3", "productCode": "electronic_good", "productSku": "12384569", "productName": "receiver" } ] }
Endpoint
POST
https://api.cybersource.com
/pts/v2/payments