# Chapter 1.3 - Environment and Endpoints

Source: https://developer.avalara.com/products/communications/integration-guides/dev-guide_rest_v2/getting-started/environments-endpoints/

-   [Previous](/communications/dev-guide_rest_v2/getting-started/authentication/)
-   [Next](/communications/dev-guide_rest_v2/getting-started/demo-app/)

### Environments

The environments available to you are Sandbox and Production:

-   Sandbox: [communicationsua.avalara.net](https://communicationsua.avalara.net)

-   Used for testing

-   Production: [communications.avalara.net](https://communications.avalara.net)

-   Used for live transactions and bill runs

Sandbox and Production environments operate identically for tax calculation and reporting. Tax calculations produce the same results when identical [client profiles](/communications/dev-guide_rest_v2/customizing-transactions/client-profiles/) are used in both environments.

Some differences between Sandbox and Production:

1.  Each environment is self-contained and does not impact the other environment. Some examples:

-   When a profile is updated in one environment, it does not impact the other environment unless you request both environments be updated. Sandbox can be used to test profile changes in before applying the same profile to Production.
-   Calculations performed in one environment only appear in reports for that environment. If you are testing a bill run in Sandbox, you can perform the bill run repeatedly with no impact to Production reports.
-   Access provided to users in one environment has no impact on who has access to the other environment. Developers, QA, and other team members can be given access to Sandbox, but not given access to Production.

3.  Automated compliance reports for returns are generated from Production only.

### Endpoints

Check out [Swagger](https://communications.avalara.net/API/AFCSaaSProTax/)!

#### Customization

Endpoint

Method

Description

Request

Response

`/api/v2/profile/GetProfiles`

`GET`

Retrieves one or more profiles with associated settings and configurable items

{RequestedClientId}, {RequestedProfileId}, and {ItemType} as URL parameters

[Tax Calculation Settings Response](/communications/dev-guide_rest_v2/reference/tax-calculation-settings-response/)

`/api/v2/profiles/SetConfig`

`POST`

Creates or updates configuration settings and associated profile mappings  

**Not currently available for use**  

[Set Tax Calculation Setting Request](/communications/dev-guide_rest_v2/reference/set-tax-calculation-setting-request/)

[Tax Calculation Settings Response](/communications/dev-guide_rest_v2/reference/tax-calculation-settings-response/)

`/api/v2/profiles/SetBundles`

`POST`

Creates or updates bundle packages and associated profile mappings  

**Not currently available for use**  

[Set Tax Calculation Setting Request](/communications/dev-guide_rest_v2/reference/set-tax-calculation-setting-request/)

[Tax Calculation Settings Response](/communications/dev-guide_rest_v2/reference/tax-calculation-settings-response/)

`/api/v2/profiles/SetExclusions`

`POST`

Creates or updates exclusions and associated profile mappings  

**Not currently available for use**  

[Set Tax Calculation Setting Request](/communications/dev-guide_rest_v2/reference/set-tax-calculation-setting-request/)

[Tax Calculation Settings Response](/communications/dev-guide_rest_v2/reference/tax-calculation-settings-response/)

`/api/v2/profiles/SetOverrides`

`POST`

Creates or updates overrides and associated profile mappings  

**Not currently available for use**  

[Set Tax Calculation Setting Request](/communications/dev-guide_rest_v2/reference/set-tax-calculation-setting-request/)

[Tax Calculation Settings Response](/communications/dev-guide_rest_v2/reference/tax-calculation-settings-response/)

#### Healthcheck

Endpoint

Method

Description

Request

Response

`/api/v2/Healthcheck`

`GET`

Healthcheck that confirms the service is operational and ready to use

None

```json
{"Status","ServerTime"}
```

#### Jurisdiction Determination

Endpoint

Method

Description

Request

Response

`/api/v2/afc/PCode`

`POST`

Get PCode(s) associated with a location

[PCode Lookup Request](/communications/dev-guide_rest_v2/reference/zip-lookup-request/)

[PCode Lookup Result](/communications/dev-guide_rest_v2/reference/zip-lookup-result/)

`/api/v2/geo/Geocode`

`POST`

Geocodes one or more street addresses or lat/long coordinates

[Geocode Requests](/communications/dev-guide_rest_v2/reference/geocode-requests/)

[Geocode Result](/communications/dev-guide_rest_v2/reference/geocode-result/)

`/api/v2/geo/batch/Upload`

`POST`

Uploads file to Geo Batch

GeocodeBatchFile formData file upload

[Geo Batch Submit File Response](/communications/dev-guide_rest_v2/reference/geo-batch-submit-file-response/)

`/api/v2/geo/batch/status/{processId}`

`GET`

Retrieves information on Geo Batch status

{processId} as URL parameter

[Geo Batch Status](/communications/dev-guide_rest_v2/reference/geo-batch-status/)

`/api/v2/geo/batch/log/{processId}`

`GET`

Retrieves log on Geo Batch status

{processId} as URL parameter

[Geo Batch Log](/communications/dev-guide_rest_v2/reference/geo-batch-log/)

#### Lookups

Endpoint

Method

Description

Request

Response

`/api/v2/afc/serviceinfo`

`GET`

Retrieves server time, service build version, and tax engine version

None

[Service Info](/communications/dev-guide_rest_v2/reference/service-info/)

`/api/v2/afc/taxtype/{taxType}`

`GET`

Get the tax information (description and category) for a Tax Type ID

{taxType} as URL parameter  

Use "\*" in {taxType }return all tax types  

[Tax Type Data](/communications/dev-guide_rest_v2/reference/tax-type-data/)

`/api/v2/afc/tspairs`

`GET`

Get Transaction/Service (T/S) Pair information

None

[TS Pair Data](/communications/dev-guide_rest_v2/reference/ts-pair-data/)

`/api/v2/afc/location/{pcode}`

`GET`

Get all jurisdiction location data associated with a specific PCode

{pcode} as URL parameter

[PCode Lookup Result](/communications/dev-guide_rest_v2/reference/zip-lookup-result/)

`/api/v2/afc/primary/{pcode}`

`GET`

Similar to the `/api/v2/afc/location/{pcode}`endpoint, but works as a "best match." Returns location info for the primary jurisdiction associated with the specified PCode

{pcode} as URL parameter

[PCode Lookup Result](/communications/dev-guide_rest_v2/reference/zip-lookup-result/)

#### Tax Calculation

Endpoint

Method

Description

Request

Response

`/api/v2/afc/calctaxes`

`POST`

Performs tax calculation on invoices. See [Calculate Taxes](/communications/dev-guide_rest_v2/calculate-taxes/) for more information.

[CalcTaxes Request](/communications/dev-guide_rest_v2/reference/calc-taxes-request/)

[CalcTaxes Response](/communications/dev-guide_rest_v2/reference/calc-taxes-response/)

`/api/v2/afc/commit`

`POST`

Commits and Uncommits transactions. See [Commit/Uncommit](/communications/dev-guide_rest_v2/commit-uncommit/) for more information.

[Commit Request](/communications/dev-guide_rest_v2/reference/commit-request/)

[Commit Response](/communications/dev-guide_rest_v2/reference/commit-response/)

-   [Previous](/communications/dev-guide_rest_v2/getting-started/authentication/)
-   [Next](/communications/dev-guide_rest_v2/getting-started/demo-app/)