Tài liệu API

API URL https://1dg.me/api/v2
API Key Sign up now to get key
HTTP Method POST
Content-Type application/x-www-form-urlencoded
Response JSON
Parameters Description
key API Key
action "services"
Example response
[
    {
        "service": 1,
        "name": "Youtube views",
        "type": "Default",
        "category": "Youtube",
        "rate": "2.5",
        "min": "200",
        "max": "10000",
        "refill": true
    },
    {
        "service": 2,
        "name": "Facebook comments",
        "type": "Custom Comments",
        "category": "Facebook",
        "rate": "4",
        "min": "10",
        "max": "1500",
        "refill": false
    }
]
Parameters Description
key API Key
action "add"
service Service ID
link Link
quantity Needed quantity
Example response
{
    "order": 99999
}
Parameters Description
key API Key
action "status"
order Order ID
Example response
{
    "charge": "2.5",
    "start_count": "168",
    "status": "Completed",
    "remains": "-2"
}

Status: Pending, Processing, In progress, Completed, Partial, Canceled

Parameters Description
key API Key
action "status"
orders Order IDs separated by comma (E.g: 123,456,789) (Limit 100)
Example response
{
    "123": {
        "charge": "0.27819",
        "start_count": "3572",
        "status": "Partial",
        "remains": "157"
    },
    "456": {
        "error": "Incorrect order ID"
    },
    "789": {
        "charge": "1.44219",
        "start_count": "234",
        "status": "In progress",
        "remains": "10"
    }
}
Parameters Description
key API Key
action "balance"
Example response
{
    "balance": "68.6868",
    "currency": "USD"
}
Parameters Description
key API Key
action "refill"
order Order ID
Example response
{
    "refill": "1"
}
Parameters Description
key API Key
action "refill"
orders Order IDs separated by comma (E.g: 123,456,789) (Limit 100)
Example response
{
    "refill": "1"
}
Parameters Description
key API Key
action "refill_status"
refill Refill ID
Example response
{
    "status": "Completed"
}
Parameters Description
key API Key
action "refill_status"
refills Refill IDs separated by comma (E.g: 123,456,789) (Limit 100)
Example response
[
    {
        "refill": 1,
        "status": "Completed"
    },
    {
        "refill": 2,
        "status": "Rejected"
    },
    {
        "refill": 3,
        "status": {
            "error": "Incorrect refill ID"
        }
    }
]
Parameters Description
key API Key
action "products"
Example response
[
    {
        "product": 1,
        "name": "Netflix premium 1 month",
        "require": "Input your account",
        "rate": 2.5,
        "min": 1,
        "max": 10,
        "category": "Netflix",
        "status": "In stock",
        "inventory": 40,
        "type": "Auto"
    },
    {
        "product": 2,
        "name": "Youtube premium 1 month",
        "require": "Input your account",
        "rate": 5,
        "min": 1,
        "max": 1,
        "category": "Youtube"
        "status": "Out of stock"
        "inventory": 0,
        "type": "Auto"
    },
    {
        "product": 3,
        "name": "Facebook account 5000 friends"
        "rate": 0.5,
        "min": 1,
        "max": 2,
        "category": "Facebook"
        "status": "In stock",
        "type": "Service"
    }
]
Parameters Description
key API Key
action "add_product_order"
product Product ID
quantity Needed quantity
require Infomation need to process
Example response
{
    "order": 99999
} 
Parameters Description
key API Key
action "product_order_status"
order Product Order ID
Example response
{
    "charge": 7.5,
    "status": "Completed",
    "result": "c85c1d1a-9ef3-4d01-8c58-3dfaf3bbc78e"
}

Status: Pending, In progress, Completed, Partial, Canceled

Parameters Description
key API Key
action "product_order_status"
orders Order IDs separated by comma (E.g: 123,456,789) (Limit 100)
Example response
{
    "123": {
        "charge": 7.5,
        "status": "Completed",
        "result": "c85c1d1a-9ef3-4d01-8c58-3dfaf3bbc78e"
    },
    "456": {
        "error": "Incorrect order ID"
    },
    "789": {
        "charge": 0,
        "status": "Canceled",
        "note": "Out of stock"
    },
    "688": {
        "charge": 5.6,
        "status": "Partial",
        "note": "",
        "refund": 0.4
    }
}