Netwo - API Portabilité

ūüďĚ Commande de portabilit√©

Commande suite une demande d'éligibilité

Gràce à l'éligibility-id obtenu lors d'une demande d'éligibilité, il est possible de passer une commande de portabilité en reprenant les même paramètre avec un prix garanti.


POST /eligibility/create_order

{
  "eligibility-id": "3715E50C-2F8D-488B-97AF-546F71D2C1B0",
  "customer": {
    "name": "Netwo",
    "address": {
      "address": "35 rue des Jeuneurs",
      "zip_code": "75002",
      "city": "PARIS",
      "country": "string",
      "door": "string",
      "floor": "string",
      "locality": "string",
      "owner": "string",
      "residence": "string",
      "stair": "string"
    },
    "company_number": "123456789",
    "contact": {
      "email": "string",
      "name": "string",
      "phone": "string"
    },
  "comments": "string",
  "portability_wanted_date": "2021-05-10T21:34:17.232Z"
}

J'obtiens en réponse le détail de ma commande.

{
    "order_id": "4d9a72f3-db8f-4af8-9b36-397fca86873a",
    "information_complement": "Un petit commentaire...",
    "created_at": "2022-03-16T16:02:33.717814Z",
    "amount": 26.0,
    "sub_orders": [
        {
            "state": "confirmed",
            "portability": {
                "did": [
                    "0100020001",
                    "0100020002",
                    "0100020003"
                ],
                "idn": "0100020000",
                "operator_comment": "RAS",
                "wanted_date": "2022-10-29T12:00:17.232Z"
            },
            "options": [
                {
                    "option-name": "call-validation"
                }
            ]
        }
    ],
    "customer": {
        "name": "Netwo SAS",
        "company_number": "84412522900014",
        "address": {
            "address": "35 rue des Jeuneurs",
            "zip_code": "75002",
            "city": "PARIS",
            "country": "France"
        }
    },
    "contact": {
        "name": "Jean-Michel Barroux",
        "email": "[email protected]",
        "phone": "0102030405"
    }
}

Je peux obtenir ce même résultat en appelant régulièrement GET /portability/order/{order-id}