openapi: 3.2.0 info: title: FISĀ® Accounting Data as a Serviceā„¢ Product API description: What's changed in our API version: v2 contact: {} servers: - url: https://api.railz.ai description: Main (production) API server tags: - name: Product paths: /commerce/products: get: description: Get the latest products for a business available in their merchant store. operationId: product parameters: - name: businessName required: true in: query description: Unique business name identifier. schema: example: Railz type: string - name: serviceName required: true in: query description: Name of commerce service. schema: example: shopify type: string enum: - shopify - square - name: offset required: false in: query description: The offset is the position in the dataset of a particular record. schema: format: integer type: number - name: limit required: false in: query description: 'This is the size of the results set you would like (default: 100).' schema: format: integer example: 100 type: number - name: orderBy required: false in: query schema: type: string - name: id required: false in: query schema: example: '12345' type: string - name: name required: false in: query schema: example: Ipod type: string - name: status required: false in: query schema: example: active type: string enum: - active - archived - draft - name: startDate required: false in: query schema: example: '2014-04-25' type: string - name: endDate required: false in: query schema: example: '2014-04-25' type: string responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/GetProductResponseDto' '202': description: Data in pending state content: application/json: schema: $ref: '#/components/schemas/GetProductResponseDto' '204': description: No data available '400': description: Bad Request Error - Thrown if fields sent via query does not follow specifications content: application/json: schema: $ref: '#/components/schemas/Error400ResponseDto' '401': description: Unauthorized - Not logged in or log in expired content: application/json: schema: $ref: '#/components/schemas/Error401ResponseDto' '403': description: Forbidden - Not enough permission content: application/json: schema: $ref: '#/components/schemas/Error403ResponseDto' '500': description: Server Error content: application/json: schema: $ref: '#/components/schemas/Error500ResponseDto' security: - bearer: [] summary: Product tags: - Product x-summary-source: derived components: schemas: Error500ResponseDto: type: object properties: error: readOnly: true allOf: - $ref: '#/components/schemas/Error500Dto' payload: type: object readOnly: true required: - error - payload QuantityPerLocation: type: object properties: quantity: type: number format: float locationRef: $ref: '#/components/schemas/ProductLocationRef' Error403ResponseDto: type: object properties: error: readOnly: true allOf: - $ref: '#/components/schemas/Error403Dto' payload: type: object readOnly: true example: {} required: - error - payload Error401Dto: type: object properties: statusCode: type: number readOnly: true example: 401 message: readOnly: true example: - Unauthorized type: array items: type: string error: type: string readOnly: true example: Unauthorized required: - statusCode - message - error Error500Dto: type: object properties: error: type: string readOnly: true example: Internal Server Error message: readOnly: true example: - INTERNAL_ERROR type: array items: type: string statusCode: type: number readOnly: true example: 500 required: - error - message - statusCode ProductLocationRef: type: object properties: id: type: string example: '12323' name: type: string GetProductData: type: object properties: id: type: string example: '632910392' type: type: string example: Speakers name: type: string example: Amazon Echo description: type: string example: Sample product description createdDate: format: date-time type: string example: '2021-03-09T10:18:29.985Z' sourceModifiedDate: format: date-time type: string example: '2021-03-09T10:18:29.985Z' status: type: string enum: - active - archived - draft example: active isGiftCard: type: boolean example: true productVariants: type: array items: $ref: '#/components/schemas/ProductVariants' required: - id - name - createdDate - sourceModifiedDate - status Error400Dto: type: object properties: statusCode: type: number readOnly: true example: 400 message: readOnly: true example: - businessName cannot be null type: array items: type: string error: type: string readOnly: true example: Bad Request required: - statusCode - message - error ProductVariants: type: object properties: id: type: string example: '808950810' name: type: string example: Pink isTaxEnabled: type: boolean example: true sku: type: string example: IPOD2008PINK barcode: type: string example: 1234_pink weight: $ref: '#/components/schemas/Weight' unitPrice: type: number example: 199 format: float inventory: $ref: '#/components/schemas/Inventory' isShippingRequired: type: boolean example: true createdDate: format: date-time type: string example: '2022-03-11T11:29:03-05:00' required: - id - name - unitPrice - createdDate BasicStartEndDateReportMetaData: type: object properties: reportId: readOnly: true example: - 5fad8a342a88364234392fb5 type: array items: type: string serviceName: type: string readOnly: true example: xero enum: - freshbooks - quickbooks - quickbooksDesktop - xero - oracleNetsuite - sageBusinessCloud - sageIntacct - dynamicsBusinessCentral - dynamics365Finance - wave - myob - zohoBooks - byod businessName: type: string readOnly: true example: Railz createdAt: type: string readOnly: true example: '2020-11-25T01:02:03Z' format: date-time updatedAt: type: string example: '2020-11-30T01:02:03Z' format: date-time readOnly: false startDate: type: string readOnly: true example: '2020-11-25T01:02:03Z' format: date-time endDate: type: string readOnly: true example: '2020-11-30T01:02:03Z' format: date-time required: - reportId - serviceName - businessName - createdAt - updatedAt - startDate - endDate Error400ResponseDto: type: object properties: error: readOnly: true allOf: - $ref: '#/components/schemas/Error400Dto' payload: type: object readOnly: true required: - error - payload Error401ResponseDto: type: object properties: error: readOnly: true allOf: - $ref: '#/components/schemas/Error401Dto' payload: type: object readOnly: true example: {} required: - error - payload Error403Dto: type: object properties: statusCode: type: number readOnly: true example: 403 message: readOnly: true example: - Forbidden resource type: array items: type: string error: type: string readOnly: true example: Forbidden required: - statusCode - message - error PaginationMetaData: type: object properties: offset: type: number readOnly: true limit: type: number readOnly: true count: type: number readOnly: true required: - offset - limit - count Weight: type: object properties: value: type: number example: 1.25 format: float unitOfMeasure: type: string enum: - g - kg - lb - oz example: lb Inventory: type: object properties: totalQuantity: type: number example: 10 format: float quantityPerLocation: type: array items: $ref: '#/components/schemas/QuantityPerLocation' GetProductResponseDto: type: object properties: pagination: $ref: '#/components/schemas/PaginationMetaData' data: type: array items: $ref: '#/components/schemas/GetProductData' count: type: number readOnly: true example: 1 format: integer meta: $ref: '#/components/schemas/BasicStartEndDateReportMetaData' required: - pagination - data - count - meta securitySchemes: bearer: scheme: bearer bearerFormat: JWT type: http