openapi: 3.2.0 info: title: 701x API V1 Medication Purchase API description: 701x API version: v1 tags: - name: MedicationPurchase paths: /MedicationPurchase/Get/{id}: get: tags: - MedicationPurchase parameters: - name: id in: path required: true schema: type: string format: uuid responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: $ref: '#/components/schemas/Medication_Purchase' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get medication purchase get by id x-summary-source: derived operationId: getMedicationPurchaseGetById x-operation-id-source: derived /MedicationPurchase/GetByFilter: get: tags: - MedicationPurchase 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: CompanyId in: query schema: type: string format: uuid - name: FarmId in: query schema: type: - string - 'null' format: uuid - name: SemonTankId in: query schema: type: - string - 'null' format: uuid - 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 - name: SearchString in: query schema: type: - string - 'null' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: type: array items: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: type: array items: $ref: '#/components/schemas/Medication_Purchase' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Get medication purchase get by filter x-summary-source: derived operationId: getMedicationPurchaseGetByFilter x-operation-id-source: derived /MedicationPurchase/Post: post: tags: - MedicationPurchase requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: $ref: '#/components/schemas/Medication_Purchase' application/*+json: schema: $ref: '#/components/schemas/Medication_Purchase' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: $ref: '#/components/schemas/Medication_Purchase' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create medication purchase post x-summary-source: derived operationId: postMedicationPurchasePost x-operation-id-source: derived /MedicationPurchase/Put/{id}: put: tags: - MedicationPurchase parameters: - name: id in: path required: true schema: type: string format: uuid requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: $ref: '#/components/schemas/Medication_Purchase' application/*+json: schema: $ref: '#/components/schemas/Medication_Purchase' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: $ref: '#/components/schemas/Medication_Purchase' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Replace medication purchase put by id x-summary-source: derived operationId: putMedicationPurchasePutById x-operation-id-source: derived /MedicationPurchase/Delete/{id}: delete: tags: - MedicationPurchase parameters: - name: id in: path required: true schema: type: string format: uuid responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: $ref: '#/components/schemas/Medication_Purchase' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Delete medication purchase delete by id x-summary-source: derived operationId: deleteMedicationPurchaseDeleteById x-operation-id-source: derived /MedicationPurchase: post: tags: - MedicationPurchase requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: $ref: '#/components/schemas/Medication_Purchase' application/*+json: schema: $ref: '#/components/schemas/Medication_Purchase' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: $ref: '#/components/schemas/Medication_Purchase' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create medication purchase x-summary-source: derived operationId: postMedicationPurchase x-operation-id-source: derived /MedicationPurchase/{id}: put: tags: - MedicationPurchase parameters: - name: id in: path required: true schema: type: string format: uuid requestBody: content: application/json-patch+json: schema: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: $ref: '#/components/schemas/Medication_Purchase' application/*+json: schema: $ref: '#/components/schemas/Medication_Purchase' responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: $ref: '#/components/schemas/Medication_Purchase' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Replace medication purchase by id x-summary-source: derived operationId: putMedicationPurchaseById x-operation-id-source: derived delete: tags: - MedicationPurchase parameters: - name: id in: path required: true schema: type: string format: uuid responses: '200': description: Success content: text/plain: schema: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: $ref: '#/components/schemas/Medication_Purchase' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Delete medication purchase by id x-summary-source: derived operationId: deleteMedicationPurchaseById x-operation-id-source: derived /MedicationPurchase/MassInsert: post: tags: - MedicationPurchase requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Medication_Purchase' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Medication_Purchase' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: type: array items: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: type: array items: $ref: '#/components/schemas/Medication_Purchase' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create medication purchase mass insert x-summary-source: derived operationId: postMedicationPurchaseMassInsert x-operation-id-source: derived /MedicationPurchase/MassUpdate: post: tags: - MedicationPurchase requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Medication_Purchase' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Medication_Purchase' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: type: array items: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: type: array items: $ref: '#/components/schemas/Medication_Purchase' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create medication purchase mass update x-summary-source: derived operationId: postMedicationPurchaseMassUpdate x-operation-id-source: derived /MedicationPurchase/MassDelete: post: tags: - MedicationPurchase requestBody: content: application/json-patch+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Medication_Purchase' application/*+json: schema: type: - array - 'null' items: $ref: '#/components/schemas/Medication_Purchase' responses: '200': description: Success content: text/plain: schema: type: array items: $ref: '#/components/schemas/Medication_Purchase' application/json: schema: type: array items: $ref: '#/components/schemas/Medication_Purchase' text/json: schema: type: array items: $ref: '#/components/schemas/Medication_Purchase' '401': description: Unauthorized '403': description: Forbidden security: - oauth2: - API701x summary: Create medication purchase mass delete x-summary-source: derived operationId: postMedicationPurchaseMassDelete x-operation-id-source: derived components: schemas: Medication_Purchase: type: object properties: id: type: string format: uuid medicationId: type: - string - 'null' format: uuid companySaleId: type: - string - 'null' format: uuid companyTransferId: type: - string - 'null' format: uuid companyPurchaseId: type: - string - 'null' format: uuid companyItemId: type: - string - 'null' format: uuid companyId: type: - string - 'null' format: uuid farmId: type: - string - 'null' format: uuid companyDescription: type: - string - 'null' farmDescription: type: - string - 'null' purchase_Quantity: type: - integer - 'null' format: int32 purchase_Cost: type: - number - 'null' format: double purchase_Date: type: - string - 'null' format: date-time serialNumber: type: - string - 'null' lotNumber: type: - string - 'null' expirationDate: type: - string - 'null' format: date-time isEmpty: type: - boolean - 'null' remainingQuantity: type: - number - 'null' format: double type: type: - string - 'null' name: type: - string - 'null' description: type: - string - 'null' manufacturer: type: - string - 'null' measurement: type: - string - 'null' medicineRoute: type: - string - 'null' medicineLocation: type: - string - 'null' withdrawalDays: type: - integer - 'null' format: int32 boosterDays: type: - integer - 'null' format: int32 legacyId: type: - string - 'null' 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 lastSyncEpoch: type: - integer - 'null' format: int64 deleteSyncEpoch: type: - integer - 'null' format: int64 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