Skip to main content

retraced REST API

@retracedgmbh/public-api-service/v0 (0.0.1)

Download OpenAPI specification:Download

The retraced API comprises all publicly enabled options to make machine-to-machine changes in the retraced platform: http://retraced.com/..

Companies

All endpoints to read and update companies in retraced.

Get Single Company by ID

Authorizations:
bearerAuthapiKeyAuth
path Parameters
id
required
string
Examples: RWFWXC1H1M8 QE4ARF7G3VG 13c13921-8e0a-4299-a282-023d9fae25de

A hashed id of the company

Available options

Could be both a:

  • nanoId
  • uuidV4
query Parameters
expand
string
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
Schema not provided

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "officialName": "string",
  • "facilityProcesses": [ ],
  • "country": "string",
  • "countryName": "string"
}

List All Companies in my network

Authorizations:
bearerAuthapiKeyAuth
query Parameters
page
number >= 0
Default: 0
count
number [ 0 .. 500 ]
Default: 15
filter
string <= 512 characters
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
Schema not provided

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}

API Keys

Create a new API Key

Authorizations:
bearerAuthapiKeyAuth
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
label
required
string [ 1 .. 255 ] characters

A unique name that you would like to give to the api key

Responses

Request samples

Content type
application/json
{
  • "label": "Staging"
}

Response samples

Content type
application/json
{
  • "label": "string",
  • "companyApiKey": "string"
}

Delete Company API Key

Authorizations:
bearerAuthapiKeyAuth
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
label
required
string [ 1 .. 255 ] characters

The label of api key label that you want to delete

Responses

Request samples

Content type
application/json
{
  • "label": "Staging"
}

Response samples

Content type
application/json
null

Attachment Templates

List all attachment templates

Authorizations:
bearerAuthapiKeyAuth
query Parameters
page
number >= 0
Default: 0
count
number [ 0 .. 500 ]
Default: 15
name
string
sort
string
filter
string <= 512 characters
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
Schema not provided

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}

Orders

Create a purchase order

Authorizations:
bearerAuthapiKeyAuth
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
orderNumber
required
string non-empty

Your order number

Array of strings or null
string or null
string or null
attachmentTemplateId
required
string non-empty
Array of objects
required
object
required
object
object or null
required
Array of objects non-empty
Array of strings or null
string or null
string or null

Responses

Request samples

Content type
application/json
{
  • "orderNumber": "Order12345",
  • "orderTags": "My Tag",
  • "orderDate": "2023-12-10T11:41:04.278Z",
  • "deliveryDate": "2023-12-15T11:41:04.278Z",
  • "attachmentTemplateId": "string",
  • "attachments": [
    ],
  • "buyer": {
    },
  • "supplier": {
    },
  • "receiver": {
    },
  • "lines": [
    ],
  • "responsibleUserEmails": [],
  • "status": "IN_PROGRESS",
  • "agreedDeliveryDate": "2023-12-15T11:41:04.278Z"
}

Response samples

Content type
application/json
{
  • "id": "string"
}

Create a sales order

Authorizations:
bearerAuthapiKeyAuth
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
orderNumber
required
string non-empty

Your order number

Array of strings or null
string or null
string or null
attachmentTemplateId
required
string non-empty
Array of objects
required
object
required
object
object or null
required
Array of objects non-empty
Array of strings or null
string or null
string or null

Responses

Request samples

Content type
application/json
{
  • "orderNumber": "Order12345",
  • "orderTags": "My Tag",
  • "orderDate": "2023-12-10T11:41:04.278Z",
  • "deliveryDate": "2023-12-15T11:41:04.278Z",
  • "attachmentTemplateId": "string",
  • "attachments": [
    ],
  • "buyer": {
    },
  • "supplier": {
    },
  • "receiver": {
    },
  • "lines": [
    ],
  • "responsibleUserEmails": [],
  • "status": "IN_PROGRESS",
  • "agreedDeliveryDate": "2023-12-15T11:41:04.278Z"
}

Response samples

Content type
application/json
{
  • "id": "string"
}

Get single purchase order

