2.0info: 2.16.1 Gerenciamento de Integrações description: Serviço responsável pelo gerenciamento das integrações do CRM. x-senior-domain: CRM x-senior-domain-path: crm x-senior-service-path: integration_management contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: api.senior.com.br /crm/integration_managementsecurityDefinitions: bearerAuth: type: apiKey in: header name: Authorization – application/json – application/jsonparameters: clientId: name: client_id type: string in: header required: true description: Identificação da aplicação cadastrada no portal do desenvolvedor (api.xplatform.com.br)paths: /executeSenior: post: description: Informa que uma integração do ERP Senior foi executada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/integrationDataRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /startSenior: post: description: Informa que uma integração do ERP Senior foi iniciada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /stopSenior: post: description: Informa que uma integração do ERP Senior foi parada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /executeSeniorX: post: description: Informa que uma integração do ERP SeniorX foi executada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/integrationDataRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /startSeniorX: post: description: Informa que uma integração do ERP SeniorX foi iniciada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /stopSeniorX: post: description: Informa que uma integração do ERP SeniorX foi parada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /executeSeniorXT: post: description: Informa que uma integração do ERP SeniorXT foi executada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/integrationDataRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /startSeniorXT: post: description: Informa que uma integração do ERP SeniorXT foi iniciada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /stopSeniorXT: post: description: Informa que uma integração do ERP SeniorXT foi parada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /executeNovasoft: post: description: Informa que uma integração do ERP Novasoft foi executada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/integrationDataRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /startNovasoft: post: description: Informa que uma integração do ERP Novasoft foi iniciada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /stopNovasoft: post: description: Informa que uma integração do ERP Novasoft foi parada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /executeMega: post: description: Informa que uma integração do Mega foi executada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: #/definitions/integrationDataRecord responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /startMega: post: description: Informa que uma integração do Mega foi iniciada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object responses: 200: description: Ok default: description: Error response schema: #/definitions/genericError /stopMega: post: description: Informa que uma integração do Mega foi parada. x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object responses: 200: description: Ok default: description: Error response schema: #/definitions/genericErrordefinitions: integrationNameEnum: type: string enum: – ACCOUNT – CONTACT – PRICE_TABLE – MEASUREMENT_UNIT – OPPORTUNITY_TYPE – PAYMENT_TERMS – OPPORTUNITY – PRODUCT – PENDING_TABLE – COMPANY – BRANCH – COMPANY_BRANCH – CARRIER – USER – USER_GROUP – COUNTRY – STATE – CITY – SERVICE_CATEGORY – PRODUCT_CATEGORY – INITIAL_CHARGE – ACTIVITY_BRANCH – PAYMENT_TYPE – SERVICE pathIntegrationEnum: type: string enum: – CRM_TO_ERP – ERP_TO_CRM integrationDataRecord: type: object required: – integrationName – way properties: integrationName: #/definitions/integrationNameEnum way: #/definitions/pathIntegrationEnum identifier: type: string description: Identificador do Registro genericError: properties: message: type: string description: Messaging describing the error. reason: type: string description: A symbolic code identifying the category of the reason of the error. enum: – BAD_REQUEST – UNAUTHORIZED – PAYMENT_REQUIRED – FORBIDDEN – OBJECT_NOT_FOUND – REQUEST_TIMEOUT – GONE – UNPROCESSABLE – INTERNAL_ERROR – NOT_IMPLEMENTED – SERVICE_UNAVAILABLE – INSUFFICIENT_STORAGE