REST API v1.0 · HTTPS JSON · Bearer / X-API-Key

תיעוד Developer REST API v1 ואוטומציית SMS Non-VoIP (2026) | OnayNet

שלבו בדיקות QA, ניהול חשבונות מרובים ואוטומציית B2B דרך נקודות קצה HTTPS JSON תקניות עם גישה מיידית לפורטים של SIM פיזי ב-190+ מדינות.

Generate API Key in Profile

מדריך נקודות קצה (Endpoints) ל-REST API v1

OnayNet REST API v1 — Base URL: https://onaynet.co/api/v1
MethodEndpoint PathAuthתיאור והתנהגות
GET/api/v1/balanceBearer / X-API-KeyReturns current wallet balance, account email, and currency.
GET/api/v1/countriesPublic / OptionalLists all 190+ country codes (e.g. 187 for USA, 16 for UK, 62 for Turkey).
GET/api/v1/services?country=187Public / OptionalLists real-time physical SIM inventory, prices, and service slugs.
POST/api/v1/orders/buyBearer / X-API-KeyAllocates a dedicated Non-VoIP E.164 phone number and returns order_id & phone_number.
GET/api/v1/orders/:idBearer / X-API-KeyPolls live SS7/SMPP gateway for incoming SMS and returns parsed 4-8 digit sms_code.
POST/api/v1/orders/:id/cancelBearer / X-API-KeyCancels an active order where no SMS arrived and triggers an instant 100% atomic wallet refund.
POST/api/v1/orders/:id/finishBearer / X-API-KeyMarks an order that already received an SMS code as completed.
WAITING
פורט SIM פיזי הוקצה ומאזין בחיבור SS7/SMPP. בצעו קריאת GET /api/v1/orders/:id כל 3 שניות.
RECEIVED / COMPLETED
הודעת האימות התקבלה; קוד ה-OTP בן 4–8 הספרות מופיע בשדה data.sms_code.
CANCELLED
ההזמנה בוטלה לפני הגעת ה-SMS; 100% מהסכום הוחזר באופן מיידי ליתרת הארנק.