coverage and subscribe.id provided in the response and check the result every N second.Api Keys under Organizations on your administration panel.tqdoHWo1goN4Pd2U90Qd9wdLkNPTp3VqmTLSBEOPnNdZ5GjYlDTt8aAsAa6XMHCshBApi Keys under your Organization. Please verify that in the administration panel that is accessible from the endpooint /adminAuthorization--header 'Authorization: tqdoHWo1goN4POU90QqKdLkNPTp3VqmTLSBEOPnNPZ5GjYlDTt8aAsAa6XMHCshB' \POST /coverage{
"id": 134,
"action": "fastweb:coverage",
"status": "pending",
"payload": {},
"created_at": "2024-11-18T05:32:09.000000Z",
"updated_at": "2024-11-18T05:32:09.000000Z"
}pending. This means the request has been created, and it's now waiting to be processed. Check here to see the full cycle of actions.GET /status/{id} and wait for the field status to change. When the value reaches done it means the address is covered. If instead you see canceled it will mean that something went wrong: either the address was not correct or the area is not covered.payload.__info.result. Now that you got the name of the products available it's time to subscribe the customer.payload.__info.data.addons. You can check more details here{
"id": 185,
"action": "fastweb:coverage",
"status": "done",
"payload": {
"driver": "fastweb",
"address": {
"street": "VIA CENERENTOLA",
"number": 1,
"city": "BRONTE",
"province": "CT",
"zip_code": 33333,
"full": "VIA CENERENTOLA 1, BRONTE (CT)"
},
"__info": {
"message": "",
"result": [
"Fastweb Casa Light",
"Fastweb Casa",
"Fastweb Casa Plus",
"Fastweb Casa Light + Mobile",
"Fastweb Casa + Mobile",
"Fastweb Casa Plus + Mobile"
],
"data": {
"addons": []
}
}
},
"created_at": "2024-11-18T09:21:36.000000Z",
"updated_at": "2024-11-18T09:21:36.000000Z"
}POST /subscriptionid for you to check, but there is one big difference:interrupted status, meaning that some additional data must be provided for the operation to continue.GET /status endpoint every N second to verify the status and when you see the interrupted status you must read thepayload.__info.message.{
"payload": {
"__info": {
"message": "OTP is requested"
}
}
}phone field.send-otp and reset-otp.POST /send-otp and /reset-otp to send the otp received or request a new one{
"payload": {
"__info": {
"message": "Credit Card is requested",
"data": {
"credit_card": {
"url": "https://paye.netsgroup.com/FWB_CG_WEB/app/cc/main/show?referenceData=2E915264E06CE76FB6B9F29F36764952",
"description": "Action will change to `running` when is good",
"result": "Attenzione, è stata veicolata una richiesta con transazione in corso. Si prega di attendere."
}
}
}
}
}data.credit_card.url and add a new iframe (or whatever other system you prefer)status will change again as well, so keep in mind to ping always the /status/{id} endpoint.{
"data": {
"addons": [
{
"product": "FIBER_2022",
"options": [
{
"name": "FIBER_ADDON_STATICIPV4",
"category": "FIBER_ADDONS",
"default": false,
"type": "FIBER_STATICIP",
"price": 4,
"incompatibilities": []
},
{
"name": "FIBER_ADDON_VOICE",
"category": "FIBER_ADDONS",
"default": false,
"type": "FIBER_VOICE",
"price": 4,
"incompatibilities": []
},
{
"name": "FIBER_ROUTER_FRITZ_7530",
"category": "FIBER_ROUTER",
"default": false,
"type": "FIBER_ROUTER",
"price": 2.2,
"incompatibilities": [
"FIBER_ADDON_DOWNLOAD2500",
"FIBER_ADDON_DOWNLOAD2500_WHITEAREA",
"FIBER_ADDON_DOWNLOAD2500_UP1000",
"FIBER_ADDON_DOWNLOAD10G_UP2500",
"FIBER_ADDON_DOWNLOAD2500_UP1000_WHITEAREA"
]
}
]
}
]
}default and incompatibilities. Default addons are quite simple, they are included already in the product, you can technically even skip them all together as they will be added automatically, but at least you'll be able to show which addons are already added based on the product.incompatibilities, not every addon is compatible with each other, you'll be provided with a list of names in which each addon is not compatible with. For example a FIBER_ROUTER might not be compatible with some FIBER_BANDWIDTH (yes, the bandwidth is considered an addon) because of some hardware limitations. The name used in the list of incompatibilities is the same name as the addon. Keep in mind that some addons are exclusive with other addons of the same category, this means for example that an addon of FIBER_BANDWIDTH is not compatible with any other FIBER_BANDWIDTH because you can only pick 1 bandwith (e.g. 100Mbps or 1Gbps)category and type fields to better organize the showed addons/subscription endpoint. You can check the fields schema here@Note: This entire configuration for addons works right now only for aruba, the specifics might change in future for future addons of different drivers{
"error": "Driver with name: 'vercinge' doesn't exists"
}GET /status/{id} and read the field payload.__info.error. E.g.{
"id": 1,
"action": "fastweb:coverage",
"status": "canceled",
"payload": {
"__info": {
"error": "no coverage for this address and number"
}
},
"error": "interrupted or timeout by signal",
"created_at": "2024-11-17T23:35:22.000000Z",
"updated_at": "2024-11-17T23:35:22.000000Z"
}