openapi: 3.2.0 info: title: Conversion Management UOM Conversion Admin API version: v1 servers: - url: https://rls.congacloud.com - url: https://preview-rls09.congacloud.com security: - bearerAuth: [] tags: - name: UOM Conversion Admin paths: /api/conversion-management/v1/uom-conversion-rates: get: tags: - UOM Conversion Admin summary: Get all UOM conversion rates description: Returns all UOM conversion rates that meet the criteria. parameters: - name: criteria in: query description: 'Search criteria for the UOM conversion rates. **For example**: FromUOM = ''Box''.
**Note**: The criteria field (in this case, FromUOM) should be indexed.
' style: form schema: type: string - name: sortField in: query description: 'Field name for sorting. **For example**: ModifiedDate.**Note**: The sort field (in this case, ModifiedDate) should be indexed or sortable.
' style: form schema: type: string - name: sortDirection in: query description: 'Sort direction (Ascending or Descending) of the data. For example: ASC or DESC.**Note**: The default sort order is **DESC** if the sort field parameter is specified.
' style: form schema: type: string - name: pageSize in: query description: The number of records to display on each page. style: form schema: type: integer format: int32 - name: pageNumber in: query description: The page number of the result set to view. style: form schema: type: integer format: int32 responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/UOMConversionRateListAPIResponse' example: Success: true RecordCount: 2 Data: - FromUOM: Box ToUOM: Each Product: null ProductFamily: null ConversionRate: 10 Id: null Name: null CreatedBy: null CreatedDate: '0001-01-01T00:00:00' ModifiedBy: null ModifiedDate: '0001-01-01T00:00:00' ExternalId: null ETag: null - FromUOM: Box ToUOM: Each Product: null ProductFamily: null ConversionRate: 10 Id: null Name: null CreatedBy: null CreatedDate: '0001-01-01T00:00:00' ModifiedBy: null ModifiedDate: '0001-01-01T00:00:00' ExternalId: null ETag: null StatusCode: OK '400': description: Found unknown field(s) '403': description: Forbidden '404': description: Not Found '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/StringAPIResponse' example: Success: false Errors: - Message: Internal server error occurred. Please contact admin. StatusCode: OK post: tags: - UOM Conversion Admin summary: Add a new UOM conversion rate description: Creates a new UOM conversion rate. requestBody: description: UOM conversion rate information content: application/json: schema: $ref: '#/components/schemas/UOMConversionRate' text/json: schema: $ref: '#/components/schemas/UOMConversionRate' application/*+json: schema: $ref: '#/components/schemas/UOMConversionRate' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/UOMConversionRateAPIResponse' example: Success: true Data: FromUOM: Box ToUOM: Each Product: null ProductFamily: null ConversionRate: 10 Id: null Name: null CreatedBy: null CreatedDate: '0001-01-01T00:00:00' ModifiedBy: null ModifiedDate: '0001-01-01T00:00:00' ExternalId: null ETag: null StatusCode: OK '400': description: Found unknown field(s) '403': description: Forbidden '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/StringAPIResponse' example: Success: false Errors: - Message: Internal server error occurred. Please contact admin. StatusCode: OK /api/conversion-management/v1/uom-conversion-rates/bulk: post: tags: - UOM Conversion Admin summary: Add multiple UOM conversion rates description: Creates multiple UOM conversion rates. requestBody: description: UOM conversion rates information list content: application/json: schema: type: array items: $ref: '#/components/schemas/UOMConversionRate' text/json: schema: type: array items: $ref: '#/components/schemas/UOMConversionRate' application/*+json: schema: type: array items: $ref: '#/components/schemas/UOMConversionRate' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/UOMConversionRateListAPIResponse' example: Success: true Data: FromUOM: Box ToUOM: Each Product: null ProductFamily: null ConversionRate: 10 Id: null Name: null CreatedBy: null CreatedDate: '0001-01-01T00:00:00' ModifiedBy: null ModifiedDate: '0001-01-01T00:00:00' ExternalId: null ETag: null StatusCode: OK '400': description: Found unknown field(s) '403': description: Forbidden '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/StringAPIResponse' example: Success: false Errors: - Message: Internal server error occurred. Please contact admin. StatusCode: OK put: tags: - UOM Conversion Admin summary: Update multiple UOM conversion rates description: Updates multiple UOM conversion rates and returns the request status. requestBody: description: UOM conversion rates information list content: application/json: schema: type: array items: type: object additionalProperties: {} text/json: schema: type: array items: type: object additionalProperties: {} application/*+json: schema: type: array items: type: object additionalProperties: {} responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/StringObjectDictionaryListAPIResponse' '400': description: Found unknown field(s) '403': description: Forbidden '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/StringAPIResponse' example: Success: false Errors: - Message: Internal server error occurred. Please contact admin. StatusCode: OK /api/conversion-management/v1/uom-conversion-rates/{id}: delete: tags: - UOM Conversion Admin summary: Delete UOM conversion rate by ID description: Deletes UOM conversion rate by ID. parameters: - name: id in: path description: UOM conversion rate ID required: true style: simple schema: type: string responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/BooleanAPIResponse' '400': description: Found unknown field(s) '403': description: Forbidden '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/StringAPIResponse' example: Success: false Errors: - Message: Internal server error occurred. Please contact admin. StatusCode: OK get: tags: - UOM Conversion Admin summary: Retrieve a UOM conversion rate by ID description: Retrieves a UOM conversion rate for the given UOM conversion rate ID. parameters: - name: id in: path description: UOM conversion rate ID required: true style: simple schema: type: string responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/UOMConversionRateAPIResponse' example: Success: true Data: FromUOM: Box ToUOM: Each Product: null ProductFamily: null ConversionRate: 10 Id: null Name: null CreatedBy: null CreatedDate: '0001-01-01T00:00:00' ModifiedBy: null ModifiedDate: '0001-01-01T00:00:00' ExternalId: null ETag: null StatusCode: OK '400': description: Found unknown field(s) '403': description: Forbidden '404': description: Not Found '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/StringAPIResponse' example: Success: false Errors: - Message: Internal server error occurred. Please contact admin. StatusCode: OK put: tags: - UOM Conversion Admin summary: Update a UOM conversion rate description: Updates a UOM conversion rate for the given UOM conversion rate ID. parameters: - name: id in: path description: UOM conversion rate ID required: true style: simple schema: type: string requestBody: description: UOM conversion rate information content: application/json: schema: type: object additionalProperties: {} text/json: schema: type: object additionalProperties: {} application/*+json: schema: type: object additionalProperties: {} responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/StringObjectDictionaryAPIResponse' '400': description: Found unknown field(s) '403': description: Forbidden '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/StringAPIResponse' example: Success: false Errors: - Message: Internal server error occurred. Please contact admin. StatusCode: OK components: schemas: StringObjectDictionaryAPIResponse: type: object properties: Success: type: boolean RecordCount: type: - integer - 'null' format: int64 Data: type: - object - 'null' additionalProperties: {} Errors: type: - array - 'null' items: $ref: '#/components/schemas/ErrorDetail' Profile: type: - string - 'null' TotalTime: type: number format: float StatusCode: $ref: '#/components/schemas/HttpStatusCode' HasMoreRecords: type: - boolean - 'null' NextCursor: type: - string - 'null' Warnings: type: - array - 'null' items: $ref: '#/components/schemas/ErrorDetail' additionalProperties: false StringObjectDictionaryListAPIResponse: type: object properties: Success: type: boolean RecordCount: type: - integer - 'null' format: int64 Data: type: - array - 'null' items: type: object additionalProperties: {} Errors: type: - array - 'null' items: $ref: '#/components/schemas/ErrorDetail' Profile: type: - string - 'null' TotalTime: type: number format: float StatusCode: $ref: '#/components/schemas/HttpStatusCode' HasMoreRecords: type: - boolean - 'null' NextCursor: type: - string - 'null' Warnings: type: - array - 'null' items: $ref: '#/components/schemas/ErrorDetail' additionalProperties: false BooleanAPIResponse: type: object properties: Success: type: boolean RecordCount: type: - integer - 'null' format: int64 Data: type: boolean Errors: type: - array - 'null' items: $ref: '#/components/schemas/ErrorDetail' Profile: type: - string - 'null' TotalTime: type: number format: float StatusCode: $ref: '#/components/schemas/HttpStatusCode' HasMoreRecords: type: - boolean - 'null' NextCursor: type: - string - 'null' Warnings: type: - array - 'null' items: $ref: '#/components/schemas/ErrorDetail' additionalProperties: false UOMConversionRateListAPIResponse: type: object properties: Success: type: boolean RecordCount: type: - integer - 'null' format: int64 Data: type: - array - 'null' items: $ref: '#/components/schemas/UOMConversionRate' Errors: type: - array - 'null' items: $ref: '#/components/schemas/ErrorDetail' Profile: type: - string - 'null' TotalTime: type: number format: float StatusCode: $ref: '#/components/schemas/HttpStatusCode' HasMoreRecords: type: - boolean - 'null' NextCursor: type: - string - 'null' Warnings: type: - array - 'null' items: $ref: '#/components/schemas/ErrorDetail' additionalProperties: false UOMConversionRate: type: object properties: Id: type: - string - 'null' description: A global unique identifier. **For example :** 1111ee11-1e11-11e11f11-1f1111c11e11 Name: type: - string - 'null' description: Name CreatedBy: $ref: '#/components/schemas/LookupObject' CreatedDate: type: string description: Created date format: date-time ModifiedBy: $ref: '#/components/schemas/LookupObject' ModifiedDate: type: string description: Modified date format: date-time ExternalId: type: - string - 'null' description: External ID ETag: type: - string - 'null' description: Etag FromUOM: type: - string - 'null' description: Source unit. **For example:** Each, Box, etc. ToUOM: type: - string - 'null' description: Target unit. **For example:** Each, Box, etc. Product: $ref: '#/components/schemas/LookupObject' ProductFamily: type: - string - 'null' description: Product Family ConversionRate: type: number description: Conversion rate format: double additionalProperties: {} description: UOM conversion rate schema LookupObject: type: object properties: Id: type: - string - 'null' description: User Id. Name: type: - string - 'null' description: User Name. additionalProperties: false UOMConversionRateAPIResponse: type: object properties: Success: type: boolean RecordCount: type: - integer - 'null' format: int64 Data: $ref: '#/components/schemas/UOMConversionRate' Errors: type: - array - 'null' items: $ref: '#/components/schemas/ErrorDetail' Profile: type: - string - 'null' TotalTime: type: number format: float StatusCode: $ref: '#/components/schemas/HttpStatusCode' HasMoreRecords: type: - boolean - 'null' NextCursor: type: - string - 'null' Warnings: type: - array - 'null' items: $ref: '#/components/schemas/ErrorDetail' additionalProperties: false ErrorDetail: type: object properties: Message: type: - string - 'null' additionalProperties: false StringAPIResponse: type: object properties: Success: type: boolean RecordCount: type: - integer - 'null' format: int64 Data: type: - string - 'null' Errors: type: - array - 'null' items: $ref: '#/components/schemas/ErrorDetail' Profile: type: - string - 'null' TotalTime: type: number format: float StatusCode: $ref: '#/components/schemas/HttpStatusCode' HasMoreRecords: type: - boolean - 'null' NextCursor: type: - string - 'null' Warnings: type: - array - 'null' items: $ref: '#/components/schemas/ErrorDetail' additionalProperties: false HttpStatusCode: enum: - Continue - SwitchingProtocols - Processing - EarlyHints - OK - Created - Accepted - NonAuthoritativeInformation - NoContent - ResetContent - PartialContent - MultiStatus - AlreadyReported - IMUsed - MultipleChoices - MovedPermanently - Found - SeeOther - NotModified - UseProxy - Unused - TemporaryRedirect - PermanentRedirect - BadRequest - Unauthorized - PaymentRequired - Forbidden - NotFound - MethodNotAllowed - NotAcceptable - ProxyAuthenticationRequired - RequestTimeout - Conflict - Gone - LengthRequired - PreconditionFailed - RequestEntityTooLarge - RequestUriTooLong - UnsupportedMediaType - RequestedRangeNotSatisfiable - ExpectationFailed - MisdirectedRequest - UnprocessableEntity - Locked - FailedDependency - UpgradeRequired - PreconditionRequired - TooManyRequests - RequestHeaderFieldsTooLarge - UnavailableForLegalReasons - InternalServerError - NotImplemented - BadGateway - ServiceUnavailable - GatewayTimeout - HttpVersionNotSupported - VariantAlsoNegotiates - InsufficientStorage - LoopDetected - NotExtended - NetworkAuthenticationRequired type: string securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: JWT