REST API v1.0 · HTTPS JSON · Bearer / X-API-Key
Τεκμηρίωση Developer REST API v1 & Αυτοματισμός SMS Non-VoIP (2026) | OnayNet
Ενσωματώστε δοκιμές QA, ροές πολλαπλών λογαριασμών και αυτοματισμούς B2B μέσω τυπικών endpoints HTTPS JSON με άμεση πρόσβαση σε φυσικές θύρες SIM σε 190+ χώρες.
Generate API Key in ProfileΑναφορά Endpoints REST API v1
| Method | Endpoint Path | Auth | Περιγραφή & Συμπεριφορά |
|---|---|---|---|
| GET | /api/v1/balance | Bearer / X-API-Key | Returns current wallet balance, account email, and currency. |
| GET | /api/v1/countries | Public / Optional | Lists all 190+ country codes (e.g. 187 for USA, 16 for UK, 62 for Turkey). |
| GET | /api/v1/services?country=187 | Public / Optional | Lists real-time physical SIM inventory, prices, and service slugs. |
| POST | /api/v1/orders/buy | Bearer / X-API-Key | Allocates a dedicated Non-VoIP E.164 phone number and returns order_id & phone_number. |
| GET | /api/v1/orders/:id | Bearer / X-API-Key | Polls live SS7/SMPP gateway for incoming SMS and returns parsed 4-8 digit sms_code. |
| POST | /api/v1/orders/:id/cancel | Bearer / X-API-Key | Cancels an active order where no SMS arrived and triggers an instant 100% atomic wallet refund. |
| POST | /api/v1/orders/:id/finish | Bearer / X-API-Key | Marks an order that already received an SMS code as completed. |
- WAITING
- Η φυσική θύρα SIM εκχωρήθηκε και αναμένει SMS στο δίκτυο SS7/SMPP. Καλέστε GET /api/v1/orders/:id κάθε 3 δευτερόλεπτα.
- RECEIVED / COMPLETED
- Το SMS επαλήθευσης ελήφθη· ο κωδικός OTP 4–8 ψηφίων βρίσκεται στο πεδίο data.sms_code.
- CANCELLED
- Η παραγγελία ακυρώθηκε πριν τη λήψη SMS· 100% αυτόματη επιστροφή χρημάτων στο υπόλοιπο του πορτοφολιού σας.