Compare Tech
  1. Endpoints
Compare Tech
  • Readme
  • API
  • Endpoints
    • Coverage
      POST
    • Subscription
      POST
    • Status
      GET
    • Send OTP
      POST
    • Reset OTP
      POST
    • Documents
      GET
    • Traders
      GET
  1. Endpoints

Subscription

POST
/subscription
Create a request to subscribe a new customer to the provider (fiber, mobile, electricity, etc...)

Request

Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'https://dev-online-cart.compare-tech.com/api/v1/subscription' \
--header 'Authorization: Fk4oXfgzPOdTQr5bYd1jiFbcO2LgzUwNnURkqXvMPwPpLpPvQK2nHWUzy6D791wBrDjlGWAvR3ErKSEZ6mOAemClziFVSAjuaoHuhJSIOJjEtX2iVB3wzFXmUXwDcTHr' \
--header 'Content-Type: application/json' \
--data-raw '{
    "debug": true,
    "driver": "fastweb",
    "product": "fastweb casa light",
    "address": {
        "street": "VIA CENERENTOLA",
        "number": 1,
        "city": "BRONTE",
        "province": "CT",
        "zip_code": 33333
    },
    "firstname": "Mario",
    "lastname": "Rossi",
    "tax_code": "RSSMRA62C03H501D",
    "email": "93821324314332123@gmail.com",
    "phone": "+393333333333",
    "payment_method": "credit_card",
    "document": {
        "nationality": "Italy",
        "type": "passport",
        "number": "CA78853AC",
        "issued_at": "2024-01-01",
        "expires_at": "2034-01-01",
        "issued_by": "MILANO"
    },
    "number_portability": {
        "phone": {
            "operator": "tim",
            "number": "33333333",
            "code": "KEA069234556U",
            "keep": true
        },
        "mobile": {
            "operator": "wind3",
            "number": "+393133131446",
            "keep": true,
            "has_virtual_sim": true,
            "transfer_credit": false,
            "sim_type": "physical",
            "contract_type": "rechargeable"
        }
    }
}'
Response Response Example
{
    "id": 2321,
    "action": "fastweb:subscription",
    "status": "running",
    "payload": {
        "debug": true,
        "driver": "fastweb",
        "product": "fastweb casa light",
        "address": {
            "street": "VIA CENERENTOLA",
            "number": "1",
            "city": "BRONTE",
            "province": "CT",
            "zip_code": "33333",
            "full": "VIA CENERENTOLA 1, BRONTE (CT)",
            "province_type1": "CT",
            "province_type2": "CATANIA",
            "street_type1": "VIA CENERENTOLA",
            "street_type2": "VIA CENERENTOLA",
            "street_type3": "VIA CENERENTOLA",
            "city_type1": "BRONTE",
            "city_type2": "BRONTE",
            "city_type3": "BRONTE"
        },
        "firstname": "Mario",
        "lastname": "Rossi",
        "tax_code": "RSSMRA62C03H501D",
        "email": "93821324314332123@gmail.com",
        "phone": "+393333333333",
        "payment_method": "credit_card",
        "document": {
            "nationality": "Italy",
            "type": "passport",
            "number": "CA78853AC",
            "issued_at": "2024-01-01",
            "expires_at": "2034-01-01",
            "issued_by": "MILANO"
        },
        "number_portability": {
            "phone": {
                "operator": "tim",
                "number": "33333333",
                "code": "KEA069234556U",
                "keep": true
            },
            "mobile": {
                "operator": "wind3",
                "number": "+393133131446",
                "keep": true,
                "has_virtual_sim": true,
                "transfer_credit": false,
                "sim_type": "physical",
                "contract_type": "rechargeable",
                "address": {
                    "full": "VIA CENERENTOLA 1, BRONTE (CT)"
                }
            }
        },
        "addons": [],
        "flag_marketing_1": false,
        "flag_marketing_2": false,
        "flag_marketing_3": false,
        "flag_extra_1": false,
        "__info": {
            "message": "",
            "logs": []
        }
    },
    "created_at": "2025-09-12T09:24:55.000000Z",
    "updated_at": "2025-09-12T09:24:55.000000Z"
}
Modified at 2025-09-25 06:58:01
Previous
Coverage
Next
Status
Built with