{
  "openapi": "3.0.4",
  "info": {
    "title": "CSS.ExternalAPI",
    "version": "1.0"
  },
  "paths": {
    "/V1/GetAssetsList": {
      "post": {
        "tags": [
          "CSSExternalAPI"
        ],
        "operationId": "GetAssetsList",
        "parameters": [
          {
            "name": "CountryCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mobileNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CSSAPI.OutGetAssetsList"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CSSAPI.OutGetAssetsList"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CSSAPI.OutGetAssetsList"
                }
              }
            }
          }
        }
      }
    },
    "/V1/GetRepairStatus": {
      "post": {
        "tags": [
          "CSSExternalAPI"
        ],
        "parameters": [
          {
            "name": "CountryCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CaseID",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/V1/SendContactsData": {
      "post": {
        "tags": [
          "CSSExternalAPI"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CSSExternalAPIService.Models.ContactData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CSSExternalAPIService.Models.ContactData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CSSExternalAPIService.Models.ContactData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/V1/ReceiveContactData": {
      "post": {
        "tags": [
          "CSSExternalAPI"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CSSExternalAPIService.Models.ContactData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CSSExternalAPIService.Models.ContactData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CSSExternalAPIService.Models.ContactData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/V1/RegisterAsset": {
      "post": {
        "tags": [
          "CSSExternalAPI"
        ],
        "operationId": "RegisterAsset",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CSSAPI.AssetData"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CSSAPI.AssetData"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CSSAPI.AssetData"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CSSAPI.OutGetRegisterAsset"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CSSAPI.OutGetRegisterAsset"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CSSAPI.OutGetRegisterAsset"
                }
              }
            }
          }
        }
      }
    },
    "/V1/SendWhatAppSMS": {
      "post": {
        "tags": [
          "CSSExternalAPI"
        ],
        "operationId": "SendWhatAppSMS",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.SendWhatAppSMSResult"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.SendWhatAppSMSResult"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.SendWhatAppSMSResult"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/EDI/SetNewCase.asmx": {
      "post": {
        "tags": [
          "EDI"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/EDI/GetCaseDetails.asmx": {
      "post": {
        "tags": [
          "EDI"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/EDI/GetCaseAttachment.asmx": {
      "post": {
        "tags": [
          "EDI"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/EDI/UpdateCaseInfo.asmx": {
      "post": {
        "tags": [
          "EDI"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/OSC/ProductWarrantyDetails.asmx": {
      "post": {
        "tags": [
          "OSC"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/OSC/GetCustomerInfo.asmx": {
      "post": {
        "tags": [
          "OSC"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/OSC/GetCaseList.asmx": {
      "post": {
        "tags": [
          "OSC"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/OSC/GetCaseDetails.asmx": {
      "post": {
        "tags": [
          "OSC"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/OSC/UpdateCaseShippingAddress.asmx": {
      "post": {
        "tags": [
          "OSC"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/OSC/SetNewCase.asmx": {
      "post": {
        "tags": [
          "OSC"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/OSC/UpdateCustomerInfo.asmx": {
      "post": {
        "tags": [
          "OSC"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/OSC/UpdateCaseInfo.asmx": {
      "post": {
        "tags": [
          "OSC"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/OSC/SerialBasedProductInfo": {
      "post": {
        "tags": [
          "OSC"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.SerialNoInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.SerialNoInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.SerialNoInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/Ticket/CreateTicket": {
      "post": {
        "tags": [
          "Ticket"
        ],
        "operationId": "CreateTicket",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.TicketInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.TicketInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.TicketInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.Result"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.Result"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.Result"
                }
              }
            }
          }
        }
      }
    },
    "/Ticket/GetCCRDetails": {
      "post": {
        "tags": [
          "Ticket"
        ],
        "operationId": "GetCCRDetails",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CCRInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CCRInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CCRInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CCRResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CCRResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CCRResponse"
                }
              }
            }
          }
        }
      }
    },
    "/Ticket/SetSurveyRatings": {
      "post": {
        "tags": [
          "Ticket"
        ],
        "operationId": "SetSurveyRatings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.SurveyRatingsInput"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.SurveyRatingsInput"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CSS.ExternalAPI.Models.SurveyRatingsInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.SurveyRatingsResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.SurveyRatingsResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CSS.ExternalAPI.Models.SurveyRatingsResult"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CSS.ExternalAPI.Models.CCRInput": {
        "required": [
          "CSSDB",
          "Mobilenumber"
        ],
        "type": "object",
        "properties": {
          "CSSDB": {
            "type": "string",
            "nullable": true
          },
          "Mobilenumber": {
            "type": "string",
            "nullable": true
          },
          "CaseID": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CSS.ExternalAPI.Models.CCRResponse": {
        "type": "object",
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "ErrorMessage": {
            "type": "string",
            "nullable": true
          },
          "WarningMessage": {
            "type": "string",
            "nullable": true
          },
          "base64Binary": {
            "type": "string",
            "nullable": true
          },
          "Filename": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CSS.ExternalAPI.Models.CSSAPI.AssetData": {
        "type": "object",
        "properties": {
          "CSSDB": {
            "type": "string",
            "nullable": true
          },
          "MobileNumber": {
            "type": "string",
            "nullable": true
          },
          "SNorSNID": {
            "type": "string",
            "nullable": true
          },
          "CustomerName": {
            "type": "string",
            "nullable": true
          },
          "Address": {
            "type": "string",
            "nullable": true
          },
          "AddressCont": {
            "type": "string",
            "nullable": true
          },
          "PostalCode": {
            "type": "string",
            "nullable": true
          },
          "City": {
            "type": "string",
            "nullable": true
          },
          "State": {
            "type": "string",
            "nullable": true
          },
          "IDCountry": {
            "type": "string",
            "nullable": true
          },
          "Phone": {
            "type": "string",
            "nullable": true
          },
          "EMail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CSS.ExternalAPI.Models.CSSAPI.AssetDetails": {
        "type": "object",
        "properties": {
          "IDSite": {
            "type": "string",
            "nullable": true
          },
          "CompanyName": {
            "type": "string",
            "nullable": true
          },
          "Address": {
            "type": "string",
            "nullable": true
          },
          "PostalCode": {
            "type": "string",
            "nullable": true
          },
          "City": {
            "type": "string",
            "nullable": true
          },
          "Province": {
            "type": "string",
            "nullable": true
          },
          "Phone": {
            "type": "string",
            "nullable": true
          },
          "MobilePhone": {
            "type": "string",
            "nullable": true
          },
          "EMail": {
            "type": "string",
            "nullable": true
          },
          "SerialNumber": {
            "type": "string",
            "nullable": true
          },
          "SerialNumber2": {
            "type": "string",
            "nullable": true
          },
          "ProductName": {
            "type": "string",
            "nullable": true
          },
          "ProductDescription": {
            "type": "string",
            "nullable": true
          },
          "IDWarranty": {
            "type": "string",
            "nullable": true
          },
          "WarrantyDescription": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CSS.ExternalAPI.Models.CSSAPI.OutGetAssetsList": {
        "type": "object",
        "properties": {
          "GetAssetsList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CSS.ExternalAPI.Models.CSSAPI.AssetDetails"
            },
            "nullable": true
          },
          "GetAssetsListResult": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CSS.ExternalAPI.Models.CSSAPI.OutGetRegisterAsset": {
        "type": "object",
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "ErrorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CSS.ExternalAPI.Models.Result": {
        "type": "object",
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "ErrorMessage": {
            "type": "string",
            "nullable": true
          },
          "WarningMessage": {
            "type": "string",
            "nullable": true
          },
          "CaseID": {
            "type": "string",
            "nullable": true
          },
          "CaseStatusID": {
            "type": "string",
            "nullable": true
          },
          "CaseStatus": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CSS.ExternalAPI.Models.SendWhatAppSMSResult": {
        "type": "object",
        "properties": {
          "apiToken": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "messageText": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CSS.ExternalAPI.Models.SerialNoInput": {
        "type": "object",
        "properties": {
          "SerialNo": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CSS.ExternalAPI.Models.SurveyRatingsInput": {
        "required": [
          "CaseID",
          "CSSDB",
          "ServiceRating"
        ],
        "type": "object",
        "properties": {
          "CSSDB": {
            "type": "string",
            "nullable": true
          },
          "CaseID": {
            "type": "string",
            "nullable": true
          },
          "ServiceRating": {
            "type": "integer",
            "format": "int32"
          },
          "Feedback": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CSS.ExternalAPI.Models.SurveyRatingsResult": {
        "type": "object",
        "properties": {
          "Success": {
            "type": "boolean"
          },
          "ErrorMessage": {
            "type": "string",
            "nullable": true
          },
          "WarningMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CSS.ExternalAPI.Models.TicketInput": {
        "required": [
          "CSSDB",
          "CustomerCode",
          "Problem",
          "Referencenumber",
          "SNorSNID"
        ],
        "type": "object",
        "properties": {
          "CSSDB": {
            "type": "string",
            "nullable": true
          },
          "SNorSNID": {
            "type": "string",
            "nullable": true
          },
          "CustomerCode": {
            "type": "string",
            "nullable": true
          },
          "Referencenumber": {
            "type": "string",
            "nullable": true
          },
          "Problem": {
            "type": "string",
            "nullable": true
          },
          "CustomerName": {
            "type": "string",
            "nullable": true
          },
          "Address": {
            "type": "string",
            "nullable": true
          },
          "AddressCont": {
            "type": "string",
            "nullable": true
          },
          "PostalCode": {
            "type": "string",
            "nullable": true
          },
          "City": {
            "type": "string",
            "nullable": true
          },
          "State": {
            "type": "string",
            "nullable": true
          },
          "IDCountry": {
            "type": "string",
            "nullable": true
          },
          "MobilePhone": {
            "type": "string",
            "nullable": true
          },
          "Phone": {
            "type": "string",
            "nullable": true
          },
          "EMail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CSSExternalAPIService.Models.ContactData": {
        "type": "object",
        "properties": {
          "IDSite": {
            "type": "string",
            "nullable": true
          },
          "FirstName": {
            "type": "string",
            "nullable": true
          },
          "LastName": {
            "type": "string",
            "nullable": true
          },
          "Phone": {
            "type": "string",
            "nullable": true
          },
          "Email": {
            "type": "string",
            "nullable": true
          },
          "Language": {
            "type": "string",
            "nullable": true
          },
          "ProfilePic": {
            "type": "string",
            "nullable": true
          },
          "CountryCode": {
            "type": "string",
            "nullable": true
          },
          "CustomFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CSSExternalAPIService.Models.CustomField"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CSSExternalAPIService.Models.CustomField": {
        "type": "object",
        "properties": {
          "Name": {
            "type": "string",
            "nullable": true
          },
          "Value": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "JWT Token",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    { }
  ],
  "tags": [
    {
      "name": "CSSExternalAPI"
    },
    {
      "name": "EDI"
    },
    {
      "name": "OSC"
    },
    {
      "name": "Ticket"
    }
  ]
}