# Test your setup

Source: https://developer.avalara.com/hospitality-integration-guide/lmq9372581538706/

# Test your setup

Learn how to test your setup using the CreateTransaction API with sample request details.

Test your setup by running the [CreateTransaction API](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/CreateTransaction/). Below is a sample request that uses a`locationCode` and`reportingLocationCode`. Be sure to replace these values with the location code that you specified when you created your lodging location. Or if you’re an OTA and didn’t create a lodging location, use the physical address of your business instead of the`locationCode` field, and omit`reportingLocationCode` field.

## Example

```
 curl
    -X POST
    -H 'Accept: application/json'
    -H 'Authorization: Basic ${btoa(`:`)}'
    -H 'Content-Type: application/json'
    --data '{
      "lines": [
        {
          "number": "1",
          "quantity": 1,
          "amount": 100,
          "taxCode": "SL090200",
          "description": "Lodging",
          "addresses": {
            "singleLocation": {
              "locationCode": "SEATAC1"
            }
          },
          "parameters":[
            {
              "name":"NumberOfNights",
              "value":"2",
              "unit": "Count"
            }
          ]
        }
      ],
      "type": "SalesOrder",
      "date": "2021-05-20",
      "companyCode": "ROSEBUDMOTELS",
      "customerCode": "ABC",
      "reportingLocationCode": "SEATAC1",
      "commit": false,
      "currencyCode": "USD",
      "description": "Lodging"
    }'
    'https://sandbox-rest.avatax.com/api/v2/transactions/create' 
```