> Part of [WHCC Developer Documentation](https://www.whcc.com/developer/llms.txt)

# Request Access Token

The Order Submit API exposes an authentication endpoint which will return a token with a one hour lifetime. The token applies the default WHCC account for the consumer and cannot be refreshed.

> In most cases the WHCC account you will be using is attached to your consumer key. An access token is valid for an hour, so you should request a new token each time you have a set of API calls to make.
>
>
> 	As a general rule, we'd suggest requesting a new access token for each order and using the same token for both `/api/OrderImport` and `/api/OrderImport/Submit` calls.

## GET `/api/AccessToken`

Content-type: application/json

## curl

### Example Request

```shell
curl https://apps.whcc.com/api/AccessToken \
	-d grant_type=consumer_credentials \
	-d consumer_key=B431BE78D2E9FFFE3709 \
	-d consumer_secret=RkZGRTM3MDk= \
	-X GET
```

### Example Response

```json
{
	"ClientId": "10072",
	"ConsumerKey": "B431BE78D2E9FFFE3709",
	"EffectiveDate": "8/19/2018 3:10:26 PM CST",
	"ExpirationDate": "8/19/2018 4:10:26 PM CST",
	"Token": "835770680158"
}
```

> ## What's Next
>
> Explore the [Product Catalog](https://www.whcc.com/developer/docs/order-submit-api/product-catalog/index.html.md)