---
title: /bizops/v2/customer-sales
slug: amberflo-api/bizopsv2customer-sales
docTags: 
createdAt: 2024-11-07T15:10:16.968Z
---

{
  "id": "QQFHfIhYCY5zh5rpvHzaG",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://app.amberflo.io/bizops/v2/customer-sales",
    "servers": [
      {
        "url": "https://app.amberflo.io/bizops/v2/customer-sales"
      }
    ],
    "name": "",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKey",
          "name": "X-API-KEY",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "com.amberflo.bizops.DetailedGameStateV2.out",
            "schema": [
              {
                "name": "customerName",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "customerEmail",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "lifecycleStage",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "gameCustomerId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "lastUpdatedTimeInSeconds",
                "kind": "optional",
                "type": "integer<int64>",
                "example": 0
              },
              {
                "name": "dealSize",
                "kind": "optional",
                "type": "number",
                "example": ""
              },
              {
                "name": "signupTimeInSeconds",
                "kind": "optional",
                "type": "integer<int64>",
                "example": 0
              },
              {
                "name": "salesType",
                "kind": "optional",
                "type": "string",
                "description": "",
                "modelRef": "#/components/schemas/com.amberflo.bizops.core.state.SalesType.out",
                "customType": "com.amberflo.bizops.core.state.SalesType.out",
                "schema": []
              },
              {
                "name": "latestActivityTimeInSeconds",
                "kind": "optional",
                "type": "integer<int64>",
                "example": 0
              },
              {
                "name": "engagementScore",
                "kind": "optional",
                "type": "number",
                "example": ""
              },
              {
                "name": "accountId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "customerId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "gameName",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "gameDuration",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/common.TimeRange.out",
                "customType": "common.TimeRange.out",
                "schema": [
                  {
                    "name": "startTimeInSeconds",
                    "kind": "required",
                    "type": "integer<int64>",
                    "description": "Start time, in [Unix time](https://en.wikipedia.org/wiki/Unix_time) (seconds).",
                    "example": 0
                  },
                  {
                    "name": "endTimeInSeconds",
                    "kind": "optional",
                    "type": "integer<int64>",
                    "description": "End time, in [Unix time](https://en.wikipedia.org/wiki/Unix_time) (seconds). Defaults to \"now\".",
                    "example": 0
                  }
                ]
              },
              {
                "name": "accountManagerId",
                "kind": "optional",
                "type": "string",
                "example": ""
              },
              {
                "name": "scoreByLevel",
                "kind": "optional",
                "type": "map",
                "example": "",
                "customType": "map<string, com.amberflo.bizops.DetailedGameStateV2.DetailedLevel.out>",
                "schema": []
              },
              {
                "name": "levelNameToActivities",
                "kind": "optional",
                "type": "map",
                "example": "",
                "customType": "map<string, object>",
                "schema": []
              },
              {
                "name": "levelNameToScores",
                "kind": "optional",
                "type": "map",
                "example": "",
                "customType": "map<string, com.amberflo.bizops.core.score.state.BaseScore.out[]>",
                "schema": []
              }
            ],
            "modelRef": "#/components/schemas/com.amberflo.bizops.DetailedGameStateV2.out",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "F6m1aCGgHaQxQcKUYJ6Eu",
          "language": "curl",
          "label": "cURL",
          "code": "curl --location 'https://app.amberflo.io/bizops/v2/customer-sales' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json'"
        },
        {
          "id": "FqszhvFI6MY6K6qQFoZax",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://app.amberflo.io/bizops/v2/customer-sales\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "MhDo2RW4vq8QEp5dXCSh3",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/bizops/v2/customer-sales\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "NovQKNAR4FIYCxO5nHcsk",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/bizops/v2/customer-sales\"\n\npayload = {}\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "F6m1aCGgHaQxQcKUYJ6Eu"
    },
    "results": {
      "languages": [
        {
          "id": "KPGr7JzOAlMfK9h98hbky",
          "language": "200",
          "code": "// Successful request\n{\n  \"customerName\": \"\",\n  \"customerEmail\": \"\",\n  \"lifecycleStage\": \"\",\n  \"gameCustomerId\": \"\",\n  \"lastUpdatedTimeInSeconds\": \"\",\n  \"dealSize\": 0,\n  \"signupTimeInSeconds\": \"\",\n  \"salesType\": \"\",\n  \"latestActivityTimeInSeconds\": \"\",\n  \"engagementScore\": 0,\n  \"accountId\": \"\",\n  \"customerId\": \"\",\n  \"gameName\": \"\",\n  \"gameDuration\": {\n    \"startTimeInSeconds\": \"\",\n    \"endTimeInSeconds\": \"\"\n  },\n  \"accountManagerId\": \"\",\n  \"scoreByLevel\": \"\",\n  \"levelNameToActivities\": \"\",\n  \"levelNameToScores\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "KPGr7JzOAlMfK9h98hbky"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}