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
FieldTypeValue
Content-TypeStringapplication/x-www-form-urlencoded
POST Parameters (Body)
ParameterTypeRequiredDescription
tokenStringYesThe 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
ParameterTypeRequiredDescription
usernameStringYesYour API Username.
signStringYesMD5(username + api_key).
Example Response (Success)

Service List

POST https://davin.id/api/service
Request Parameters
ParameterTypeRequiredDescription
usernameStringYesYour API Username.
signStringYesMD5(username + api_key).
typeStringYesCategory 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
ParameterTypeRequiredDescription
usernameStringYesYour API Username.
signStringYesMD5(username + api_key).
typeStringYesprabayar, pascabayar, socmed, or account.
serviceStringYesService ID (SID) obtained from the Service List.
targetStringYesCustomer Number / Link / Username / Target Data.
quantityIntOptionalRequired ONLY if type is socmed.
Example Response (Success)

Check Order Status

POST https://davin.id/api/status
Request Parameters
ParameterTypeRequiredDescription
usernameStringYesYour API Username.
signStringYesMD5(username + api_key).
typeStringYesprabayar, pascabayar, socmed, or account.
trx_idStringYesTransaction ID (Order ID) returned from Place Order.
Example Response (Prabayar)
Example Response (Pascabayar)
Example Response (Account)
Example Response (Socmed)