openapi: 3.2.0 info: title: FIS® Accounting Data as a Service™ Inventory Controller V2… description: What's changed in our API version: v2 contact: {} servers: - url: https://api.railz.ai description: Main (production) API server tags: - name: InventoryControllerV2 paths: /v2/accounting/inventory: get: description: '**Supported for:** `freshbooks` `quickbooks` `quickbooksDesktop` `xero` `oracleNetsuite` `sageBusinessCloud` `sageIntacct` `dynamicsBusinessCentral` `dynamics365Finance` `wave` `myob` `zohoBooks`' operationId: inventory parameters: - name: connectionUuid required: true in: query description: Unique connection identifier. schema: example: CON-396d5daa-26b2-4979-89b6-cafb2c298155 type: string - 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 responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/GetInventoryResponseV2Dto' '202': description: Data in pending state content: application/json: schema: $ref: '#/components/schemas/GetInventoryResponseV2Dto' '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/Error400ResponseDtoV2' '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: List Inventory Items tags: - InventoryControllerV2 post: description: '**Supported for:** `freshbooks` `quickbooks` `xero` `oracleNetsuite` `sageIntacct` `dynamicsBusinessCentral` `wave` `myob` `zohoBooks`' operationId: push-inventory parameters: [] requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PushInventoryV2Dto' responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/PushInventoryV2ResponseDto' '400': description: Bad Request Error - Thrown if fields sent via query does not follow specifications content: application/json: schema: $ref: '#/components/schemas/Error400ResponseDtoV2' '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: Create an Inventory Item tags: - InventoryControllerV2 /v2/accounting/inventory/{id}: put: description: '**Supported for:** `freshbooks` `quickbooks` `xero` `oracleNetsuite` `sageIntacct` `dynamicsBusinessCentral` `wave` `myob` `zohoBooks`' operationId: put-inventory parameters: - name: id required: true in: path schema: type: string requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateInventoryV2Dto' responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/UpdateInventoryV2ResponseDto' '400': description: Bad Request Error - Thrown if fields sent via query does not follow specifications content: application/json: schema: $ref: '#/components/schemas/Error400ResponseDtoV2' '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: Update an Inventory Item tags: - InventoryControllerV2 components: schemas: BillOrInvoiceItem: type: object properties: description: type: string example: Item description unitPrice: type: number example: 100.5 format: float accountRef: $ref: '#/components/schemas/AccountRef' taxRateRef: $ref: '#/components/schemas/TaxRateRef' 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 PushInventoryV2ResponseDto: type: object properties: connectionUuid: type: string readOnly: true example: CON-396d5daa-26b2-4979-89b6-cafb2c298155 businessName: type: string readOnly: true example: Railz serviceName: type: string readOnly: true example: xero enum: - freshbooks - quickbooks - quickbooksDesktop - xero - oracleNetsuite - sageBusinessCloud - sageIntacct - dynamicsBusinessCentral - dynamics365Finance - wave - myob - zohoBooks - byod pushCommunicationId: type: string readOnly: true example: 60473b57f0cdd1683ca71f60 requestedOn: type: string readOnly: true example: '2021-03-09T08:15:22.035Z' format: date-time status: type: string readOnly: true example: pending enum: - success - failed - pending data: readOnly: true allOf: - $ref: '#/components/schemas/PushInventoryV2' required: - connectionUuid - businessName - serviceName - pushCommunicationId - requestedOn - status - data InventoryBillInvoiceLineItemsV2: type: object properties: description: type: string maxLength: 4000 example: Item description. unitPrice: type: number format: float maximum: 999999999999 example: 2.5 accountRef: $ref: '#/components/schemas/AccountRefDto' taxRateRef: $ref: '#/components/schemas/TaxRateRefDto' UpdateInventoryV2ResponseDto: type: object properties: connectionUuid: type: string readOnly: true example: CON-396d5daa-26b2-4979-89b6-cafb2c298155 businessName: type: string readOnly: true example: Railz serviceName: type: string readOnly: true example: xero enum: - freshbooks - quickbooks - quickbooksDesktop - xero - oracleNetsuite - sageBusinessCloud - sageIntacct - dynamicsBusinessCentral - dynamics365Finance - wave - myob - zohoBooks - byod pushCommunicationId: type: string readOnly: true example: 60473b57f0cdd1683ca71f60 requestedOn: type: string readOnly: true example: '2021-03-09T08:15:22.035Z' format: date-time status: type: string readOnly: true example: pending enum: - success - failed - pending data: readOnly: true allOf: - $ref: '#/components/schemas/UpdateInventoryV2' required: - connectionUuid - businessName - serviceName - pushCommunicationId - requestedOn - status - data Error400ResponseDtoV2: type: object properties: error: readOnly: true allOf: - $ref: '#/components/schemas/Error400DtoV2' payload: type: object readOnly: true required: - error - payload InventoryLocationRef: type: object properties: id: type: string example: '9' name: type: string example: Boston required: - id TaxRateRefDto: type: object properties: id: type: string example: '12' required: - id InventorySubsidiaryRef: type: object properties: id: type: string example: '2' name: type: string example: Company Ltd PushInventoryV2: type: object properties: code: type: string maxLength: 30 example: GOL-W type: type: string enum: - inventory - nonInventory - service example: inventory name: type: string example: White golf balls. maxLength: 50 quantityOnHand: type: array items: $ref: '#/components/schemas/QuantityOnHandV2Dto' billItem: $ref: '#/components/schemas/InventoryBillInvoiceLineItemsV2' invoiceItem: $ref: '#/components/schemas/InventoryBillInvoiceLineItemsV2' isBillItem: type: boolean example: true isInvoiceItem: type: boolean example: true subsidiaryRefs: type: array items: $ref: '#/components/schemas/SubsidiaryRefDto' passThrough: type: object additionalProperties: true example: CustomField: - DefinitionId: '1' StringValue: my custom value Name: Field One required: - name QuantityOnHandV2Dto: type: object properties: quantity: type: number example: 2.5 format: float maximum: 999999999999 locationRef: $ref: '#/components/schemas/InventoryRefDto' accountRef: $ref: '#/components/schemas/AccountRefDto' Error400DtoV2: type: object properties: statusCode: type: number readOnly: true example: 400 message: readOnly: true example: - connectionUuid should not be empty type: array items: type: string error: type: string readOnly: true example: Bad Request required: - statusCode - message - error Error401ResponseDto: type: object properties: error: readOnly: true allOf: - $ref: '#/components/schemas/Error401Dto' payload: type: object readOnly: true example: {} required: - error - payload UpdateInventoryV2: type: object properties: code: type: string maxLength: 30 example: GOL-W type: type: string enum: - inventory - nonInventory - service example: inventory quantityOnHand: type: array items: $ref: '#/components/schemas/QuantityOnHandV2Dto' name: type: string example: White golf balls. maxLength: 50 invoiceItem: $ref: '#/components/schemas/InventoryBillInvoiceLineItemsV2' billItem: $ref: '#/components/schemas/InventoryBillInvoiceLineItemsV2' isBillItem: type: boolean example: true isInvoiceItem: type: boolean example: true subsidiaryRefs: type: array items: $ref: '#/components/schemas/SubsidiaryRefDto' passThrough: type: object additionalProperties: true example: CustomField: - DefinitionId: '1' StringValue: my custom value Name: Field One required: - name ListReportMetaDataV2: type: object properties: connectionUuid: type: string readOnly: true example: CON-396d5daa-26b2-4979-89b6-cafb2c298155 businessName: type: string readOnly: true example: Railz serviceName: type: string readOnly: true example: xero enum: - freshbooks - quickbooks - quickbooksDesktop - xero - oracleNetsuite - sageBusinessCloud - sageIntacct - dynamicsBusinessCentral - dynamics365Finance - wave - myob - zohoBooks - byod reportId: readOnly: true example: - 5fad8a342a88364234392fb5 - 5fad8a342a88364234392fb6 type: array items: type: string 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 required: - connectionUuid - businessName - serviceName - reportId - createdAt - updatedAt InventoryRefDto: type: object properties: id: type: string example: '32' required: - id TaxRateRef: type: object properties: id: type: string example: '1' name: type: string example: HST effectiveTaxRate: type: number example: 13 format: float required: - id PushInventoryV2Dto: type: object properties: connectionUuid: type: string description: Unique connection identifier. example: CON-396d5daa-26b2-4979-89b6-cafb2c298155 data: $ref: '#/components/schemas/PushInventoryV2' required: - connectionUuid - data PaginationMetaData: type: object properties: offset: type: number readOnly: true limit: type: number readOnly: true count: type: number readOnly: true required: - offset - limit - count Error403ResponseDto: type: object properties: error: readOnly: true allOf: - $ref: '#/components/schemas/Error403Dto' payload: type: object readOnly: true example: {} required: - error - payload SubsidiaryRefDto: type: object properties: id: type: string example: '4' required: - id GetInventoryResponseV2Dto: type: object properties: pagination: $ref: '#/components/schemas/PaginationMetaData' meta: $ref: '#/components/schemas/ListReportMetaDataV2' data: type: array items: $ref: '#/components/schemas/GetInventoryDataV2' required: - pagination - meta - data QuantityOnHandData: type: object properties: locationRef: $ref: '#/components/schemas/InventoryLocationRef' quantity: type: number example: 2.5 format: float accountRef: $ref: '#/components/schemas/AccountRef' 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 UpdateInventoryV2Dto: type: object properties: connectionUuid: type: string description: Unique connection identifier. example: CON-396d5daa-26b2-4979-89b6-cafb2c298155 data: $ref: '#/components/schemas/UpdateInventoryV2' required: - connectionUuid - data 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 AccountRef: type: object properties: id: type: string example: '145' name: type: string example: Example account required: - id GetInventoryDataV2: type: object properties: id: type: string example: '1' name: type: string example: Product Services code: type: string example: '100' sourceModifiedDate: format: date-time type: string example: '2021-03-09T10:18:29.985Z' billItem: $ref: '#/components/schemas/BillOrInvoiceItem' invoiceItem: $ref: '#/components/schemas/BillOrInvoiceItem' isInvoiceItem: type: boolean example: true isBillItem: type: boolean example: true subsidiaryRefs: type: array items: $ref: '#/components/schemas/InventorySubsidiaryRef' quantityOnHand: type: array items: $ref: '#/components/schemas/QuantityOnHandData' type: type: string enum: - inventory - nonInventory - service example: inventory status: type: string enum: - unknown - active - archived example: active required: - id - status Error500ResponseDto: type: object properties: error: readOnly: true allOf: - $ref: '#/components/schemas/Error500Dto' payload: type: object readOnly: true required: - error - payload AccountRefDto: type: object properties: id: type: string example: '200' required: - id securitySchemes: bearer: scheme: bearer bearerFormat: JWT type: http