Retraced Order Hub / Order Lines API
The Order Hub / Order Lines API from Retraced — 2 operation(s) for order hub / order lines.
The Order Hub / Order Lines API from Retraced — 2 operation(s) for order hub / order lines.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/retraced-order-hub-order-lines-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Public API Reference Order Hub / Order Lines API
description: 'The retraced API comprises all publicly enabled options to make
machine-to-machine changes in the retraced platform.'
version: 2.938.1
servers: []
tags:
- name: Order Hub / Order Lines
paths:
/api/v2/order-lines/:
get:
tags:
- Order Hub / Order Lines
description: List order lines, paginated via `page`/`limit`. Provide `orderId` to filter to a single order; omit it to list every line your company owns. Lines of removed or foreign orders are never returned.
parameters:
- schema:
type: integer
minimum: 1
maximum: 100
in: query
name: limit
required: false
- schema:
type: integer
minimum: 1
maximum: 9007199254740991
in: query
name: page
required: false
- schema:
type: string
in: query
name: orderId
required: false
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
properties:
metadata:
type: object
properties:
success:
default: true
type: boolean
pagination:
type: object
properties:
page:
default: 1
type: number
limit:
default: 10
type: number
total:
default: 0
type: number
totalPages:
default: 0
type: number
required:
- page
- limit
- total
- totalPages
additionalProperties: false
required:
- success
additionalProperties: false
data:
type: array
items:
type: object
properties:
id:
type: string
orderId:
type: string
orderLineNumber:
anyOf:
- type: string
- type: 'null'
lineNo:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: 'null'
styleId:
type: string
quantity:
type: number
unit:
type: string
secondaryQuantity:
anyOf:
- type: number
- type: 'null'
secondaryUnit:
anyOf:
- type: string
- type: 'null'
createdAt:
anyOf:
- type: string
- type: 'null'
createdByUserId:
anyOf:
- type: string
- type: 'null'
createdByUserName:
anyOf:
- type: string
- type: 'null'
createdByCompanyId:
anyOf:
- type: string
- type: 'null'
createdByCompanyName:
anyOf:
- type: string
- type: 'null'
createdByImpersonateId:
anyOf:
- type: string
- type: 'null'
createdByImpersonateName:
anyOf:
- type: string
- type: 'null'
createdByApiKeyId:
anyOf:
- type: string
- type: 'null'
createdByApiKeyLabel:
anyOf:
- type: string
- type: 'null'
updatedAt:
anyOf:
- type: string
- type: 'null'
updatedByUserId:
anyOf:
- type: string
- type: 'null'
updatedByUserName:
anyOf:
- type: string
- type: 'null'
updatedByCompanyId:
anyOf:
- type: string
- type: 'null'
updatedByCompanyName:
anyOf:
- type: string
- type: 'null'
updatedByImpersonateId:
anyOf:
- type: string
- type: 'null'
updatedByImpersonateName:
anyOf:
- type: string
- type: 'null'
updatedByApiKeyId:
anyOf:
- type: string
- type: 'null'
updatedByApiKeyLabel:
anyOf:
- type: string
- type: 'null'
required:
- id
- orderId
- orderLineNumber
- lineNo
- styleId
- quantity
- unit
- secondaryQuantity
- secondaryUnit
- createdAt
- createdByUserId
- createdByUserName
- createdByCompanyId
- createdByCompanyName
- createdByImpersonateId
- createdByImpersonateName
- createdByApiKeyId
- createdByApiKeyLabel
- updatedAt
- updatedByUserId
- updatedByUserName
- updatedByCompanyId
- updatedByCompanyName
- updatedByImpersonateId
- updatedByImpersonateName
- updatedByApiKeyId
- updatedByApiKeyLabel
additionalProperties: false
required:
- metadata
- data
additionalProperties: false
example:
metadata:
success: true
pagination:
page: 1
limit: 20
total: 2
totalPages: 1
data:
- id: ordline_01KWHF7XAY4Q74CAVXYAPJ6FJV
orderId: order_01KWHF7TD318JZA3KM9A9E9979
orderLineNumber: PO-2026-0042-L1
lineNo: 1
styleId: style_01KM2XVHS8NCPRP3PD5EREZ30H
quantity: 1500
unit: PIECES
secondaryQuantity: 450.75
secondaryUnit: KILOGRAM
createdAt: '2026-07-02T12:50:08.096Z'
createdByUserId: null
createdByUserName: null
createdByCompanyId: M4MRIN4A9JQ
createdByCompanyName: null
createdByImpersonateId: null
createdByImpersonateName: null
createdByApiKeyId: QLKL2SWPRSH
createdByApiKeyLabel: ERP integration
updatedAt: '2026-07-02T12:50:08.096Z'
updatedByUserId: null
updatedByUserName: null
updatedByCompanyId: M4MRIN4A9JQ
updatedByCompanyName: null
updatedByImpersonateId: null
updatedByImpersonateName: null
updatedByApiKeyId: QLKL2SWPRSH
updatedByApiKeyLabel: ERP integration
- id: ordline_01KWHF7YSW1A1R34E1DMEHMAK5
orderId: order_01KWHF7TD318JZA3KM9A9E9979
orderLineNumber: PO-2026-0042-FABRIC-A
lineNo: 2
styleId: style_01KVT1Y6QSRSF7WSEK8QQVRAZ2
quantity: 850.5
unit: METRE
secondaryQuantity: 320.25
secondaryUnit: KILOGRAM
createdAt: '2026-07-02T12:50:08.402Z'
createdByUserId: null
createdByUserName: null
createdByCompanyId: M4MRIN4A9JQ
createdByCompanyName: null
createdByImpersonateId: null
createdByImpersonateName: null
createdByApiKeyId: QLKL2SWPRSH
createdByApiKeyLabel: ERP integration
updatedAt: '2026-07-02T12:50:08.402Z'
updatedByUserId: null
updatedByUserName: null
updatedByCompanyId: M4MRIN4A9JQ
updatedByCompanyName: null
updatedByImpersonateId: null
updatedByImpersonateName: null
updatedByApiKeyId: QLKL2SWPRSH
updatedByApiKeyLabel: ERP integration
'401':
description: Default Response
content:
application/json:
schema:
type: object
properties:
metadata:
type: object
properties:
success:
default: false
type: boolean
required:
- success
additionalProperties: false
statusCode:
type: number
code:
type: string
error:
type: string
message:
type: string
expected:
type: boolean
required:
- statusCode
- code
- message
additionalProperties: false
summary: Get api order lines
x-summary-source: derived
operationId: getApiV2OrderLines
x-operation-id-source: derived
/api/v2/order-lines/{lineId}:
get:
tags:
- Order Hub / Order Lines
description: Fetch a single order line by its id. Returns 404 when the line does not exist or its parent order is removed / belongs to another company.
parameters:
- schema:
type: string
minLength: 1
in: path
name: lineId
required: true
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
properties:
metadata:
type: object
properties:
success:
default: true
type: boolean
required:
- success
additionalProperties: false
data:
type: object
properties:
id:
type: string
orderId:
type: string
orderLineNumber:
anyOf:
- type: string
- type: 'null'
lineNo:
anyOf:
- type: integer
minimum: -9007199254740991
maximum: 9007199254740991
- type: 'null'
styleId:
type: string
quantity:
type: number
unit:
type: string
secondaryQuantity:
anyOf:
- type: number
- type: 'null'
secondaryUnit:
anyOf:
- type: string
- type: 'null'
createdAt:
anyOf:
- type: string
- type: 'null'
createdByUserId:
anyOf:
- type: string
- type: 'null'
createdByUserName:
anyOf:
- type: string
- type: 'null'
createdByCompanyId:
anyOf:
- type: string
- type: 'null'
createdByCompanyName:
anyOf:
- type: string
- type: 'null'
createdByImpersonateId:
anyOf:
- type: string
- type: 'null'
createdByImpersonateName:
anyOf:
- type: string
- type: 'null'
createdByApiKeyId:
anyOf:
- type: string
- type: 'null'
createdByApiKeyLabel:
anyOf:
- type: string
- type: 'null'
updatedAt:
anyOf:
- type: string
- type: 'null'
updatedByUserId:
anyOf:
- type: string
- type: 'null'
updatedByUserName:
anyOf:
- type: string
- type: 'null'
updatedByCompanyId:
anyOf:
- type: string
- type: 'null'
updatedByCompanyName:
anyOf:
- type: string
- type: 'null'
updatedByImpersonateId:
anyOf:
- type: string
- type: 'null'
updatedByImpersonateName:
anyOf:
- type: string
- type: 'null'
updatedByApiKeyId:
anyOf:
- type: string
- type: 'null'
updatedByApiKeyLabel:
anyOf:
- type: string
- type: 'null'
required:
- id
- orderId
- orderLineNumber
- lineNo
- styleId
- quantity
- unit
- secondaryQuantity
- secondaryUnit
- createdAt
- createdByUserId
- createdByUserName
- createdByCompanyId
- createdByCompanyName
- createdByImpersonateId
- createdByImpersonateName
- createdByApiKeyId
- createdByApiKeyLabel
- updatedAt
- updatedByUserId
- updatedByUserName
- updatedByCompanyId
- updatedByCompanyName
- updatedByImpersonateId
- updatedByImpersonateName
- updatedByApiKeyId
- updatedByApiKeyLabel
additionalProperties: false
required:
- metadata
- data
additionalProperties: false
example:
metadata:
success: true
data:
id: ordline_01KWHF7XAY4Q74CAVXYAPJ6FJV
orderId: order_01KWHF7TD318JZA3KM9A9E9979
orderLineNumber: PO-2026-0042-L1
lineNo: 1
styleId: style_01KM2XVHS8NCPRP3PD5EREZ30H
quantity: 1500
unit: PIECES
secondaryQuantity: 450.75
secondaryUnit: KILOGRAM
createdAt: '2026-07-02T12:50:08.096Z'
createdByUserId: null
createdByUserName: null
createdByCompanyId: M4MRIN4A9JQ
createdByCompanyName: null
createdByImpersonateId: null
createdByImpersonateName: null
createdByApiKeyId: QLKL2SWPRSH
createdByApiKeyLabel: ERP integration
updatedAt: '2026-07-02T12:50:08.096Z'
updatedByUserId: null
updatedByUserName: null
updatedByCompanyId: M4MRIN4A9JQ
updatedByCompanyName: null
updatedByImpersonateId: null
updatedByImpersonateName: null
updatedByApiKeyId: QLKL2SWPRSH
updatedByApiKeyLabel: ERP integration
'401':
description: Default Response
content:
application/json:
schema:
type: object
properties:
metadata:
type: object
properties:
success:
default: false
type: boolean
required:
- success
additionalProperties: false
statusCode:
type: number
code:
type: string
error:
type: string
message:
type: string
expected:
type: boolean
required:
- statusCode
- code
- message
additionalProperties: false
'404':
description: Default Response
content:
application/json:
schema:
type: object
properties:
metadata:
type: object
properties:
success:
default: false
type: boolean
required:
- success
additionalProperties: false
statusCode:
type: number
code:
type: string
error:
type: string
message:
type: string
expected:
type: boolean
required:
- statusCode
- code
- message
additionalProperties: false
summary: Get api order lines by line id
x-summary-source: derived
operationId: getApiV2OrderLinesByLineId
x-operation-id-source: derived