# POS scenario

Source: https://developer.avalara.com/ecommerce-integration-guide/test-transactions/pos/pos-scenario/

This test ensures that your integration correctly handles cash-and-carry scenarios. This scenario assumes the following:

-   The transaction uses singleLocation to specify the physical POS location.

-   The document `type` is `salesInvoice`.

-   The `companyCode` is `ATCWALTERS`.

-   The `reportingLocationCode` for the company is `DEFAULT`.

-   The transaction includes a single line item.

    -   The `amount` is $100.

    -   The `quantity` is 1.

    -   The `taxCode` is `PS081282`.

## Expected result

Verify that the transaction runs correctly for the single address and that the response includes the correct `reportingLocationCode`.

![A screenshot of AvaTax showing a point-of-sale scenario.](https://avalara-devdocs-prod.mcoutput.com/avatax-for-ecom/Content/Resources/Images/DevDot/pos-scenario_842x430.png)  

## Example

[![Closed](https://avalara-devdocs-prod.mcoutput.com/avatax-for-ecom/Content/Skins/Default/Stylesheets/Images/transparent.gif)View request](javascript:void\(0\);)

```
{  "lines": [    {      "number": "1",      "quantity": 1,      "amount": 100,      "taxCode": "PS081282",      "itemCode": "Y0001",      "description": "Yarn"    }  ],  "type": "SalesInvoice",  "code": "POS scenario",  "companyCode": "ATCWALTERS",  "reportingLocationCode": "DEFAULT",  "date": "2024-10-24",  "customerCode": "ABC",  "purchaseOrderNo": "2024-10-24-001",  "addresses": {    "singleLocation": {      "line1": "512 S Magnum St",      "city": "Durham",      "region": "NC",      "country": "US",      "postalCode": "27701"    }  },  "commit": false,  "currencyCode": "USD",  "description": "Yarn"}
```

[![Closed](https://avalara-devdocs-prod.mcoutput.com/avatax-for-ecom/Content/Skins/Default/Stylesheets/Images/transparent.gif)View response](javascript:void\(0\);)

```
{  "id": 85069553623462,  "code": "POS scenario",  "companyId": 7902221,  "date": "2024-10-24",  "status": "Saved",  "type": "SalesInvoice",  "batchCode": "",  "currencyCode": "USD",  "exchangeRateCurrencyCode": "USD",  "customerUsageType": "",  "entityUseCode": "",  "customerVendorCode": "ABC",  "customerCode": "ABC",  "exemptNo": "",  "reconciled": false,  "locationCode": "DEFAULT",  "reportingLocationCode": "DEFAULT",  "purchaseOrderNo": "2024-10-24-001",  "referenceCode": "",  "salespersonCode": "",  "taxOverrideType": "None",  "taxOverrideAmount": 0,  "taxOverrideReason": "",  "totalAmount": 100,  "totalExempt": 0,  "totalDiscount": 0,  "totalTax": 7.5,  "totalTaxable": 100,  "totalTaxCalculated": 7.5,  "adjustmentReason": "NotAdjusted",  ...,}
```