openapi: 3.2.0 info: title: 701x API V1 Promotion API description: 701x API version: v1 tags: - name: Promotion paths: /Promotion/PromotionDataByFilter: get: tags: - Promotion parameters: - name: top in: query schema: type: - integer - 'null' format: int32 - name: orderBy in: query schema: type: - string - 'null' - name: offset in: query schema: type: - integer - 'null' format: int32 - name: fetch in: query schema: type: - integer - 'null' format: int32 - name: LessThenCreatedByDate in: query schema: type: - string - 'null' format: date-time - name: GreaterThenCreatedByDate in: query schema: type: - string - 'null' format: date-time - name: LessThenUpdatedByDate in: query schema: type: - string - 'null' format: date-time - name: GreaterThenUpdatedByDate in: query schema: type: - string - 'null' format: date-time - name: LessThenDeletedByDate in: query schema: type: - string - 'null' format: date-time - name: GreaterThenDeletedByDate in: query schema: type: - string - 'null' format: date-time responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Promotion_Master' application/json: schema: type: array items: $ref: '#/components/schemas/Promotion_Master' text/json: schema: type: array items: $ref: '#/components/schemas/Promotion_Master' summary: Get promotion promotion data by filter x-summary-source: derived operationId: getPromotionPromotionDataByFilter x-operation-id-source: derived /Promotion/{id}: get: tags: - Promotion parameters: - name: id in: path required: true schema: type: - string - 'null' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Promotion_Master' application/json: schema: $ref: '#/components/schemas/Promotion_Master' text/json: schema: $ref: '#/components/schemas/Promotion_Master' summary: Get promotion by id x-summary-source: derived operationId: getPromotionById x-operation-id-source: derived put: tags: - Promotion parameters: - name: id in: path required: true schema: type: - string - 'null' requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Promotion_Master' application/json: schema: $ref: '#/components/schemas/Promotion_Master' text/json: schema: $ref: '#/components/schemas/Promotion_Master' application/*+json: schema: $ref: '#/components/schemas/Promotion_Master' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Promotion_Master' application/json: schema: $ref: '#/components/schemas/Promotion_Master' text/json: schema: $ref: '#/components/schemas/Promotion_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Replace promotion by id x-summary-source: derived operationId: putPromotionById x-operation-id-source: derived delete: tags: - Promotion parameters: - name: id in: path required: true schema: type: - string - 'null' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Promotion_Master' application/json: schema: $ref: '#/components/schemas/Promotion_Master' text/json: schema: $ref: '#/components/schemas/Promotion_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Delete promotion by id x-summary-source: derived operationId: deletePromotionById x-operation-id-source: derived /Promotion: post: tags: - Promotion requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Promotion_Master' application/json: schema: $ref: '#/components/schemas/Promotion_Master' text/json: schema: $ref: '#/components/schemas/Promotion_Master' application/*+json: schema: $ref: '#/components/schemas/Promotion_Master' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Promotion_Master' application/json: schema: $ref: '#/components/schemas/Promotion_Master' text/json: schema: $ref: '#/components/schemas/Promotion_Master' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create promotion x-summary-source: derived operationId: postPromotion x-operation-id-source: derived components: schemas: Promotion_Master: type: object properties: id: type: - string - 'null' description: type: - string - 'null' allowedRedemptions: type: - integer - 'null' format: int32 createdByDate: type: - string - 'null' format: date-time createdByUserId: type: - string - 'null' format: uuid createdByName: type: - string - 'null' lastUpdatedByDate: type: - string - 'null' format: date-time lastUpdatedByUserId: type: - string - 'null' format: uuid lastUpdatedByName: type: - string - 'null' inActiveDate: type: - string - 'null' format: date-time isNew: type: boolean isUpdate: type: boolean isDelete: type: boolean error: type: - string - 'null' additionalProperties: false securitySchemes: oauth2: type: oauth2 flows: authorizationCode: authorizationUrl: https://login.701x.com/connect/authorize tokenUrl: https://login.701x.com/connect/token scopes: api1: Demo API - full access