post
https://sandbox-api-gtw.softpoint.io/api/locations//access_token
This API is used to obtain an access token to the gateway by providing a valid API Key and a Client ID.
The access token is required for all subsequent API requests and must be included in each request.
Note: You must have a valid API key and client ID to receive an access token.
-
URL:
{base_url}/api/locations/{location_id}/access_token
-
Method:
POST
-
Request Parameters:
| Field | Type | Required | Description |
|---|---|---|---|
Api-Key | String | Yes | Your unique key provided by the API. |
Client | String | Yes | The client ID associated with your application. |
- URL Parameters:
| Parameter | Required/Optional | Type | Description |
|---|---|---|---|
location_id | Required | number | The ID of the specific location. |
- Example Request (cURL):
Java
curl --location 'https://sandbox-api-gtw.softpoint.io/api/locations/{{location_id}}/access_token' \--header 'Content-Type: application/json' \--data '{ "api_key": "XXXXXXXXXXXXXXXXXXXXX", "client": "iframe_gtw"}'
- Example Response (JSON):
JSON
Java
{ "accessToken": "xxxxx", "refresh_token": "xxxx", "expires_in": 300}
