# API authenPlatform

* PLATFORM should call this API to get Bearer token to use in all other APIs.
* Authentication mechanism: OAuth 2.0
* API:
  * Path: */v2/auth/oauth2/token*
  * Method: *POST*
  * Request: Content-Type: *application/json*

**Request Parameter**

| Parameter      | Data Type | Required | Description                                                                |
| -------------- | --------- | -------- | -------------------------------------------------------------------------- |
| grant\_type    | String    | Y        | “client\_credentials” as default.                                          |
| client\_id     | String    | Y        | API integration information in the profile section on the Merchant Portal. |
| client\_secret | String    | Y        | API integration information in the profile section on the Merchant Portal. |
| scope          | String    | Y        | “virtual\_card” as default.                                                |

**Response Data**

| Parameter     | Data Type | Description                                  |
| ------------- | --------- | -------------------------------------------- |
| code          | Number    | Error code. Refer to table of error codes    |
| message       | String    | Error description.                           |
| access\_token | String    | To authenticate for all other APIs.          |
| token\_type   | String    | “bearer” as default.                         |
| expires\_in   | Number    | “access\_token” expiration time, in seconds. |
