Aller au contenu
Accueil » API SMS Octopush » Récupérer la liste de vos numéros virtuels

Récupérer la liste de vos numéros virtuels

GET
https://api.octopush.com/v1/public/virtual-number/list

Encodage : UTF-8

Authentification

Vos identifiants « api-key » et « api-login » doivent être ajoutés dans les headers.

Vous pouvez également utiliser Basic Auth.

Définition

Ce Web Service vous permet de récupérer la liste de vos Numéros Virtuels.

Paramètres particuliers

aucun.

Exemple Curl

curl -X GET \ 
'https://api.octopush.com/v1/public/virtual-number/list' \ 
-H 'Content-Type: application/json' \ 
-H 'api-login: ******@email.org' \ 
-H 'api-key: ************' \ 
-H 'cache-control: no-cache' 

Code à copier-coller

curl -X GET 'https://api.octopush.com/v1/public/virtual-number/list' -H 'Content-Type: application/json' -H 'api-login: ******@email.org' -H 'api-key: ************' -H 'cache-control: no-cache'

Retour Server JSON

Succès : 200 OK

{
  [
    {
      "user_email": "[email protected]",
      "virtual_number": "+12020661122",
      "country_code": "US",
      "subscription_start_date": "2021-06-23T15:20:52+02:00",
      "subscription_end_date": null,
      "next_payment_date": "2051-06-23T15:20:52+01:00",
      "next_payment_amount": 0.0
    },
    {
      "user_email": "[email protected]",
      "virtual_number": "+33755551111",
      "country_code": "FR",
      "subscription_start_date": "2019-01-17T13:19:12+02:00",
      "subscription_end_date": "2025-04-17T13:19:12+02:00",
      "next_payment_date": "2025-04-17T13:19:12+02:00",
      "next_payment_amount": 30.0
    },
    {
      "user_email": "[email protected]",
      "virtual_number": "+33755224422",
      "country_code": "FR",
      "subscription_start_date": "2020-04-07T08:24:26+02:00",
      "subscription_end_date": "2025-04-07T08:24:26+02:00",
      "next_payment_date": "2025-04-07T08:24:26+02:00",
      "next_payment_amount": 30.0
    }
  ]
}