Loading
Point of Sale
Point of Sale Vertex Mixed Cart Order Examples

Point of Sale Vertex Mixed Cart Order Examples

Review sample Vertex requests and responses for a mixed cart order that combines an in-store item with a ship-to-home item.

Example Order Details of a Mixed Cart

Product ID Price Fulfillment Type Address
3661601573743 $168 In Store New York, NY 10013
3661601581076 $208 Ship to Home Los Altos, CA 94022

Additional Charges: Shipping Charges: $9.99 Total Tax: $34.80 Order Total: $420.79

A receipt showing an order total of $420.79.

Shipping Charges Call to Vertex

Vertex Request For Shipping Charges

{
 "currency": {
   "isoCurrencyCodeAlpha": "USD"
 },
 "customer": {
   "customerCode": {
     "classCode": "8ea4fc78-0517-4856-8c41-76a187bc45c9"
   }
 },
 "documentDate": "2025-01-21",
 "documentNumber": "PS00000006",
 "lineItems": [
   {
     "customer": {
       "destination": {
         "city": "Los Altos",
         "country": "US",
         "mainDivision": "CA",
         "postalCode": "94022",
         "streetAddress1": "5050 El Camino Real"
       }
     },
     "lineItemId": "shipping",
     "materialCode": "shipping",
     "product": {
       "productClass": "DEFAULT"
     },
     "quantity": {
       "unitOfMeasure": "EA",
       "value": 1
     },
     "unitPrice": 9.99
   }
 ],
 "saleMessageType": "QUOTATION",
 "seller": {
   "company": "PS001"
 },
 "transactionId": "PS00000006",
 "transactionType": "SALE"
}

Vertex Response for Shipping Charges

{
 "data": {
   "documentDate": "2025-01-21",
   "documentNumber": "PS00000006",
   "lineItems": [
     {
       "customer": {
         "customerCode": {
           "classCode": "8ea4fc78-0517-4856-8c41-76a187bc45c9"
         },
         "destination": {
           "city": "Los Altos",
           "country": "US",
           "mainDivision": "CA",
           "postalCode": "94022",
           "streetAddress1": "5050 El Camino Real"
         }
       },
       "lineItemId": "shipping",
       "materialCode": "shipping",
       "product": {
         "productClass": "DEFAULT"
       },
       "quantity": {
         "unitOfMeasure": "EA",
         "value": 1
       },
       "taxes": [
         {
           "calculatedTax": 0.6,
           "effectiveRate": 0.06,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "STATE",
             "value": "CALIFORNIA"
           }
         },
         {
           "calculatedTax": 0.13,
           "effectiveRate": 0.0125,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "COUNTY",
             "value": "SANTA CLARA"
           }
         },
         {
           "calculatedTax": 0.05,
           "effectiveRate": 0.005,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "DISTRICT",
             "value": "TRANSIT DISTRICT (SCCT)"
           }
         },
         {
           "calculatedTax": 0.05,
           "effectiveRate": 0.005,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "DISTRICT",
             "value": "TRANSPORTATION AUTHORITY (SCVT)"
           }
         },
         {
           "calculatedTax": 0.01,
           "effectiveRate": 0.00125,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "DISTRICT",
             "value": "TRANSACTIONS AND USE TAX (SVTB)"
           }
         },
         {
           "calculatedTax": 0.01,
           "effectiveRate": 0.00125,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "DISTRICT",
             "value": "RETAIL TRANSACTIONS AND USE TAX (SCCR)"
           }
         },
         {
           "calculatedTax": 0.05,
           "effectiveRate": 0.005,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "DISTRICT",
             "value": "TRANSACTIONS AND USE TAX (SVTS)"
           }
         },
         {
           "calculatedTax": 0.01,
           "effectiveRate": 0.00125,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "DISTRICT",
             "value": "TRANSACTIONS AND USE TAX (JPBT)"
           }
         }
       ],
       "totalTax": 0.91,
       "unitPrice": 9.99
     }
   ],
   "transactionId": "PS00000006"
 }
}

Ship to Home Product Call to Vertex

Vertex Request for Product ID: 3661601581076

{
 "currency": {
   "isoCurrencyCodeAlpha": "USD"
 },
 "customer": {
   "customerCode": {
     "classCode": "8ea4fc78-0517-4856-8c41-76a187bc45c9"
   }
 },
 "documentDate": "2025-01-21",
 "documentNumber": "PS00000006",
 "lineItems": [
   {
     "customer": {
       "destination": {
         "city": "Los Altos",
         "country": "US",
         "mainDivision": "CA",
         "postalCode": "94022",
         "streetAddress1": "5050 El Camino Real"
       }
     },
     "lineItemId": "2",
     "materialCode": "3661601581076",
     "product": {
       "productClass": "GENERIC"
     },
     "quantity": {
       "unitOfMeasure": "EA",
       "value": 1
     },
     "unitPrice": 208
   }
 ],
 "saleMessageType": "QUOTATION",
 "seller": {
   "company": "PS001"
 },
 "transactionId": "PS00000006",
 "transactionType": "SALE"
}

