# Get an access token

**POST** `/oauth/token`

Base URL: `https://api.uat.triple-a.io/api/fiat-payout/v1`

The access token is required for the request that needs authentication

## Body

Content type: `application/x-www-form-urlencoded`

- `client_id` (string, required)
  Example : `oid-***********************`
  the merchant credential you receive when sign up with TripleA
- `client_secret` (string, required)
  Example : `Qi42*********************`
  the merchant credential you receive when sign up with TripleA
- `grant_type` (string, required)
  Example : `client_credentials`

Example:

```json
{
  "client_id": "oacid-***********************",
  "client_secret": "Qi42*********************",
  "grant_type": "client_credentials"
}
```

## Responses

### 200

Error defines errors may be returned from the system.

- `message` (string)
- `errors` (object[])
  - `errorCode` (string)
  - `message` (string)

Example:

```json
{
  "message": "string",
  "errors": [
    {
      "errorCode": "string",
      "message": "string"
    }
  ]
}
```

### 400

Error defines errors may be returned from the system.

- `message` (string)
- `errors` (object[])
  - `errorCode` (string)
  - `message` (string)

Example:

```json
{
  "message": "string",
  "errors": [
    {
      "errorCode": "string",
      "message": "string"
    }
  ]
}
```

### 401

Error defines errors may be returned from the system.

- `message` (string)
- `errors` (object[])
  - `errorCode` (string)
  - `message` (string)

Example:

```json
{
  "message": "string",
  "errors": [
    {
      "errorCode": "string",
      "message": "string"
    }
  ]
}
```