post
https://{URL}/v1/open-api/signature
Note: This is intended for testing purposes only and should not be used in production. Generate Signature refer to this page Digital Signature
This endpoint generates a digital signature to be used for secure API requests. The signature is created by combining various request details (such as the HTTP method, path, token, etc.) and helps authenticate that the request is valid and originates from a trusted source
| Field | Format | Mandatory | Length | Example |
|---|---|---|---|---|
| Content-Type | string | Y | application/json | |
| Open-Api Timestamp | yyyy-mm-dd 'T'hh:mm:ss+07:00 | Y | 2022-03-21T10:11:40+07:00 |
B. Request Body
| Field | Type | Description | Required | Example |
|---|---|---|---|---|
| client_id | string | The unique identifier for the B2B client | Yes | "{{B2B_CLIENT_ID}}" |
| method | string | The HTTP method used in the request | Yes | "GET" |
| path | string | The endpoint path used in the request | Yes | "/v1/open-api/balance" |
| token | string | The access token previously generated from this API | Yes | "{{B2B_OPEN_API_TOKEN}}" |
| timestamp | string | The timestamp following ISO8601 / RFC3339 format, including local timezone: yyyy-MM-dd'T'HH:mm:ss+Z | Yes | "2023-12-13T15:14:17.000+07:00" |
C. Sample Request
{
"client_id": "{{B2B_CLIENT_ID}}",
"method": "GET",
"path": "/v1/open-api/balance",
"token": "{{B2B_OPEN_API_TOKEN}}",
"timestamp": "2023-12-13T15:14:17.000+07:00"
}
D. Response Body
| Field | Type | Description | Example |
|---|---|---|---|
| response_code | string | A combination of HTTP code and Klikoo B2B internal code. See page documentation API's Response Code . | “200012000” |
| response_message | string | An explanation of response code | "Success" |
| data | object | Contains additional data related to the response. | |
signature | string | The generated digital signature | "leovt4neqY/eFlg797t8TJXvS14x97 cJ/AQbgIjlW+HSqE8/MN8xS7z1IbB C71zX7XEvqWP+4YAPa6l6SVM05w==" |
D. Sample Response
{
"response_code": "200012000",
"response_message": "Sukses",
"data": {
"signature": "leovt4neqY/eFlg797t8TJXvS14x97cJ/AQbgIjlW+HSqE8/MN8xS7z1IbBC71zX7XEvqWP+4YAPa6l6SVM05w=="
}
}
Try It Here (Form)
To try the following endpoint, enter the example request data you want to use in the following form