Authorizations:
bearerAuthapiKeyAuth
path Parameters
id
required
string
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
Schema not provided

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "orderNumber": "string",
  • "buyerCompany": {
    },
  • "attachmentTemplate": {
    },
  • "supplierCompany": {
    },
  • "tracingOrderTags": "string",
  • "supplierCompanyId": "string",
  • "buyerCompanyId": "string",
  • "facilityProcess": "string",
  • "receiverCompanyId": "string",
  • "orderDate": "2019-08-24T14:15:22Z",
  • "deliveryDate": "2019-08-24T14:15:22Z",
  • "status": "string",
  • "orderTags": "string",
  • "agreedDeliveryDate": "string",
  • "attachments": [
    ],
  • "responsibleUsers": [
    ],
  • "lines": [
    ]
}

PUT a purchase order

Authorizations:
bearerAuthapiKeyAuth
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
orderNumber
required
string non-empty

Your order number

Array of strings or null
string or null
string or null
attachmentTemplateId
required
string non-empty
Array of objects
required
object
required
object
object or null
required
Array of objects non-empty
Array of strings or null
string or null
string or null

Responses

Request samples

Content type
application/json
{
  • "orderNumber": "Order12345",
  • "orderTags": "My Tag",
  • "orderDate": "2023-12-10T11:41:04.278Z",
  • "deliveryDate": "2023-12-15T11:41:04.278Z",
  • "attachmentTemplateId": "string",
  • "attachments": [
    ],
  • "buyer": {
    },
  • "supplier": {
    },
  • "receiver": {
    },
  • "lines": [
    ],
  • "responsibleUserEmails": [],
  • "status": "IN_PROGRESS",
  • "agreedDeliveryDate": "2023-12-15T11:41:04.278Z"
}

Response samples

Content type
application/json
{
  • "id": "string"
}

Get single sales order

Authorizations:
bearerAuthapiKeyAuth
path Parameters
id
required
string
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
Schema not provided

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "orderNumber": "string",
  • "buyerCompany": {
    },
  • "attachmentTemplate": {
    },
  • "supplierCompany": {
    },
  • "tracingOrderTags": "string",
  • "supplierCompanyId": "string",
  • "buyerCompanyId": "string",
  • "facilityProcess": "string",
  • "receiverCompanyId": "string",
  • "orderDate": "2019-08-24T14:15:22Z",
  • "deliveryDate": "2019-08-24T14:15:22Z",
  • "status": "string",
  • "orderTags": "string",
  • "agreedDeliveryDate": "string",
  • "attachments": [
    ],
  • "responsibleUsers": [
    ],
  • "lines": [
    ]
}

PUT a sales order

Authorizations:
bearerAuthapiKeyAuth
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
orderNumber
required
string non-empty

Your order number

Array of strings or null
string or null
string or null
attachmentTemplateId
required
string non-empty
Array of objects
required
object
required
object
object or null
required
Array of objects non-empty
Array of strings or null
string or null
string or null

Responses

Request samples

Content type
application/json
{
  • "orderNumber": "Order12345",
  • "orderTags": "My Tag",
  • "orderDate": "2023-12-10T11:41:04.278Z",
  • "deliveryDate": "2023-12-15T11:41:04.278Z",
  • "attachmentTemplateId": "string",
  • "attachments": [
    ],
  • "buyer": {
    },
  • "supplier": {
    },
  • "receiver": {
    },
  • "lines": [
    ],
  • "responsibleUserEmails": [],
  • "status": "IN_PROGRESS",
  • "agreedDeliveryDate": "2023-12-15T11:41:04.278Z"
}

Response samples

Content type
application/json
{
  • "id": "string"
}

Products

Create New Product

Authorizations:
bearerAuthapiKeyAuth
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
name
required
string [ 1 .. 255 ] characters
productCategoryId
required
string non-empty

You can get the list of product categories from list all product types endpoint. Once added, product category cannot be changed.

code
required
string non-empty
string or null
boolean or null
supplierCompanyIds
Array of strings
vendorCompanyIds
Array of strings
Array of objects
object
Array of objects
object or null
Array of objects
Array of objects
Array of objects <= 20 items
Array of objects

Only allowed for Product category id of Fabrics.

