API-Документация
Main URL:
https://anosim.net/
Version:
Authentication
-
Description
Every endpoint requires authentication via your API key. The key can be supplied either as theapikeyquery parameter (legacy) or as an HTTP request header (recommended). If both are supplied, the header value takes precedence. -
Supported request headers
-
Query parameter (legacy)
-
Call Examples
# Query parameter (legacy) curl "https://anosim.net/api/v1/Balance?apikey=XXX" # Authorization header (recommended) curl -H "Authorization: Bearer XXX" "https://anosim.net/api/v1/Balance" # X-API-Key header curl -H "X-API-Key: XXX" "https://anosim.net/api/v1/Balance"
EndPoints
-
Description
Returns balance of account -
Url
/Balance -
Method
GET -
Query Parameters
-
Call Example
https://anosim.net/api/v1/Balance?apikey=XXX -
Response Parameter
-
Response Example
{ "accountBalanceInUSD":3418.40 }
-
Description
Returns all countries -
Url
/Countries -
Method
GET -
Query Parameters
-
Call Example
https://anosim.net/api/v1/Countries?apikey=XXX -
Response Parameter
-
Response Example
[ { "id": 67, "country": "CzechRepublic" }, { "id": 98, "country": "Germany" }, { "id": 165, "country": "Lithuania" }, ...
-
Description
Returns all services -
Url
/Services -
Method
GET -
Query Parameters
-
Call Example
https://anosim.net/api/v1/Services?apikey=XXX -
Response Parameter
-
Response Example
[ { "id": 1, "service": "WhatsApp" }, { "id": 2, "service": "Telegram" }, { "id": 3, "service": "Google" } ]
-
Description
Returns all products -
Url
/Products -
Method
GET -
Query Parameters
-
Call Example
https://anosim.net/api/v1/Products?apikey=XXX&countryId=98 -
Response Parameter
-
Response Example
[ { "id": 1, "country": "Germany", "rentalType": "RentalService", "service": "Google, Gmail, Youtube", "durationInMinutes": 1440, "price": 1.00 }, { "id": 2, "country": "Netherlands", "rentalType": "RentalFull", "service": "", "durationInMinutes": 43200, "price": 25.00 }, { "id": 3, "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "durationInMinutes": 20, "price": 1.43, } ]
-
Description
Returns product by Id with available-count and provider -
Url
/Products/:id -
Method
GET -
Query Parameters
-
Call Example
https://anosim.net/api/v1/Products/1?apikey=XXX -
Response Parameter
-
Response Example
{ "id": 1, "country": "Germany", "rentalType": "RentalService", "service": "Google, Gmail, Youtube", "durationInMinutes": 1440, "price": 1.00, "provider": [ { "id": 0, "name": "Any", "availableCount": 2 }, { "id": 1, "name": "T-Mobile", "availableCount": 1 }, { "id": 2, "name": "Vodafone", "availableCount": 1 } ] }
-
Description
Returns all products with detailed price mapping and provider availability for each price -
Url
/ProductPrices -
Method
GET -
Query Parameters
-
Call Example
https://anosim.net/api/v1/ProductPrices?apikey=XXX&countryId=98&rentalTypeId=1&serviceId=1 -
Response Parameter
-
Response Example
[ { "id": 1, "country": "Germany", "rentalType": "Activation", "service": "WhatsApp", "durationInMinutes": 20, "basePrice": 0.20, "totalCount": 5, "priceMap": [ { "price": 0.20, "providers": [ { "providerId": 0, "name": "Any", "availableCount": 5 }, { "providerId": 1, "name": "T-Mobile", "availableCount": 3 }, { "providerId": 2, "name": "Vodafone", "availableCount": 2 } ] }, { "price": 0.42, "providers": [ { "providerId": 0, "name": "Any", "availableCount": 7 } ] } ] }, { "id": 2, "country": "Germany", "rentalType": "Activation", "service": "Telegram", "durationInMinutes": 20, "basePrice": 0.15, "totalCount": 12, "priceMap": [ { "price": 0.15, "providers": [ { "providerId": 0, "name": "Any", "availableCount": 12 }, { "providerId": 1, "name": "T-Mobile", "availableCount": 8 }, { "providerId": 2, "name": "Vodafone", "availableCount": 4 } ] } ] }, { "id": 3, "country": "Germany", "rentalType": "Activation", "service": "Google, Gmail, Youtube", "durationInMinutes": 20, "basePrice": 0.45, "totalCount": 0, "priceMap": [] } ]
-
Description
Creates an order -
Url
/Orders -
Method
POST -
Query Parameters
-
Call Example
https://anosim.net/api/v1/Orders?apikey=XXX&productId=6&amount=1&providerId=0&maxPrice=0 -
Response Parameter
-
Response Example
{ "id": 65, "date": "2024-05-21T23:22:04.357Z", "priceInUSD": 10.00, "bookings": [ { "id": 56, "number": "+420123456778", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "startDate": "2024-05-21T23:22:04.357Z", "endDate": "2024-05-21T23:42:04.357Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Active", "extentionForId": null } ] }
-
Description
Returns last orders (max. 100) incl. orderbookings -
Url
/Orders -
Method
GET -
Query Parameters
-
Call Example
https://anosim.net/api/v1/Orders?apikey=XXX -
Response Parameter
-
Response Example
[ { "id": 66, "date": "2024-05-22T01:19:32.457Z", "priceInUSD": 10.00, "bookings": [ { "id": 58, "number": "+420123456789", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "startDate": "2024-05-22T01:19:32.457Z", "endDate": "2024-05-22T01:39:32.457Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Ended", "extentionForId": null }, { "id": 59, "number": "+420123456778", "country": "CzechRepublic", "rentalType": "RentalService", "service": "WhatsApp", "startDate": "2024-05-22T01:19:32.587Z", "endDate": "2024-05-22T01:39:32.587Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Active", "extentionForId": null } ] }, { "id": 65, "date": "2024-05-22T01:07:17.017Z", "priceInUSD": 10.00, "bookings": [ { "id": 56, "number": "+420123456710", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "startDate": "2024-05-22T01:07:17.017Z", "endDate": "2024-05-22T01:27:17.017Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Not Used", "extentionForId": null } ] } ]
-
Description
Returns order by Id incl. orderbookings -
Url
/Orders/:id -
Method
GET -
Query Parameters
-
Call Example
https://anosim.net/api/v1/Orders/66?apikey=XXX -
Response Parameter
-
Response Example
{ "id": 66, "date": "2024-05-22T01:19:32.457Z", "priceInUSD": 10.00, "bookings": [ { "id": 58, "number": "+420123456789", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "startDate": "2024-05-22T01:19:32.457Z", "endDate": "2024-05-22T01:39:32.457Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Ended", "extentionForId": null }, { "id": 59, "number": "+420123456778", "country": "CzechRepublic", "rentalType": "RentalService", "service": "WhatsApp", "startDate": "2024-05-22T01:19:32.587Z", "endDate": "2024-05-22T01:39:32.587Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Active", "extentionForId": null } ] }
-
Description
Returns all current booked simcards -
Url
/SimCards -
Method
GET -
Query Parameters
-
Call Example
https://anosim.net/api/v1/SimCards?apikey=XXX -
Response Parameter
-
Response Example
[ { "number": "+420123456779", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "inUseStart": "2024-05-21T23:19:32.457Z", "inUseEnd": "2024-05-21T23:39:32.457Z" }, { "number": "+420123456789", "country": "CzechRepublic", "rentalType": "RentalService", "service": "WhatsApp", "inUseStart": "2024-05-21T23:19:32.587Z", "inUseEnd": "2024-05-21T23:29:32.587Z" }, { "number": "+420123456798", "country": "CzechRepublic", "rentalType": "RentalFull", "service": "", "inUseStart": "2024-05-21T23:19:32.587Z", "inUseEnd": "2024-05-21T23:29:32.587Z" } ]
-
Description
Returns last received SMS (max. 100) -
Url
/Sms -
Method
GET -
Query Parameters
-
Call Example
https://anosim.net/api/v1/Sms?apikey=XXX -
Response Parameter
-
Response Example
[ { "simCardNumber": "+420123456789", "messageDate": "2024-05-21T23:22:04.357Z", "messageSender": "+420123456123", "messageText": "Hello" }, { "simCardNumber": "+420123456756", "messageDate": "2024-03-11T22:30:12.773Z", "messageSender": "+420123456123", "messageText": "Hello again" } ]
-
Description
Returns SMS of an order booking -
Url
/Sms/:orderbookingId -
Method
GET -
Query Parameters
-
Call Example
https://anosim.net/api/v1/Sms/12?apikey=XXX -
Response Parameter
-
Response Example
[ { "simCardNumber": "+420123456741", "messageDate": "2024-05-21T23:22:04.357Z", "messageSender": "+420123456123", "messageText": "Hello" }, { "simCardNumber": "+420123456741", "messageDate": "2024-05-21T23:24:28.123Z", "messageSender": "+420123456123", "messageText": "Hello again" } ]
-
Description
Returns last order bookings (max. 100) -
Url
/OrderBookings -
Method
GET -
Query Parameters
-
Call Example
https://anosim.net/api/v1/OrderBookings?apikey=XXX -
Response Parameter
-
Response Example
[ { "id": 59, "number": "+420123456778", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "startDate": "2024-05-22T01:19:32.587Z", "endDate": "2024-05-22T01:39:32.587Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Active", "extentionForId": null }, { "id": 54, "number": "+4912345678910", "country": "Germany", "rentalType": "RentalFull", "service": "", "startDate": "2024-05-22T01:36:51.7Z", "endDate": "2024-05-22T02:36:52.7Z", "durationInMinutes": 60, "priceInUSD": 12.00, "state": "Active", "extentionForId": null } ]
-
Description
Returns all current order bookings and those that ended within the last 12 hours -
Url
/OrderBookingsCurrent -
Method
GET -
Query Parameters
-
Call Example
https://anosim.net/api/v1/OrderBookingsCurrent?apikey=XXX -
Response Parameter
-
Response Example
[ { "id": 59, "number": "+420123456778", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "startDate": "2024-05-22T01:19:32.587Z", "endDate": "2024-05-22T01:39:32.587Z", "durationInMinutes": 20, "state": "Active", }, { "id": 54, "number": "+4912345678910", "country": "Germany", "rentalType": "RentalFull", "service": "", "startDate": "2024-05-22T01:36:51.7Z", "endDate": "2024-05-22T02:36:52.7Z", "durationInMinutes": 60, "state": "Active", } ]
-
Description
Returns order booking by Id -
Url
/OrderBooking -
Method
GET -
Query Parameters
-
Call Example
https://anosim.net/api/v1/OrderBookings/59?apikey=XXX -
Response Parameter
-
Response Example
{ "id": 59, "number": "+420123456778", "country": "CzechRepublic", "rentalType": "Activation", "service": "WhatsApp", "startDate": "2024-05-22T01:19:32.587Z", "endDate": "2024-05-22T01:39:32.587Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Active", "extentionForId": null }, { "id": 54, "number": "+4912345678910", "country": "Germany", "rentalType": "RentalFull", "service": "", "startDate": "2024-05-22T01:36:51.7Z", "endDate": "2024-05-22T02:36:52.7Z", "durationInMinutes": 60, "priceInUSD": 12.00, "state": "Active", "extentionForId": null }
-
Description
Cancels activation order booking by Id -
Url
/OrderBooking:id -
Method
PATCH -
Query Parameters
-
Call Example
https://anosim.net/api/v1/OrderBookings/59?apikey=XXX -
Response Parameter
-
Response Example
{ "success": true }
-
Description
Creates a reuse order of a booking (only available for Activation-Kleinanzeigen) -
Url
/OrderBookingReUse/:orderbookingid -
Method
POST -
Query Parameters
-
Call Example
https://anosim.net/api/v1/OrderBookingsReUse/62?apikey=XXX -
Response Parameter
-
Response Example
{ "id": 65, "date": "2024-05-21T23:22:04.357Z", "priceInUSD": 10.00, "bookings": [ { "id": 65, "number": "+4912345678915", "country": "Germany", "rentalType": "Activation", "service": "Kleinanzeigen", "startDate": "2024-06-23T09:22:07.485Z", "endDate": "2024-06-23T09:42:07.485Z", "durationInMinutes": 20, "priceInUSD": 5.00, "state": "Active", "extentionForId": null } ] }
-
Description
Creates an extend order booking -
Url
/OrderBookings -
Method
POST -
Query Parameters
-
Call Example
https://anosim.net/api/v1/OrderBookings?apikey=XXX&orderBookingId=103&extentionInMinutes=60 -
Response Parameter
-
Response Example
{ "id": 66, "date": "2024-05-22T02:36:52.7Z", "priceInUSD": 12.00, "bookings": [ { "id": 55, "number": "+4912345678910", "country": "Germany", "rentalType": "RentalFull", "service": "", "startDate": "2024-05-22T02:36:52.7Z", "endDate": "2024-05-22T02:36:52.7Z", "durationInMinutes": 60, "priceInUSD": 12.00, "state": "Pending", "extentionForId": 54 } ] }
-
Description
Sets the auto-renewal status for order bookings. If orderBookingId is provided, it applies to that specific order booking; otherwise, it applies to all order bookings for the user -
Url
/OrderBookingsAutoRenewal -
Method
POST -
Query Parameters
-
Call Example
https://anosim.net/api/v1/OrderBookingsAutoRenewal/SetAutoRenewalAsync?apiKey=XXX&enable=1&orderBookingId=123 -
Response Parameter
-
Response Example
{ "Success": true, "Message": "Auto-renewal set successfully.", "AffectedOrderBookingsCount": 1 }
Info
-
Description
List of orderbookingstatetypes -
List
-
Description
List of rental types -
List
Id - 1
Id - 2
Id - 3