API Documentation
Developer API Guide
Integrate our services into your platform seamlessly. All API requests must use the HTTP POST method.
Authentication
To secure your connection, all requests to our API endpoints require authentication using your username and a generated sign (Signature).
How to generate the sign parameter:
The signature is an MD5 hash combination of your registered API Username and API Key.
You can find your API Username and API Key on your profile/settings page.
SSO Token Verification
This dynamic endpoint validates internal or cross-domain authentication tokens generated through the Davin Identity Single Sign-On flow.
POST
https://davin.id/api/verify_sso.php
Request Header
| Field | Type | Value |
|---|---|---|
| Content-Type | String | application/x-www-form-urlencoded |
POST Parameters (Body)
| Parameter | Type | Required | Description |
|---|---|---|---|
token | String | Yes | The unique 32-character hex oauth_token generated from the login portal. |
Example Response (Success)
Example Response (Error)
Check Profile & Balance
POST
https://davin.id/api/profile
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
username | String | Yes | Your API Username. |
sign | String | Yes | MD5(username + api_key). |
Example Response (Success)
Service List
POST
https://davin.id/api/service
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
username | String | Yes | Your API Username. |
sign | String | Yes | MD5(username + api_key). |
type | String | Yes | Category Type. Value must be: prabayar, pascabayar, socmed, or account. |
Example Response (Prabayar)
Example Response (Pascabayar / Account)
Example Response (Socmed)
Place Order
POST
https://davin.id/api/order
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
username | String | Yes | Your API Username. |
sign | String | Yes | MD5(username + api_key). |
type | String | Yes | prabayar, pascabayar, socmed, or account. |
service | String | Yes | Service ID (SID) obtained from the Service List. |
target | String | Yes | Customer Number / Link / Username / Target Data. |
quantity | Int | Optional | Required ONLY if type is socmed. |
Example Response (Success)
Check Order Status
POST
https://davin.id/api/status
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
username | String | Yes | Your API Username. |
sign | String | Yes | MD5(username + api_key). |
type | String | Yes | prabayar, pascabayar, socmed, or account. |
trx_id | String | Yes | Transaction ID (Order ID) returned from Place Order. |