Array of objects
Array of objects

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "productCategoryId": "string",
  • "code": "string",
  • "description": "string",
  • "isProductComponent": true,
  • "supplierCompanyIds": [
    ],
  • "vendorCompanyIds": [
    ],
  • "collections": [
    ],
  • "productProperties": {
    },
  • "materials": [
    ],
  • "weight": {
    },
  • "colors": [
    ],
  • "variations": [
    ],
  • "imageList": [
    ],
  • "productCategoryFields": [
    ],
  • "bom": [
    ],
  • "externalProductTypes": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "string"
}

List All Products

Authorizations:
bearerAuthapiKeyAuth
query Parameters
supplierCompanyIds
string
page
number >= 0
Default: 0
count
number [ 0 .. 500 ]
Default: 15
sort
string
filter
string <= 512 characters
Examples: isProductComponent=true productCategoryId=xyz123
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
Schema not provided

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}

Get single Product

Authorizations:
bearerAuthapiKeyAuth
path Parameters
id
required
string non-empty
query Parameters
supplyChain
boolean
Default: false
attributes
boolean
Default: false
variations
boolean
Default: false
orders
boolean
Default: false
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
Schema not provided

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "code": "string",
  • "name": "string",
  • "description": "string",
  • "isProductComponent": true,
  • "collections": [
    ],
  • "productLevelName": "string",
  • "productCategoryName": "string",
  • "colors": [
    ],
  • "variations": [
    ],
  • "suppliers": [
    ],
  • "vendors": [
    ],
  • "materials": [
    ],
  • "imageList": [
    ],
  • "weight": 0,
  • "weightUnit": "string",
  • "productProperties": {
    },
  • "categoryFieldValues": [
    ],
  • "bom": [
    ],
  • "externalProductTypes": [
    ]
}

Updates product fields passed in the request body

Authorizations:
bearerAuthapiKeyAuth
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
name
string <= 255 characters
code
string
string or null
boolean or null
supplierCompanyIds
Array of strings
isStoryActive
boolean
vendorCompanyIds
Array of strings
Array of objects
object
Array of objects
object or null
Array of objects
Array of objects
Array of objects <= 20 items
Array of objects

Only allowed for Product category id of Fabrics.

Array of objects
Array of objects

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "code": "string",
  • "description": "string",
  • "isProductComponent": true,
  • "supplierCompanyIds": [
    ],
  • "isStoryActive": true,
  • "vendorCompanyIds": [
    ],
  • "collections": [
    ],
  • "productProperties": {
    },
  • "materials": [
    ],
  • "weight": {
    },
  • "colors": [
    ],
  • "variations": [
    ],
  • "imageList": [
    ],
  • "productCategoryFields": [
    ],
  • "bom": [
    ],
  • "externalProductTypes": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "string"
}

Update entire product by id

Authorizations:
bearerAuthapiKeyAuth
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
name
required
string [ 1 .. 255 ] characters
code
required
string non-empty
string or null
boolean or null
supplierCompanyIds
Array of strings
vendorCompanyIds
Array of strings
isStoryActive
boolean
Array of objects
object
Array of objects
object or null
Array of objects
Array of objects
Array of objects <= 20 items
Array of objects

Only allowed for Product category id of Fabrics.

Array of objects
Array of objects

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "code": "string",
  • "description": "string",
  • "isProductComponent": true,
  • "supplierCompanyIds": [
    ],
  • "vendorCompanyIds": [
    ],
  • "isStoryActive": true,
  • "collections": [
    ],
  • "productProperties": {
    },
  • "materials": [
    ],
  • "weight": {
    },
  • "colors": [
    ],
  • "variations": [
    ],
  • "imageList": [
    ],
  • "productCategoryFields": [
    ],
  • "bom": [
    ],
  • "externalProductTypes": [
    ]
}

Response samples

Content type
application/json
{
  • "id": "string"
}

List All Product types

Authorizations:
bearerAuthapiKeyAuth
query Parameters
page
number >= 0
Default: 0
count
number [ 1 .. 1000 ]
Default: 500
sort
string
filter
string <= 512 characters
header Parameters
Accept
string
Example: application/json
Request Body schema: application/json
Schema not provided

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    }
}