openapi: 3.0.3 info: title: order version: 1.0.1 description: order service which is responsible for managing order servers: - url: https://nashtechglobal.com paths: /{merchant_id}/orders: post: parameters: - name: merchant_id in: path required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ComNashtechOrderV1ModelsOrderForm' required: true responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/ComNashtechOrderV1ModelsOrder' '401': description: Unauthorized '404': description: Not found '422': description: Unprocessable entity content: application/json: schema: $ref: '#/components/schemas/ComNashtechOrderV1ModelsError' delete: parameters: - name: merchant_id in: path required: true schema: type: string responses: '200': description: Successful response '401': description: Unauthorized '404': description: Not found '422': description: Unprocessable entity content: application/json: schema: $ref: '#/components/schemas/ComNashtechOrderV1ModelsError' /{merchant_id}/orders/{number}: get: parameters: - name: merchant_id in: path required: true schema: type: string - name: number in: path required: true schema: type: string responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/ComNashtechOrderV1ModelsOrder' '401': description: Unauthorized '404': description: Not found put: parameters: - name: merchant_id in: path required: true schema: type: string - name: number in: path required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/ComNashtechOrderV1ModelsOrderForm' required: true responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/ComNashtechOrderV1ModelsOrder' '401': description: Unauthorized '404': description: Not found '422': description: Unprocessable entity content: application/json: schema: $ref: '#/components/schemas/ComNashtechOrderV1ModelsError' components: schemas: ComNashtechOrderV1ModelsOrderForm: type: object required: - total properties: total: type: number ComNashtechOrderV1ModelsOrder: type: object required: - id - number - merchant_id - submitted_at - total properties: id: type: string number: type: string merchant_id: type: string submitted_at: type: string format: date-time total: type: number ComNashtechOrderV1ModelsError: type: object required: - code - message properties: code: type: string message: type: array items: type: string