{
  "openapi": "3.0.1",
  "info": {
    "title": "Cdiscount TrackingServer",
    "version": "v1"
  },
  "paths": {
    "/tracking-events": {
      "post": {
        "tags": [
          "ServerToServerTracking"
        ],
        "summary": "Tracks the specified tracking message.",
        "description": "Sample request:\n            \n    POST /\n    {\n       \"siteId\": 100,\n       \"hit\": \"PAGE\",\n       \"device\": \"PC\",\n       \"type\": \"PAGE_TYPE\",\n       \"rH\": 222,\n       \"rW\": 1536,\n       \"url\": \"https://www.recette-cdiscount.com/\",\n       \"ref\": \"https://www.google.com/\"\n    }",
        "requestBody": {
          "description": "tracking message as string",
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/plain": {
              "schema": {
                "type": "string"
              }
            },
            "application/octet-stream": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Request processed successfully."
          },
          "400": {
            "description": "Bad Request"
          },
          "403": {
            "description": "Request cannot be processed"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/": {
      "post": {
        "tags": [
          "TrackingServer"
        ],
        "summary": "Tracks the specified tracking message.",
        "description": "Sample request:\n            \n    POST /\n    {\n       \"siteId\": 100,\n       \"hit\": \"PAGE\",\n       \"device\": \"PC\",\n       \"type\": \"PA\",\n       \"rH\": 222,\n       \"rW\": 1536,\n       \"url\": \"https://www.recette-cdiscount.com/\",\n       \"ref\": \"https://www.google.com/\",\n       \"_partnerId\": \"PartnerId\"\n    }",
        "requestBody": {
          "description": "tracking message as string",
          "content": {
            "text/plain": {
              "schema": {
                "type": "string"
              }
            },
            "application/json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Request processed successfully."
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Request cannot be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/events": {
      "post": {
        "tags": [
          "TrackingServer"
        ],
        "summary": "Tracks the specified tracking message.",
        "description": "Sample request:\n            \n    POST /\n    {\n       \"siteId\": 100,\n       \"hit\": \"PAGE\",\n       \"device\": \"PC\",\n       \"type\": \"PA\",\n       \"rH\": 222,\n       \"rW\": 1536,\n       \"url\": \"https://www.recette-cdiscount.com/\",\n       \"ref\": \"https://www.google.com/\",\n       \"_partnerId\": \"PartnerId\"\n    }",
        "requestBody": {
          "description": "tracking message as string",
          "content": {
            "text/plain": {
              "schema": {
                "type": "string"
              }
            },
            "application/json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Request processed successfully."
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Request cannot be processed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      }
    }
  }
}