API-Dokumentation
PHP-CodebeispielVerbindung
- HTTP-Methode
POST- API-URL
https://onesmm.com/api/v2- Antwortformat
JSON
servicesServiceliste
| Parameter | Beschreibung |
|---|---|
key |
Dein API-Schlüssel |
action |
services |
Beispielantwort
[
{
"service": 1,
"name": "Followers",
"type": "Default",
"category": "First Category",
"rate": "0.90",
"min": "50",
"max": "10000",
"refill": true,
"cancel": true
},
{
"service": 2,
"name": "Comments",
"type": "Custom Comments",
"category": "Second Category",
"rate": "8",
"min": "10",
"max": "1500",
"refill": false,
"cancel": true
}
]
addBestellung hinzufügen
Beispielantwort
{
"order": 23501
}
statusBestellstatus
| Parameter | Beschreibung |
|---|---|
key |
Dein API-Schlüssel |
action |
status |
order |
Bestell-ID |
Beispielantwort
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
multi_statusStatus mehrerer Bestellungen
| Parameter | Beschreibung |
|---|---|
key |
Dein API-Schlüssel |
action |
status |
orders |
Bestell-IDs (durch Kommas getrennt, bis zu 100 IDs) |
Beispielantwort
{
"1": {
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
},
"10": {
"error": "Incorrect order ID"
},
"100": {
"charge": "1.44219",
"start_count": "234",
"status": "In progress",
"remains": "10",
"currency": "USD"
}
}
refillRefill erstellen
| Parameter | Beschreibung |
|---|---|
key |
Dein API-Schlüssel |
action |
refill |
order |
Bestell-ID |
Beispielantwort
{
"refill": "1"
}
multi_refillMehrere Refills erstellen
| Parameter | Beschreibung |
|---|---|
key |
Dein API-Schlüssel |
action |
refill |
orders |
Bestell-IDs (durch Kommas getrennt, bis zu 100 IDs) |
Beispielantwort
[
{
"order": 1,
"refill": 1
},
{
"order": 2,
"refill": 2
},
{
"order": 3,
"refill": {
"error": "Incorrect order ID"
}
}
]
refill_statusRefill-Status abrufen
| Parameter | Beschreibung |
|---|---|
key |
Dein API-Schlüssel |
action |
refill_status |
refill |
Refill-ID |
Beispielantwort
{
"status": "Completed"
}
multi_refill_statusStatus mehrerer Refills abrufen
| Parameter | Beschreibung |
|---|---|
key |
Dein API-Schlüssel |
action |
refill_status |
refills |
Refill-IDs (durch Kommas getrennt, bis zu 100 IDs) |
Beispielantwort
[
{
"refill": 1,
"status": "Completed"
},
{
"refill": 2,
"status": "Rejected"
},
{
"refill": 3,
"status": {
"error": "Refill not found"
}
}
]
cancelStornierung erstellen
| Parameter | Beschreibung |
|---|---|
key |
Dein API-Schlüssel |
action |
cancel |
orders |
Bestell-IDs (durch Kommas getrennt, bis zu 100 IDs) |
Beispielantwort
[
{
"order": 9,
"cancel": {
"error": "Incorrect order ID"
}
},
{
"order": 2,
"cancel": 1
}
]
balanceBenutzerguthaben
| Parameter | Beschreibung |
|---|---|
key |
Dein API-Schlüssel |
action |
balance |
Beispielantwort
{
"balance": "100.84292",
"currency": "USD"
}