# Access token B2B

##### Endpoint

<table border="1" id="bkmrk-endpoint-method-auth" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 22.7538%;"></col><col style="width: 43.8731%;"></col></colgroup><tbody><tr><td>**Endpoint**</td><td>**Method**  
</td><td>**Server**</td></tr><tr><td>/api/v1.0/access-token/b2b</td><td>POST</td><td>https://apidevportal.aspi-indonesia.or.id:44310</td></tr></tbody></table>

##### <span style="font-family: var(--font-heading, var(--font-body)); font-size: 1.4em; font-weight: 400;">  
Header</span>

<table border="1" id="bkmrk-parameter-value-%C2%A0" style="border-collapse: collapse; width: 100%; height: 180.828px;"><colgroup><col style="width: 29.4815%;"></col><col style="width: 52.7592%;"></col><col style="width: 17.7592%;"></col></colgroup><tbody><tr style="height: 29.875px;"><td style="height: 29.875px;">**Parameter**  
</td><td style="height: 29.875px;">**Value**  
</td><td style="height: 29.875px;">**Notes**</td></tr><tr style="height: 80.1875px;"><td style="height: 80.1875px;">X-TIMESTAMP</td><td style="height: 80.1875px;">Today's date UTC+7

Example

2024-11-29T14:15:00+07:00

</td><td style="height: 80.1875px;"></td></tr><tr style="height: 35.3906px;"><td style="height: 35.3906px;">X-CLIENT-KEY</td><td style="height: 35.3906px;">Client id in [Request Aplikasi Pengujian](https://apidevportal.aspi-indonesia.or.id/request-aplikasi-pengujian) page</td><td style="height: 35.3906px;">  
</td></tr><tr style="height: 35.375px;"><td style="height: 35.375px;">X-SIGNATURE

</td><td style="height: 35.375px;">Asymmetric signature value</td><td style="height: 35.375px;">See [this page](https://documentation.onindonesia.id/books/snap-bi/page/get-signature-access-asymmetric-signature "Get signature access (asymmetric signature)")</td></tr></tbody></table>

<details id="bkmrk-result-example-body-"><summary>Result example</summary>

<p class="callout info">200 OK</p>

```json
{
    "signature": "ECMld++UIuHBE1JU8oTcpBydvL3noq19LkTur3hWuA8ptyoqGGjXQW7TrG6JgeDMLO2533rXIo3b1hjfT/CCMk4vxGHDFV+YjY0r1e1mSgvYOSWhTss5DOKF0Fk3Lh0XfW5pP+6HglVGX5cluQkTB4fgTyDrJMjHZa5fttMda9S98QznbvtMnz"
}
```

</details><details id="bkmrk-error-example-body-r"><summary>Error example</summary>

<p class="callout danger">400 Bad Request  
X-TIMESTAMP header is not provided or value is empty</p>

```json
{
    "responseCode": "4000000",
    "responseMessage": "The timestamp field is required."
}
```

<p class="callout danger">400 Bad Request  
X-CLIENT-KEY header is not provided or value is empty</p>

```json
{
    "responseCode": "4000000",
    "responseMessage": "The clientId field is required."
}
```

<p class="callout danger">400 Bad Request  
Private\_Key header is not provided or value is empty</p>

```json
{
    "responseCode": "4000000",
    "responseMessage": "The privateKey field is required."
}
```

</details>