get extendRentState

https://onlinesim.io/api/rent/extendRentState.php
rent

Extends a rent for a specified period (in days).

This request is needed when your rental period is about to expire, but you plan to continue using it.

IMPORTANT NOTE!

It is worth to mention, that this request is need to be sended only when the rent is still active. If the rent is already expired, you won't be able to extend it.

Parameters

tzid
Required
Operation ID
In: query
Schema:
  • integer
    Example: 10000
    >= 1
days
Required

Extention period for rental number (in days). Can only accept values listed in extend section of getRentState response

In: query
Schema:
  • integer
    Example: 15
    >= 0
lang

Response language:

fr - French,

de - German,

ru - Russian,

en - English,

zh - Chinese. Please note that the translation applies only to string field values, such as service names or country names. Field names themselves, error messages, and standard values (for example, true/false for boolean fields) remain in English.

In: query
Schema:
  • string
    Example: "en"
    Enum: fr de ru en zh

Responses

200

Successful response for `extendRentState` request: extends the rent of a number with requested parameters or throws an exception.
Content Type:
application/json
  • Schema
  • Examples
  • object
    Example: {"response":1,"item":{"status":1,"extension":1,"messages":{"current_page":1,"data":[{"id":1,"service":"Google","text":"Your verification code is 070051","code":"070051","created_at":"2022-07-17 21:46:58"}],"from":1,"last_page":12,"per_page":20,"to":12,"total":234},"sum":251.5,"country":46,"checked_time":"2022-07-17 21:41:20","number":"9915584307","rent":4,"tzid":10000,"time":5750,"days":3,"hours":95,"extend":{"#period_in_days#":36},"checked":true,"reload":1,"day_extend":36,"m_ext":true,"freeze":true}}
    Properties:
    • response
      mixed
      1, if the request has been completed successfully, or an error message
      Example: 1
      One Of:
      • integer
        Example: 0
      • string
        Example: "string"
    • item
      object
      List of active rental numbers of your profile
      Example: {"status":1,"extension":1,"messages":{"current_page":1,"data":[{"id":1,"service":"Google","text":"Your verification code is 070051","code":"070051","created_at":"2022-07-17 21:46:58"}],"from":1,"last_page":12,"per_page":20,"to":12,"total":234},"sum":251.5,"country":46,"checked_time":"2022-07-17 21:41:20","number":"9915584307","rent":4,"tzid":10000,"time":5750,"days":3,"hours":95,"extend":{"#period_in_days#":36},"checked":true,"reload":1,"day_extend":36,"m_ext":true,"freeze":true}