# Get Contracts

List the Contracts belonging to an Customer.

# Example “Get Contracts” Request

# POST /v1/getContracts

{
  "user": {
    "username": "MarioG",
    "password": "Stuttgart"
  },
  "customer": "1000000"
}

# Example “Get Contracts” Response (Success)

{
  "ok": true,
  "contracts": [
    {
      "CODE": "1000274",
      "NAME": "MarioG18",
      "ACTIVE_SERVICES": 217
    },
    {
      "CODE": "1900274",
      "NAME": "MarioG19",
      "ACTIVE_SERVICES": 11
    }
  ]
}

# Example “Get Contracts” Response (Error)

{
  "ok": false,
  "errorCode": "209",
  "errorMessage": "'customer' missing."
}