Vertex Response for Product ID: 3661601581076

{
 "data": {
   "documentDate": "2025-01-21",
   "documentNumber": "PS00000006",
   "lineItems": [
     {
       "customer": {
         "customerCode": {
           "classCode": "8ea4fc78-0517-4856-8c41-76a187bc45c9"
         },
         "destination": {
           "city": "Los Altos",
           "country": "US",
           "mainDivision": "CA",
           "postalCode": "94022",
           "streetAddress1": "5050 El Camino Real"
         }
       },
       "lineItemId": "2",
       "materialCode": "3661601581076",
       "product": {
         "productClass": "GENERIC"
       },
       "quantity": {
         "unitOfMeasure": "EA",
         "value": 1
       },
       "taxes": [
         {
           "calculatedTax": 12.48,
           "effectiveRate": 0.06,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "STATE",
             "value": "CALIFORNIA"
           }
         },
         {
           "calculatedTax": 2.6,
           "effectiveRate": 0.0125,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "COUNTY",
             "value": "SANTA CLARA"
           }
         },
         {
           "calculatedTax": 1.04,
           "effectiveRate": 0.005,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "DISTRICT",
             "value": "TRANSIT DISTRICT (SCCT)"
           }
         },
         {
           "calculatedTax": 1.04,
           "effectiveRate": 0.005,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "DISTRICT",
             "value": "TRANSPORTATION AUTHORITY (SCVT)"
           }
         },
         {
           "calculatedTax": 0.26,
           "effectiveRate": 0.00125,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "DISTRICT",
             "value": "TRANSACTIONS AND USE TAX (SVTB)"
           }
         },
         {
           "calculatedTax": 0.26,
           "effectiveRate": 0.00125,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "DISTRICT",
             "value": "RETAIL TRANSACTIONS AND USE TAX (SCCR)"
           }
         },
         {
           "calculatedTax": 1.04,
           "effectiveRate": 0.005,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "DISTRICT",
             "value": "TRANSACTIONS AND USE TAX (SVTS)"
           }
         },
         {
           "calculatedTax": 0.26,
           "effectiveRate": 0.00125,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "DISTRICT",
             "value": "TRANSACTIONS AND USE TAX (JPBT)"
           }
         }
       ],
       "totalTax": 18.98,
       "unitPrice": 208
     }
   ],
   "transactionId": "PS00000006"
 }
}

In-store Call to Vertex

Vertex Request for Product ID: 3661601573743

{
 "currency": {
   "isoCurrencyCodeAlpha": "USD"
 },
 "customer": {
   "customerCode": {
     "classCode": "8ea4fc78-0517-4856-8c41-76a187bc45c9"
   }
 },
 "documentDate": "2025-01-21",
 "documentNumber": "PS00000006",
 "lineItems": [
   {
     "customer": {
       "destination": {
         "city": "New York",
         "country": "US",
         "mainDivision": "NY",
         "postalCode": "10013",
         "streetAddress1": "453 Broome Street"
       }
     },
     "lineItemId": "1",
     "materialCode": "3661601573743",
     "product": {
       "productClass": "GENERIC"
     },
     "quantity": {
       "unitOfMeasure": "EA",
       "value": 1
     },
     "unitPrice": 168
   }
 ],
 "saleMessageType": "QUOTATION",
 "seller": {
   "company": "PS001"
 },
 "transactionId": "PS00000006",
 "transactionType": "SALE"
}

Vertex Response for Product ID: 3661601573743

{
 "data": {
   "documentDate": "2025-01-21",
   "documentNumber": "PS00000006",
   "lineItems": [
     {
       "customer": {
         "customerCode": {
           "classCode": "8ea4fc78-0517-4856-8c41-76a187bc45c9"
         },
         "destination": {
           "city": "New York",
           "country": "US",
           "mainDivision": "NY",
           "postalCode": "10013",
           "streetAddress1": "453 Broome Street"
         }
       },
       "lineItemId": "1",
       "materialCode": "3661601573743",
       "product": {
         "productClass": "GENERIC"
       },
       "quantity": {
         "unitOfMeasure": "EA",
         "value": 1
       },
       "taxes": [
         {
           "calculatedTax": 6.72,
           "effectiveRate": 0.04,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "STATE",
             "value": "NEW YORK"
           }
         },
         {
           "calculatedTax": 7.56,
           "effectiveRate": 0.045,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "CITY",
             "value": "NEW YORK"
           }
         },
         {
           "calculatedTax": 0.63,
           "effectiveRate": 0.00375,
           "exempt": 0,
           "jurisdiction": {
             "jurisdictionType": "DISTRICT",
             "value": "METROPOLITAN COMMUTER TRANSPORTATION DISTRICT"
           }
         }
       ],
       "totalTax": 14.91,
       "unitPrice": 168
     }
   ],
   "transactionId": "PS00000006"
 }
}
 
Loading
Salesforce Help | Article