API-Documentation

Main-Url: https://anosim.net/api/v1

  • 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 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": 10,
            "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

    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
  • 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": 10,
                "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": 10,
                    "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:29:32.587Z",
                    "durationInMinutes": 10,
                    "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": 10,
                    "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": 10,
                "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:29:32.587Z",
                "durationInMinutes": 10,
                "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": 10,
            "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-22T03:36:52.7Z",
            "durationInMinutes": 60,
            "priceInUSD": 12.00,
            "state": "Active",
            "extentionForId": null
        }
    ]
                                                    

  • 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": 10,
        "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-22T03: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.netapi/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": 10,
                "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-22T03:36:52.7Z",
                "durationInMinutes": 60,
                "priceInUSD": 12.00,
                "state": "Pending",
                "extentionForId": 54
            }
        ]
    }
                                                    

  • Description

    List of orderbookingstatetypes
  • List





  • Description

    List of rental types
  • List