| Method | Path | Format | Authentication |
|---|
| POST | /api/v1.0/accounts | json | OAuth 2.0 with Access Token |
| Field | Value | Type | Mandatory | Length | Description | Example |
|---|
| X-PARTNER-ID | api_key | Alphanumeric | Mandatory | | API key obtained from the merchant dashboard. | b3ed7d4b-a96c-6c08-b3c7-12c3124242d9 |
| Accept | application/json | Alphabetic | Mandatory | | Specifies JSON as the expected response format. | application/json |
| Authorization | Bearer {bearerToken} | Alphanumeric | Mandatory | | Bearer token obtained from the get access token endpoint. | Bearer eyJ0eXAiOiJKV1{…} |
| Field | Type | Mandatory | Length | Description | Example |
|---|
| name | Alphanumeric | Mandatory | | Full name of the account holder | Dhany Ahmad 19hapus |
| email | Alphanumeric | Optional | | Email address of the account | DhanyAhmad19@gmail.com |
| phone | Alphanumeric | Optional | | Phone number associated with the account | 082371268163823 |
{
"name" : "Dhany Ahmad 19hapus",
"phone" : "082371268163823",
"email" : "DhanyAhmad19@gmail.com"
}
| Field | Type | Mandatory | Length | Description | Example |
|---|
| status | Numeric | Mandatory | 3 | HTTP Status Code | 200 |
| success | Boolean | Mandatory | 1 | Indicates success status | true |
| data | Object | Conditional | | Sub account object | |
| > id | Alphanumeric | Mandatory | | Sub account ID | 01K96K1YWFEC0BAQ9E0ZY7W882 |
| > name | Alphanumeric | Mandatory | | Full name of the account holder | Dhany Ahmad 19hapus |
| > email | Alphanumeric | Mandatory | | Email address of the account | DhanyAhmad19@gmail.com |
| > phone | Alphanumeric | Mandatory | | Phone number associated | 082371268163823 |
| > status | Enum | Mandatory | | Account status values: active | active |
Success: Here’s an example of a successful response.
{
"status": 200,
"success": true,
"data": {
"id": "01K96K1YWFEC0BAQ9E0ZY7W882",
"name": "Dhany Ahmad 19hapus",
"email": "DhanyAhmad19@gmail.com",
"phone": "082371268163823",
"status": "active"
}
}