The External Order Management section of the InvenTree API schema is documented below.
InvenTree API 196¶
API for InvenTree - the intuitive open source inventory management system
Servers¶
Description | URL |
---|---|
http://localhost:8000 | http://localhost:8000 |
order¶
GET /api/order/po-extra-line/¶
Description
Generic handler for a download request.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
limit |
query | integer | No | Number of results to return per page. | |
offset |
query | integer | No | The initial index from which to return the results. | |
order |
query | integer | No | ||
ordering |
query | string | No | Which field to use when ordering the results. | |
search |
query | string | No | A search term. |
Response 200 OK
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
]
}
Schema of the response body
{
"properties": {
"count": {
"example": 123,
"type": "integer"
},
"next": {
"example": "http://api.example.org/accounts/?offset=400&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"previous": {
"example": "http://api.example.org/accounts/?offset=200&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"results": {
"items": {
"$ref": "#/components/schemas/PurchaseOrderExtraLine"
},
"type": "array"
}
},
"type": "object"
}
POST /api/order/po-extra-line/¶
Description
API endpoint for accessing a list of PurchaseOrderExtraLine objects.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Request body
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
Response 201 Created
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the response body
{
"description": "Serializer for a PurchaseOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
DELETE /api/order/po-extra-line/{id}/¶
Description
API endpoint for detail view of a PurchaseOrderExtraLine object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 204 No Content
GET /api/order/po-extra-line/{id}/¶
Description
API endpoint for detail view of a PurchaseOrderExtraLine object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the response body
{
"description": "Serializer for a PurchaseOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
PATCH /api/order/po-extra-line/{id}/¶
Description
API endpoint for detail view of a PurchaseOrderExtraLine object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
Response 200 OK
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the response body
{
"description": "Serializer for a PurchaseOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
PUT /api/order/po-extra-line/{id}/¶
Description
API endpoint for detail view of a PurchaseOrderExtraLine object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
Response 200 OK
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the response body
{
"description": "Serializer for a PurchaseOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
GET /api/order/po-extra-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PATCH /api/order/po-extra-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PUT /api/order/po-extra-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
DELETE /api/order/po-line/¶
Description
Perform a DELETE operation against this list endpoint.
We expect a list of primary-key (ID) values to be supplied as a JSON object, e.g. { items: [4, 8, 15, 16, 23, 42] }
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Response 204 No Content
GET /api/order/po-line/¶
Description
Generic handler for a download request.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
base_part |
query | integer | No | Internal Part | |
has_pricing |
query | boolean | No | Has Pricing | |
limit |
query | integer | No | Number of results to return per page. | |
offset |
query | integer | No | The initial index from which to return the results. | |
order |
query | integer | No | Order | |
order_complete |
query | boolean | No | Order Complete | |
order_status |
query | integer | No | Order Status | |
ordering |
query | string | No | Which field to use when ordering the results. | |
part |
query | integer | No | Supplier Part | |
pending |
query | boolean | No | Order Pending | |
received |
query | boolean | No | Items Received | |
search |
query | string | No | A search term. |
Response 200 OK
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"auto_pricing": true,
"destination": 0,
"destination_detail": null,
"link": "string",
"merge_items": true,
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"purchase_price": "string",
"purchase_price_currency": null,
"quantity": 10.12,
"received": 10.12,
"reference": "string",
"target_date": "2022-04-13",
"total_price": 10.12
}
]
}
Schema of the response body
{
"properties": {
"count": {
"example": 123,
"type": "integer"
},
"next": {
"example": "http://api.example.org/accounts/?offset=400&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"previous": {
"example": "http://api.example.org/accounts/?offset=200&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"results": {
"items": {
"$ref": "#/components/schemas/PurchaseOrderLineItem"
},
"type": "array"
}
},
"type": "object"
}
POST /api/order/po-line/¶
Description
API endpoint for accessing a list of PurchaseOrderLineItem objects.
- GET: Return a list of PurchaseOrder Line Item objects
- POST: Create a new PurchaseOrderLineItem object
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Request body
{
"auto_pricing": true,
"destination": 0,
"destination_detail": null,
"link": "string",
"merge_items": true,
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"purchase_price": "string",
"purchase_price_currency": null,
"quantity": 10.12,
"received": 10.12,
"reference": "string",
"target_date": "2022-04-13",
"total_price": 10.12
}
Schema of the request body
{
"description": "Serializer class for the PurchaseOrderLineItem model.",
"properties": {
"auto_pricing": {
"default": true,
"description": "Automatically calculate purchase price based on supplier part data",
"type": "boolean"
},
"destination": {
"description": "Where does the Purchaser want this item to be stored?",
"nullable": true,
"type": "integer"
},
"destination_detail": {
"allOf": [
{
"$ref": "#/components/schemas/LocationBrief"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"merge_items": {
"default": true,
"description": "Merge items with the same part, destination and target date into one line item",
"type": "boolean"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Supplier part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"purchase_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"purchase_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Purchase price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"minimum": 0,
"type": "number"
},
"received": {
"default": 0.0,
"format": "double",
"readOnly": true,
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "double",
"readOnly": true,
"type": "number"
}
},
"required": [
"destination_detail",
"order",
"overdue",
"pk",
"quantity",
"received",
"total_price"
],
"type": "object"
}
{
"auto_pricing": true,
"destination": 0,
"destination_detail": null,
"link": "string",
"merge_items": true,
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"purchase_price": "string",
"purchase_price_currency": null,
"quantity": 10.12,
"received": 10.12,
"reference": "string",
"target_date": "2022-04-13",
"total_price": 10.12
}
Schema of the request body
{
"description": "Serializer class for the PurchaseOrderLineItem model.",
"properties": {
"auto_pricing": {
"default": true,
"description": "Automatically calculate purchase price based on supplier part data",
"type": "boolean"
},
"destination": {
"description": "Where does the Purchaser want this item to be stored?",
"nullable": true,
"type": "integer"
},
"destination_detail": {
"allOf": [
{
"$ref": "#/components/schemas/LocationBrief"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"merge_items": {
"default": true,
"description": "Merge items with the same part, destination and target date into one line item",
"type": "boolean"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Supplier part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"purchase_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"purchase_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Purchase price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"minimum": 0,
"type": "number"
},
"received": {
"default": 0.0,
"format": "double",
"readOnly": true,
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "double",
"readOnly": true,
"type": "number"
}
},
"required": [
"destination_detail",
"order",
"overdue",
"pk",
"quantity",
"received",
"total_price"
],
"type": "object"
}
{
"auto_pricing": true,
"destination": 0,
"destination_detail": null,
"link": "string",
"merge_items": true,
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"purchase_price": "string",
"purchase_price_currency": null,
"quantity": 10.12,
"received": 10.12,
"reference": "string",
"target_date": "2022-04-13",
"total_price": 10.12
}
Schema of the request body
{
"description": "Serializer class for the PurchaseOrderLineItem model.",
"properties": {
"auto_pricing": {
"default": true,
"description": "Automatically calculate purchase price based on supplier part data",
"type": "boolean"
},
"destination": {
"description": "Where does the Purchaser want this item to be stored?",
"nullable": true,
"type": "integer"
},
"destination_detail": {
"allOf": [
{
"$ref": "#/components/schemas/LocationBrief"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"merge_items": {
"default": true,
"description": "Merge items with the same part, destination and target date into one line item",
"type": "boolean"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Supplier part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"purchase_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"purchase_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Purchase price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"minimum": 0,
"type": "number"
},
"received": {
"default": 0.0,
"format": "double",
"readOnly": true,
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "double",
"readOnly": true,
"type": "number"
}
},
"required": [
"destination_detail",
"order",
"overdue",
"pk",
"quantity",
"received",
"total_price"
],
"type": "object"
}
Response 201 Created
{
"auto_pricing": true,
"destination": 0,
"destination_detail": null,
"link": "string",
"merge_items": true,
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"purchase_price": "string",
"purchase_price_currency": null,
"quantity": 10.12,
"received": 10.12,
"reference": "string",
"target_date": "2022-04-13",
"total_price": 10.12
}
Schema of the response body
{
"description": "Serializer class for the PurchaseOrderLineItem model.",
"properties": {
"auto_pricing": {
"default": true,
"description": "Automatically calculate purchase price based on supplier part data",
"type": "boolean"
},
"destination": {
"description": "Where does the Purchaser want this item to be stored?",
"nullable": true,
"type": "integer"
},
"destination_detail": {
"allOf": [
{
"$ref": "#/components/schemas/LocationBrief"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"merge_items": {
"default": true,
"description": "Merge items with the same part, destination and target date into one line item",
"type": "boolean"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Supplier part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"purchase_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"purchase_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Purchase price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"minimum": 0,
"type": "number"
},
"received": {
"default": 0.0,
"format": "double",
"readOnly": true,
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "double",
"readOnly": true,
"type": "number"
}
},
"required": [
"destination_detail",
"order",
"overdue",
"pk",
"quantity",
"received",
"total_price"
],
"type": "object"
}
DELETE /api/order/po-line/{id}/¶
Description
Detail API endpoint for PurchaseOrderLineItem object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 204 No Content
GET /api/order/po-line/{id}/¶
Description
Detail API endpoint for PurchaseOrderLineItem object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"auto_pricing": true,
"destination": 0,
"destination_detail": null,
"link": "string",
"merge_items": true,
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"purchase_price": "string",
"purchase_price_currency": null,
"quantity": 10.12,
"received": 10.12,
"reference": "string",
"target_date": "2022-04-13",
"total_price": 10.12
}
Schema of the response body
{
"description": "Serializer class for the PurchaseOrderLineItem model.",
"properties": {
"auto_pricing": {
"default": true,
"description": "Automatically calculate purchase price based on supplier part data",
"type": "boolean"
},
"destination": {
"description": "Where does the Purchaser want this item to be stored?",
"nullable": true,
"type": "integer"
},
"destination_detail": {
"allOf": [
{
"$ref": "#/components/schemas/LocationBrief"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"merge_items": {
"default": true,
"description": "Merge items with the same part, destination and target date into one line item",
"type": "boolean"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Supplier part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"purchase_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"purchase_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Purchase price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"minimum": 0,
"type": "number"
},
"received": {
"default": 0.0,
"format": "double",
"readOnly": true,
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "double",
"readOnly": true,
"type": "number"
}
},
"required": [
"destination_detail",
"order",
"overdue",
"pk",
"quantity",
"received",
"total_price"
],
"type": "object"
}
PATCH /api/order/po-line/{id}/¶
Description
Detail API endpoint for PurchaseOrderLineItem object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"auto_pricing": true,
"destination": 0,
"destination_detail": null,
"link": "string",
"merge_items": true,
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"purchase_price": "string",
"purchase_price_currency": null,
"quantity": 10.12,
"received": 10.12,
"reference": "string",
"target_date": "2022-04-13",
"total_price": 10.12
}
Schema of the request body
{
"description": "Serializer class for the PurchaseOrderLineItem model.",
"properties": {
"auto_pricing": {
"default": true,
"description": "Automatically calculate purchase price based on supplier part data",
"type": "boolean"
},
"destination": {
"description": "Where does the Purchaser want this item to be stored?",
"nullable": true,
"type": "integer"
},
"destination_detail": {
"allOf": [
{
"$ref": "#/components/schemas/LocationBrief"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"merge_items": {
"default": true,
"description": "Merge items with the same part, destination and target date into one line item",
"type": "boolean"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Supplier part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"purchase_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"purchase_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Purchase price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"minimum": 0,
"type": "number"
},
"received": {
"default": 0.0,
"format": "double",
"readOnly": true,
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "double",
"readOnly": true,
"type": "number"
}
},
"type": "object"
}
{
"auto_pricing": true,
"destination": 0,
"destination_detail": null,
"link": "string",
"merge_items": true,
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"purchase_price": "string",
"purchase_price_currency": null,
"quantity": 10.12,
"received": 10.12,
"reference": "string",
"target_date": "2022-04-13",
"total_price": 10.12
}
Schema of the request body
{
"description": "Serializer class for the PurchaseOrderLineItem model.",
"properties": {
"auto_pricing": {
"default": true,
"description": "Automatically calculate purchase price based on supplier part data",
"type": "boolean"
},
"destination": {
"description": "Where does the Purchaser want this item to be stored?",
"nullable": true,
"type": "integer"
},
"destination_detail": {
"allOf": [
{
"$ref": "#/components/schemas/LocationBrief"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"merge_items": {
"default": true,
"description": "Merge items with the same part, destination and target date into one line item",
"type": "boolean"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Supplier part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"purchase_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"purchase_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Purchase price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"minimum": 0,
"type": "number"
},
"received": {
"default": 0.0,
"format": "double",
"readOnly": true,
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "double",
"readOnly": true,
"type": "number"
}
},
"type": "object"
}
{
"auto_pricing": true,
"destination": 0,
"destination_detail": null,
"link": "string",
"merge_items": true,
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"purchase_price": "string",
"purchase_price_currency": null,
"quantity": 10.12,
"received": 10.12,
"reference": "string",
"target_date": "2022-04-13",
"total_price": 10.12
}
Schema of the request body
{
"description": "Serializer class for the PurchaseOrderLineItem model.",
"properties": {
"auto_pricing": {
"default": true,
"description": "Automatically calculate purchase price based on supplier part data",
"type": "boolean"
},
"destination": {
"description": "Where does the Purchaser want this item to be stored?",
"nullable": true,
"type": "integer"
},
"destination_detail": {
"allOf": [
{
"$ref": "#/components/schemas/LocationBrief"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"merge_items": {
"default": true,
"description": "Merge items with the same part, destination and target date into one line item",
"type": "boolean"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Supplier part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"purchase_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"purchase_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Purchase price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"minimum": 0,
"type": "number"
},
"received": {
"default": 0.0,
"format": "double",
"readOnly": true,
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "double",
"readOnly": true,
"type": "number"
}
},
"type": "object"
}
Response 200 OK
{
"auto_pricing": true,
"destination": 0,
"destination_detail": null,
"link": "string",
"merge_items": true,
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"purchase_price": "string",
"purchase_price_currency": null,
"quantity": 10.12,
"received": 10.12,
"reference": "string",
"target_date": "2022-04-13",
"total_price": 10.12
}
Schema of the response body
{
"description": "Serializer class for the PurchaseOrderLineItem model.",
"properties": {
"auto_pricing": {
"default": true,
"description": "Automatically calculate purchase price based on supplier part data",
"type": "boolean"
},
"destination": {
"description": "Where does the Purchaser want this item to be stored?",
"nullable": true,
"type": "integer"
},
"destination_detail": {
"allOf": [
{
"$ref": "#/components/schemas/LocationBrief"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"merge_items": {
"default": true,
"description": "Merge items with the same part, destination and target date into one line item",
"type": "boolean"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Supplier part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"purchase_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"purchase_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Purchase price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"minimum": 0,
"type": "number"
},
"received": {
"default": 0.0,
"format": "double",
"readOnly": true,
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "double",
"readOnly": true,
"type": "number"
}
},
"required": [
"destination_detail",
"order",
"overdue",
"pk",
"quantity",
"received",
"total_price"
],
"type": "object"
}
PUT /api/order/po-line/{id}/¶
Description
Detail API endpoint for PurchaseOrderLineItem object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"auto_pricing": true,
"destination": 0,
"destination_detail": null,
"link": "string",
"merge_items": true,
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"purchase_price": "string",
"purchase_price_currency": null,
"quantity": 10.12,
"received": 10.12,
"reference": "string",
"target_date": "2022-04-13",
"total_price": 10.12
}
Schema of the request body
{
"description": "Serializer class for the PurchaseOrderLineItem model.",
"properties": {
"auto_pricing": {
"default": true,
"description": "Automatically calculate purchase price based on supplier part data",
"type": "boolean"
},
"destination": {
"description": "Where does the Purchaser want this item to be stored?",
"nullable": true,
"type": "integer"
},
"destination_detail": {
"allOf": [
{
"$ref": "#/components/schemas/LocationBrief"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"merge_items": {
"default": true,
"description": "Merge items with the same part, destination and target date into one line item",
"type": "boolean"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Supplier part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"purchase_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"purchase_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Purchase price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"minimum": 0,
"type": "number"
},
"received": {
"default": 0.0,
"format": "double",
"readOnly": true,
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "double",
"readOnly": true,
"type": "number"
}
},
"required": [
"destination_detail",
"order",
"overdue",
"pk",
"quantity",
"received",
"total_price"
],
"type": "object"
}
{
"auto_pricing": true,
"destination": 0,
"destination_detail": null,
"link": "string",
"merge_items": true,
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"purchase_price": "string",
"purchase_price_currency": null,
"quantity": 10.12,
"received": 10.12,
"reference": "string",
"target_date": "2022-04-13",
"total_price": 10.12
}
Schema of the request body
{
"description": "Serializer class for the PurchaseOrderLineItem model.",
"properties": {
"auto_pricing": {
"default": true,
"description": "Automatically calculate purchase price based on supplier part data",
"type": "boolean"
},
"destination": {
"description": "Where does the Purchaser want this item to be stored?",
"nullable": true,
"type": "integer"
},
"destination_detail": {
"allOf": [
{
"$ref": "#/components/schemas/LocationBrief"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"merge_items": {
"default": true,
"description": "Merge items with the same part, destination and target date into one line item",
"type": "boolean"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Supplier part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"purchase_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"purchase_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Purchase price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"minimum": 0,
"type": "number"
},
"received": {
"default": 0.0,
"format": "double",
"readOnly": true,
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "double",
"readOnly": true,
"type": "number"
}
},
"required": [
"destination_detail",
"order",
"overdue",
"pk",
"quantity",
"received",
"total_price"
],
"type": "object"
}
{
"auto_pricing": true,
"destination": 0,
"destination_detail": null,
"link": "string",
"merge_items": true,
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"purchase_price": "string",
"purchase_price_currency": null,
"quantity": 10.12,
"received": 10.12,
"reference": "string",
"target_date": "2022-04-13",
"total_price": 10.12
}
Schema of the request body
{
"description": "Serializer class for the PurchaseOrderLineItem model.",
"properties": {
"auto_pricing": {
"default": true,
"description": "Automatically calculate purchase price based on supplier part data",
"type": "boolean"
},
"destination": {
"description": "Where does the Purchaser want this item to be stored?",
"nullable": true,
"type": "integer"
},
"destination_detail": {
"allOf": [
{
"$ref": "#/components/schemas/LocationBrief"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"merge_items": {
"default": true,
"description": "Merge items with the same part, destination and target date into one line item",
"type": "boolean"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Supplier part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"purchase_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"purchase_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Purchase price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"minimum": 0,
"type": "number"
},
"received": {
"default": 0.0,
"format": "double",
"readOnly": true,
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "double",
"readOnly": true,
"type": "number"
}
},
"required": [
"destination_detail",
"order",
"overdue",
"pk",
"quantity",
"received",
"total_price"
],
"type": "object"
}
Response 200 OK
{
"auto_pricing": true,
"destination": 0,
"destination_detail": null,
"link": "string",
"merge_items": true,
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"purchase_price": "string",
"purchase_price_currency": null,
"quantity": 10.12,
"received": 10.12,
"reference": "string",
"target_date": "2022-04-13",
"total_price": 10.12
}
Schema of the response body
{
"description": "Serializer class for the PurchaseOrderLineItem model.",
"properties": {
"auto_pricing": {
"default": true,
"description": "Automatically calculate purchase price based on supplier part data",
"type": "boolean"
},
"destination": {
"description": "Where does the Purchaser want this item to be stored?",
"nullable": true,
"type": "integer"
},
"destination_detail": {
"allOf": [
{
"$ref": "#/components/schemas/LocationBrief"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"merge_items": {
"default": true,
"description": "Merge items with the same part, destination and target date into one line item",
"type": "boolean"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Purchase Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Supplier part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"purchase_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"purchase_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Purchase price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"minimum": 0,
"type": "number"
},
"received": {
"default": 0.0,
"format": "double",
"readOnly": true,
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "double",
"readOnly": true,
"type": "number"
}
},
"required": [
"destination_detail",
"order",
"overdue",
"pk",
"quantity",
"received",
"total_price"
],
"type": "object"
}
GET /api/order/po-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PATCH /api/order/po-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PUT /api/order/po-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
GET /api/order/po/¶
Description
Generic handler for a download request.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
assigned_to |
query | integer | No | ||
assigned_to_me |
query | boolean | No | assigned_to_me | |
has_project_code |
query | boolean | No | has_project_code | |
limit |
query | integer | No | Number of results to return per page. | |
offset |
query | integer | No | The initial index from which to return the results. | |
ordering |
query | string | No | Which field to use when ordering the results. | |
outstanding |
query | boolean | No | outstanding | |
overdue |
query | boolean | No | overdue | |
project_code |
query | integer | No | ||
reference |
query | string | No | Filter by exact reference | |
search |
query | string | No | A search term. | |
status |
query | integer | No | Order Status | |
supplier |
query | integer | No |
Response 200 OK
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"complete_date": "2022-04-13",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"description": "string",
"issue_date": "2022-04-13",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"supplier": 0,
"supplier_reference": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
]
}
Schema of the response body
{
"properties": {
"count": {
"example": 123,
"type": "integer"
},
"next": {
"example": "http://api.example.org/accounts/?offset=400&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"previous": {
"example": "http://api.example.org/accounts/?offset=200&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"results": {
"items": {
"$ref": "#/components/schemas/PurchaseOrder"
},
"type": "array"
}
},
"type": "object"
}
POST /api/order/po/¶
Description
API endpoint for accessing a list of PurchaseOrder objects.
- GET: Return list of PurchaseOrder objects (with filters)
- POST: Create a new PurchaseOrder object
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Request body
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"complete_date": "2022-04-13",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"description": "string",
"issue_date": "2022-04-13",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"supplier": 0,
"supplier_reference": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrder object.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"complete_date": {
"description": "Date order was completed",
"format": "date",
"nullable": true,
"readOnly": true,
"title": "Completion Date",
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"issue_date": {
"description": "Date order was issued",
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"supplier": {
"description": "Company from which the items are being ordered",
"nullable": true,
"type": "integer"
},
"supplier_reference": {
"description": "Supplier order reference code",
"maxLength": 64,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"complete_date",
"completed_lines",
"contact_detail",
"issue_date",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"supplier",
"total_price"
],
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"complete_date": "2022-04-13",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"description": "string",
"issue_date": "2022-04-13",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"supplier": 0,
"supplier_reference": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrder object.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"complete_date": {
"description": "Date order was completed",
"format": "date",
"nullable": true,
"readOnly": true,
"title": "Completion Date",
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"issue_date": {
"description": "Date order was issued",
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"supplier": {
"description": "Company from which the items are being ordered",
"nullable": true,
"type": "integer"
},
"supplier_reference": {
"description": "Supplier order reference code",
"maxLength": 64,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"complete_date",
"completed_lines",
"contact_detail",
"issue_date",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"supplier",
"total_price"
],
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"complete_date": "2022-04-13",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"description": "string",
"issue_date": "2022-04-13",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"supplier": 0,
"supplier_reference": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrder object.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"complete_date": {
"description": "Date order was completed",
"format": "date",
"nullable": true,
"readOnly": true,
"title": "Completion Date",
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"issue_date": {
"description": "Date order was issued",
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"supplier": {
"description": "Company from which the items are being ordered",
"nullable": true,
"type": "integer"
},
"supplier_reference": {
"description": "Supplier order reference code",
"maxLength": 64,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"complete_date",
"completed_lines",
"contact_detail",
"issue_date",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"supplier",
"total_price"
],
"type": "object"
}
Response 201 Created
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"complete_date": "2022-04-13",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"description": "string",
"issue_date": "2022-04-13",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"supplier": 0,
"supplier_reference": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the response body
{
"description": "Serializer for a PurchaseOrder object.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"complete_date": {
"description": "Date order was completed",
"format": "date",
"nullable": true,
"readOnly": true,
"title": "Completion Date",
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"issue_date": {
"description": "Date order was issued",
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"supplier": {
"description": "Company from which the items are being ordered",
"nullable": true,
"type": "integer"
},
"supplier_reference": {
"description": "Supplier order reference code",
"maxLength": 64,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"complete_date",
"completed_lines",
"contact_detail",
"issue_date",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"supplier",
"total_price"
],
"type": "object"
}
DELETE /api/order/po/attachment/¶
Description
Perform a DELETE operation against this list endpoint.
We expect a list of primary-key (ID) values to be supplied as a JSON object, e.g. { items: [4, 8, 15, 16, 23, 42] }
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Response 204 No Content
GET /api/order/po/attachment/¶
Description
API endpoint for listing, creating and bulk deleting) a PurchaseOrderAttachment (file upload).
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
limit |
query | integer | No | Number of results to return per page. | |
offset |
query | integer | No | The initial index from which to return the results. | |
order |
query | integer | No | ||
ordering |
query | string | No | Which field to use when ordering the results. | |
search |
query | string | No | A search term. |
Response 200 OK
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
]
}
Schema of the response body
{
"properties": {
"count": {
"example": 123,
"type": "integer"
},
"next": {
"example": "http://api.example.org/accounts/?offset=400&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"previous": {
"example": "http://api.example.org/accounts/?offset=200&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"results": {
"items": {
"$ref": "#/components/schemas/PurchaseOrderAttachment"
},
"type": "array"
}
},
"type": "object"
}
POST /api/order/po/attachment/¶
Description
API endpoint for listing, creating and bulk deleting) a PurchaseOrderAttachment (file upload).
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Request body
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the PurchaseOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the PurchaseOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the PurchaseOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
Response 201 Created
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the response body
{
"description": "Serializers for the PurchaseOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
DELETE /api/order/po/attachment/{id}/¶
Description
Detail endpoint for a PurchaseOrderAttachment.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 204 No Content
GET /api/order/po/attachment/{id}/¶
Description
Detail endpoint for a PurchaseOrderAttachment.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the response body
{
"description": "Serializers for the PurchaseOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
PATCH /api/order/po/attachment/{id}/¶
Description
Detail endpoint for a PurchaseOrderAttachment.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the PurchaseOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the PurchaseOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the PurchaseOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"type": "object"
}
Response 200 OK
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the response body
{
"description": "Serializers for the PurchaseOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
PUT /api/order/po/attachment/{id}/¶
Description
Detail endpoint for a PurchaseOrderAttachment.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the PurchaseOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the PurchaseOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the PurchaseOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
Response 200 OK
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the response body
{
"description": "Serializers for the PurchaseOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
GET /api/order/po/status/¶
Description
Retrieve information about a specific status code
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Response 200 OK
Response 400 Bad Request
DELETE /api/order/po/{id}/¶
Description
API endpoint for detail view of a PurchaseOrder object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 204 No Content
GET /api/order/po/{id}/¶
Description
API endpoint for detail view of a PurchaseOrder object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"complete_date": "2022-04-13",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"description": "string",
"issue_date": "2022-04-13",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"supplier": 0,
"supplier_reference": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the response body
{
"description": "Serializer for a PurchaseOrder object.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"complete_date": {
"description": "Date order was completed",
"format": "date",
"nullable": true,
"readOnly": true,
"title": "Completion Date",
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"issue_date": {
"description": "Date order was issued",
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"supplier": {
"description": "Company from which the items are being ordered",
"nullable": true,
"type": "integer"
},
"supplier_reference": {
"description": "Supplier order reference code",
"maxLength": 64,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"complete_date",
"completed_lines",
"contact_detail",
"issue_date",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"supplier",
"total_price"
],
"type": "object"
}
PATCH /api/order/po/{id}/¶
Description
API endpoint for detail view of a PurchaseOrder object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"complete_date": "2022-04-13",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"description": "string",
"issue_date": "2022-04-13",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"supplier": 0,
"supplier_reference": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrder object.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"complete_date": {
"description": "Date order was completed",
"format": "date",
"nullable": true,
"readOnly": true,
"title": "Completion Date",
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"issue_date": {
"description": "Date order was issued",
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"supplier": {
"description": "Company from which the items are being ordered",
"nullable": true,
"type": "integer"
},
"supplier_reference": {
"description": "Supplier order reference code",
"maxLength": 64,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"complete_date": "2022-04-13",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"description": "string",
"issue_date": "2022-04-13",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"supplier": 0,
"supplier_reference": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrder object.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"complete_date": {
"description": "Date order was completed",
"format": "date",
"nullable": true,
"readOnly": true,
"title": "Completion Date",
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"issue_date": {
"description": "Date order was issued",
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"supplier": {
"description": "Company from which the items are being ordered",
"nullable": true,
"type": "integer"
},
"supplier_reference": {
"description": "Supplier order reference code",
"maxLength": 64,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"complete_date": "2022-04-13",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"description": "string",
"issue_date": "2022-04-13",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"supplier": 0,
"supplier_reference": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrder object.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"complete_date": {
"description": "Date order was completed",
"format": "date",
"nullable": true,
"readOnly": true,
"title": "Completion Date",
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"issue_date": {
"description": "Date order was issued",
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"supplier": {
"description": "Company from which the items are being ordered",
"nullable": true,
"type": "integer"
},
"supplier_reference": {
"description": "Supplier order reference code",
"maxLength": 64,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
Response 200 OK
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"complete_date": "2022-04-13",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"description": "string",
"issue_date": "2022-04-13",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"supplier": 0,
"supplier_reference": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the response body
{
"description": "Serializer for a PurchaseOrder object.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"complete_date": {
"description": "Date order was completed",
"format": "date",
"nullable": true,
"readOnly": true,
"title": "Completion Date",
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"issue_date": {
"description": "Date order was issued",
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"supplier": {
"description": "Company from which the items are being ordered",
"nullable": true,
"type": "integer"
},
"supplier_reference": {
"description": "Supplier order reference code",
"maxLength": 64,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"complete_date",
"completed_lines",
"contact_detail",
"issue_date",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"supplier",
"total_price"
],
"type": "object"
}
PUT /api/order/po/{id}/¶
Description
API endpoint for detail view of a PurchaseOrder object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"complete_date": "2022-04-13",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"description": "string",
"issue_date": "2022-04-13",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"supplier": 0,
"supplier_reference": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrder object.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"complete_date": {
"description": "Date order was completed",
"format": "date",
"nullable": true,
"readOnly": true,
"title": "Completion Date",
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"issue_date": {
"description": "Date order was issued",
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"supplier": {
"description": "Company from which the items are being ordered",
"nullable": true,
"type": "integer"
},
"supplier_reference": {
"description": "Supplier order reference code",
"maxLength": 64,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"complete_date",
"completed_lines",
"contact_detail",
"issue_date",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"supplier",
"total_price"
],
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"complete_date": "2022-04-13",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"description": "string",
"issue_date": "2022-04-13",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"supplier": 0,
"supplier_reference": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrder object.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"complete_date": {
"description": "Date order was completed",
"format": "date",
"nullable": true,
"readOnly": true,
"title": "Completion Date",
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"issue_date": {
"description": "Date order was issued",
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"supplier": {
"description": "Company from which the items are being ordered",
"nullable": true,
"type": "integer"
},
"supplier_reference": {
"description": "Supplier order reference code",
"maxLength": 64,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"complete_date",
"completed_lines",
"contact_detail",
"issue_date",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"supplier",
"total_price"
],
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"complete_date": "2022-04-13",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"description": "string",
"issue_date": "2022-04-13",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"supplier": 0,
"supplier_reference": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for a PurchaseOrder object.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"complete_date": {
"description": "Date order was completed",
"format": "date",
"nullable": true,
"readOnly": true,
"title": "Completion Date",
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"issue_date": {
"description": "Date order was issued",
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"supplier": {
"description": "Company from which the items are being ordered",
"nullable": true,
"type": "integer"
},
"supplier_reference": {
"description": "Supplier order reference code",
"maxLength": 64,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"complete_date",
"completed_lines",
"contact_detail",
"issue_date",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"supplier",
"total_price"
],
"type": "object"
}
Response 200 OK
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"complete_date": "2022-04-13",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"description": "string",
"issue_date": "2022-04-13",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"supplier": 0,
"supplier_reference": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the response body
{
"description": "Serializer for a PurchaseOrder object.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"complete_date": {
"description": "Date order was completed",
"format": "date",
"nullable": true,
"readOnly": true,
"title": "Completion Date",
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"issue_date": {
"description": "Date order was issued",
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"supplier": {
"description": "Company from which the items are being ordered",
"nullable": true,
"type": "integer"
},
"supplier_reference": {
"description": "Supplier order reference code",
"maxLength": 64,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"complete_date",
"completed_lines",
"contact_detail",
"issue_date",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"supplier",
"total_price"
],
"type": "object"
}
POST /api/order/po/{id}/cancel/¶
Description
API endpoint to 'cancel' a purchase order.
The purchase order must be in a state which can be cancelled
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 201 Created
POST /api/order/po/{id}/complete/¶
Description
API endpoint to 'complete' a purchase order.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"accept_incomplete": true
}
Schema of the request body
{
"description": "Serializer for completing a purchase order.",
"properties": {
"accept_incomplete": {
"default": false,
"description": "Allow order to be closed with incomplete line items",
"type": "boolean"
}
},
"type": "object"
}
{
"accept_incomplete": true
}
Schema of the request body
{
"description": "Serializer for completing a purchase order.",
"properties": {
"accept_incomplete": {
"default": false,
"description": "Allow order to be closed with incomplete line items",
"type": "boolean"
}
},
"type": "object"
}
{
"accept_incomplete": true
}
Schema of the request body
{
"description": "Serializer for completing a purchase order.",
"properties": {
"accept_incomplete": {
"default": false,
"description": "Allow order to be closed with incomplete line items",
"type": "boolean"
}
},
"type": "object"
}
Response 201 Created
{
"accept_incomplete": true
}
Schema of the response body
{
"description": "Serializer for completing a purchase order.",
"properties": {
"accept_incomplete": {
"default": false,
"description": "Allow order to be closed with incomplete line items",
"type": "boolean"
}
},
"type": "object"
}
POST /api/order/po/{id}/issue/¶
Description
API endpoint to 'issue' (place) a PurchaseOrder.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 201 Created
GET /api/order/po/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PATCH /api/order/po/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PUT /api/order/po/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
POST /api/order/po/{id}/receive/¶
Description
API endpoint to receive stock items against a PurchaseOrder.
- The purchase order is specified in the URL.
- Items to receive are specified as a list called "items" with the following
options:
- line_item: pk of the PO Line item
- supplier_part: pk value of the supplier part
- quantity: quantity to receive
- status: stock item status
- location: destination for stock item (optional)
- batch_code: the batch code for this stock item
- serial_numbers: serial numbers for this stock item
- A global location must also be specified. This is used when no locations are specified for items, and no location is given in the PO line item
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"items": [
{
"barcode": "string",
"batch_code": "string",
"line_item": 0,
"location": 0,
"quantity": "string",
"serial_numbers": "string",
"status": null
}
],
"location": 0
}
Schema of the request body
{
"description": "Serializer for receiving items against a PurchaseOrder.",
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/PurchaseOrderLineItemReceive"
},
"type": "array"
},
"location": {
"description": "Select destination location for received items",
"nullable": true,
"type": "integer"
}
},
"required": [
"items",
"location"
],
"type": "object"
}
{
"items": [
{
"barcode": "string",
"batch_code": "string",
"line_item": 0,
"location": 0,
"quantity": "string",
"serial_numbers": "string",
"status": null
}
],
"location": 0
}
Schema of the request body
{
"description": "Serializer for receiving items against a PurchaseOrder.",
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/PurchaseOrderLineItemReceive"
},
"type": "array"
},
"location": {
"description": "Select destination location for received items",
"nullable": true,
"type": "integer"
}
},
"required": [
"items",
"location"
],
"type": "object"
}
{
"items": [
{
"barcode": "string",
"batch_code": "string",
"line_item": 0,
"location": 0,
"quantity": "string",
"serial_numbers": "string",
"status": null
}
],
"location": 0
}
Schema of the request body
{
"description": "Serializer for receiving items against a PurchaseOrder.",
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/PurchaseOrderLineItemReceive"
},
"type": "array"
},
"location": {
"description": "Select destination location for received items",
"nullable": true,
"type": "integer"
}
},
"required": [
"items",
"location"
],
"type": "object"
}
Response 201 Created
{
"items": [
{
"barcode": "string",
"batch_code": "string",
"line_item": 0,
"location": 0,
"quantity": "string",
"serial_numbers": "string",
"status": null
}
],
"location": 0
}
Schema of the response body
{
"description": "Serializer for receiving items against a PurchaseOrder.",
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/PurchaseOrderLineItemReceive"
},
"type": "array"
},
"location": {
"description": "Select destination location for received items",
"nullable": true,
"type": "integer"
}
},
"required": [
"items",
"location"
],
"type": "object"
}
GET /api/order/ro-extra-line/¶
Description
Generic handler for a download request.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
limit |
query | integer | No | Number of results to return per page. | |
offset |
query | integer | No | The initial index from which to return the results. | |
order |
query | integer | No | ||
ordering |
query | string | No | Which field to use when ordering the results. | |
search |
query | string | No | A search term. |
Response 200 OK
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
]
}
Schema of the response body
{
"properties": {
"count": {
"example": 123,
"type": "integer"
},
"next": {
"example": "http://api.example.org/accounts/?offset=400&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"previous": {
"example": "http://api.example.org/accounts/?offset=200&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"results": {
"items": {
"$ref": "#/components/schemas/ReturnOrderExtraLine"
},
"type": "array"
}
},
"type": "object"
}
POST /api/order/ro-extra-line/¶
Description
API endpoint for accessing a list of ReturnOrderExtraLine objects.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Request body
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
Response 201 Created
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the response body
{
"description": "Serializer for a ReturnOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
DELETE /api/order/ro-extra-line/{id}/¶
Description
API endpoint for detail view of a ReturnOrderExtraLine object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 204 No Content
GET /api/order/ro-extra-line/{id}/¶
Description
API endpoint for detail view of a ReturnOrderExtraLine object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the response body
{
"description": "Serializer for a ReturnOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
PATCH /api/order/ro-extra-line/{id}/¶
Description
API endpoint for detail view of a ReturnOrderExtraLine object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
Response 200 OK
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the response body
{
"description": "Serializer for a ReturnOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
PUT /api/order/ro-extra-line/{id}/¶
Description
API endpoint for detail view of a ReturnOrderExtraLine object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
Response 200 OK
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the response body
{
"description": "Serializer for a ReturnOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
GET /api/order/ro-extra-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PATCH /api/order/ro-extra-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PUT /api/order/ro-extra-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
GET /api/order/ro-line/¶
Description
Generic handler for a download request.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
has_pricing |
query | boolean | No | Has Pricing | |
item |
query | integer | No | ||
limit |
query | integer | No | Number of results to return per page. | |
offset |
query | integer | No | The initial index from which to return the results. | |
order |
query | integer | No | ||
order_status |
query | integer | No | Order Status | |
ordering |
query | string | No | Which field to use when ordering the results. | |
outcome |
query | integer | No | outcome | |
received |
query | boolean | No | received | |
search |
query | string | No | A search term. |
Response 200 OK
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"item": 0,
"item_detail": null,
"link": "string",
"notes": "string",
"order": 0,
"outcome": null,
"pk": 0,
"price": "string",
"price_currency": null,
"received_date": "2022-04-13",
"reference": "string",
"target_date": "2022-04-13"
}
]
}
Schema of the response body
{
"properties": {
"count": {
"example": 123,
"type": "integer"
},
"next": {
"example": "http://api.example.org/accounts/?offset=400&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"previous": {
"example": "http://api.example.org/accounts/?offset=200&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"results": {
"items": {
"$ref": "#/components/schemas/ReturnOrderLineItem"
},
"type": "array"
}
},
"type": "object"
}
POST /api/order/ro-line/¶
Description
API endpoint for accessing a list of ReturnOrderLineItemList objects.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Request body
{
"item": 0,
"item_detail": null,
"link": "string",
"notes": "string",
"order": 0,
"outcome": null,
"pk": 0,
"price": "string",
"price_currency": null,
"received_date": "2022-04-13",
"reference": "string",
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderLineItem object.",
"properties": {
"item": {
"description": "Select item to return from customer",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"outcome": {
"allOf": [
{
"$ref": "#/components/schemas/OutcomeEnum"
}
],
"description": "Outcome for this line item\n\n* `10` - Pending\n* `20` - Return\n* `30` - Repair\n* `40` - Replace\n* `50` - Refund\n* `60` - Reject"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Line price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"received_date": {
"description": "The date this this return item was received",
"format": "date",
"nullable": true,
"type": "string"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"item",
"item_detail",
"order",
"pk"
],
"type": "object"
}
{
"item": 0,
"item_detail": null,
"link": "string",
"notes": "string",
"order": 0,
"outcome": null,
"pk": 0,
"price": "string",
"price_currency": null,
"received_date": "2022-04-13",
"reference": "string",
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderLineItem object.",
"properties": {
"item": {
"description": "Select item to return from customer",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"outcome": {
"allOf": [
{
"$ref": "#/components/schemas/OutcomeEnum"
}
],
"description": "Outcome for this line item\n\n* `10` - Pending\n* `20` - Return\n* `30` - Repair\n* `40` - Replace\n* `50` - Refund\n* `60` - Reject"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Line price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"received_date": {
"description": "The date this this return item was received",
"format": "date",
"nullable": true,
"type": "string"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"item",
"item_detail",
"order",
"pk"
],
"type": "object"
}
{
"item": 0,
"item_detail": null,
"link": "string",
"notes": "string",
"order": 0,
"outcome": null,
"pk": 0,
"price": "string",
"price_currency": null,
"received_date": "2022-04-13",
"reference": "string",
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderLineItem object.",
"properties": {
"item": {
"description": "Select item to return from customer",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"outcome": {
"allOf": [
{
"$ref": "#/components/schemas/OutcomeEnum"
}
],
"description": "Outcome for this line item\n\n* `10` - Pending\n* `20` - Return\n* `30` - Repair\n* `40` - Replace\n* `50` - Refund\n* `60` - Reject"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Line price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"received_date": {
"description": "The date this this return item was received",
"format": "date",
"nullable": true,
"type": "string"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"item",
"item_detail",
"order",
"pk"
],
"type": "object"
}
Response 201 Created
{
"item": 0,
"item_detail": null,
"link": "string",
"notes": "string",
"order": 0,
"outcome": null,
"pk": 0,
"price": "string",
"price_currency": null,
"received_date": "2022-04-13",
"reference": "string",
"target_date": "2022-04-13"
}
Schema of the response body
{
"description": "Serializer for a ReturnOrderLineItem object.",
"properties": {
"item": {
"description": "Select item to return from customer",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"outcome": {
"allOf": [
{
"$ref": "#/components/schemas/OutcomeEnum"
}
],
"description": "Outcome for this line item\n\n* `10` - Pending\n* `20` - Return\n* `30` - Repair\n* `40` - Replace\n* `50` - Refund\n* `60` - Reject"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Line price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"received_date": {
"description": "The date this this return item was received",
"format": "date",
"nullable": true,
"type": "string"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"item",
"item_detail",
"order",
"pk"
],
"type": "object"
}
GET /api/order/ro-line/status/¶
Description
Retrieve information about a specific status code
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Response 200 OK
Response 400 Bad Request
DELETE /api/order/ro-line/{id}/¶
Description
API endpoint for detail view of a ReturnOrderLineItem object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 204 No Content
GET /api/order/ro-line/{id}/¶
Description
API endpoint for detail view of a ReturnOrderLineItem object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"item": 0,
"item_detail": null,
"link": "string",
"notes": "string",
"order": 0,
"outcome": null,
"pk": 0,
"price": "string",
"price_currency": null,
"received_date": "2022-04-13",
"reference": "string",
"target_date": "2022-04-13"
}
Schema of the response body
{
"description": "Serializer for a ReturnOrderLineItem object.",
"properties": {
"item": {
"description": "Select item to return from customer",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"outcome": {
"allOf": [
{
"$ref": "#/components/schemas/OutcomeEnum"
}
],
"description": "Outcome for this line item\n\n* `10` - Pending\n* `20` - Return\n* `30` - Repair\n* `40` - Replace\n* `50` - Refund\n* `60` - Reject"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Line price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"received_date": {
"description": "The date this this return item was received",
"format": "date",
"nullable": true,
"type": "string"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"item",
"item_detail",
"order",
"pk"
],
"type": "object"
}
PATCH /api/order/ro-line/{id}/¶
Description
API endpoint for detail view of a ReturnOrderLineItem object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"item": 0,
"item_detail": null,
"link": "string",
"notes": "string",
"order": 0,
"outcome": null,
"pk": 0,
"price": "string",
"price_currency": null,
"received_date": "2022-04-13",
"reference": "string",
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderLineItem object.",
"properties": {
"item": {
"description": "Select item to return from customer",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"outcome": {
"allOf": [
{
"$ref": "#/components/schemas/OutcomeEnum"
}
],
"description": "Outcome for this line item\n\n* `10` - Pending\n* `20` - Return\n* `30` - Repair\n* `40` - Replace\n* `50` - Refund\n* `60` - Reject"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Line price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"received_date": {
"description": "The date this this return item was received",
"format": "date",
"nullable": true,
"type": "string"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"type": "object"
}
{
"item": 0,
"item_detail": null,
"link": "string",
"notes": "string",
"order": 0,
"outcome": null,
"pk": 0,
"price": "string",
"price_currency": null,
"received_date": "2022-04-13",
"reference": "string",
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderLineItem object.",
"properties": {
"item": {
"description": "Select item to return from customer",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"outcome": {
"allOf": [
{
"$ref": "#/components/schemas/OutcomeEnum"
}
],
"description": "Outcome for this line item\n\n* `10` - Pending\n* `20` - Return\n* `30` - Repair\n* `40` - Replace\n* `50` - Refund\n* `60` - Reject"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Line price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"received_date": {
"description": "The date this this return item was received",
"format": "date",
"nullable": true,
"type": "string"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"type": "object"
}
{
"item": 0,
"item_detail": null,
"link": "string",
"notes": "string",
"order": 0,
"outcome": null,
"pk": 0,
"price": "string",
"price_currency": null,
"received_date": "2022-04-13",
"reference": "string",
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderLineItem object.",
"properties": {
"item": {
"description": "Select item to return from customer",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"outcome": {
"allOf": [
{
"$ref": "#/components/schemas/OutcomeEnum"
}
],
"description": "Outcome for this line item\n\n* `10` - Pending\n* `20` - Return\n* `30` - Repair\n* `40` - Replace\n* `50` - Refund\n* `60` - Reject"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Line price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"received_date": {
"description": "The date this this return item was received",
"format": "date",
"nullable": true,
"type": "string"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"type": "object"
}
Response 200 OK
{
"item": 0,
"item_detail": null,
"link": "string",
"notes": "string",
"order": 0,
"outcome": null,
"pk": 0,
"price": "string",
"price_currency": null,
"received_date": "2022-04-13",
"reference": "string",
"target_date": "2022-04-13"
}
Schema of the response body
{
"description": "Serializer for a ReturnOrderLineItem object.",
"properties": {
"item": {
"description": "Select item to return from customer",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"outcome": {
"allOf": [
{
"$ref": "#/components/schemas/OutcomeEnum"
}
],
"description": "Outcome for this line item\n\n* `10` - Pending\n* `20` - Return\n* `30` - Repair\n* `40` - Replace\n* `50` - Refund\n* `60` - Reject"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Line price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"received_date": {
"description": "The date this this return item was received",
"format": "date",
"nullable": true,
"type": "string"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"item",
"item_detail",
"order",
"pk"
],
"type": "object"
}
PUT /api/order/ro-line/{id}/¶
Description
API endpoint for detail view of a ReturnOrderLineItem object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"item": 0,
"item_detail": null,
"link": "string",
"notes": "string",
"order": 0,
"outcome": null,
"pk": 0,
"price": "string",
"price_currency": null,
"received_date": "2022-04-13",
"reference": "string",
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderLineItem object.",
"properties": {
"item": {
"description": "Select item to return from customer",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"outcome": {
"allOf": [
{
"$ref": "#/components/schemas/OutcomeEnum"
}
],
"description": "Outcome for this line item\n\n* `10` - Pending\n* `20` - Return\n* `30` - Repair\n* `40` - Replace\n* `50` - Refund\n* `60` - Reject"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Line price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"received_date": {
"description": "The date this this return item was received",
"format": "date",
"nullable": true,
"type": "string"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"item",
"item_detail",
"order",
"pk"
],
"type": "object"
}
{
"item": 0,
"item_detail": null,
"link": "string",
"notes": "string",
"order": 0,
"outcome": null,
"pk": 0,
"price": "string",
"price_currency": null,
"received_date": "2022-04-13",
"reference": "string",
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderLineItem object.",
"properties": {
"item": {
"description": "Select item to return from customer",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"outcome": {
"allOf": [
{
"$ref": "#/components/schemas/OutcomeEnum"
}
],
"description": "Outcome for this line item\n\n* `10` - Pending\n* `20` - Return\n* `30` - Repair\n* `40` - Replace\n* `50` - Refund\n* `60` - Reject"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Line price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"received_date": {
"description": "The date this this return item was received",
"format": "date",
"nullable": true,
"type": "string"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"item",
"item_detail",
"order",
"pk"
],
"type": "object"
}
{
"item": 0,
"item_detail": null,
"link": "string",
"notes": "string",
"order": 0,
"outcome": null,
"pk": 0,
"price": "string",
"price_currency": null,
"received_date": "2022-04-13",
"reference": "string",
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a ReturnOrderLineItem object.",
"properties": {
"item": {
"description": "Select item to return from customer",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"outcome": {
"allOf": [
{
"$ref": "#/components/schemas/OutcomeEnum"
}
],
"description": "Outcome for this line item\n\n* `10` - Pending\n* `20` - Return\n* `30` - Repair\n* `40` - Replace\n* `50` - Refund\n* `60` - Reject"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Line price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"received_date": {
"description": "The date this this return item was received",
"format": "date",
"nullable": true,
"type": "string"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"item",
"item_detail",
"order",
"pk"
],
"type": "object"
}
Response 200 OK
{
"item": 0,
"item_detail": null,
"link": "string",
"notes": "string",
"order": 0,
"outcome": null,
"pk": 0,
"price": "string",
"price_currency": null,
"received_date": "2022-04-13",
"reference": "string",
"target_date": "2022-04-13"
}
Schema of the response body
{
"description": "Serializer for a ReturnOrderLineItem object.",
"properties": {
"item": {
"description": "Select item to return from customer",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Return Order",
"type": "integer"
},
"outcome": {
"allOf": [
{
"$ref": "#/components/schemas/OutcomeEnum"
}
],
"description": "Outcome for this line item\n\n* `10` - Pending\n* `20` - Return\n* `30` - Repair\n* `40` - Replace\n* `50` - Refund\n* `60` - Reject"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Line price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"received_date": {
"description": "The date this this return item was received",
"format": "date",
"nullable": true,
"type": "string"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"item",
"item_detail",
"order",
"pk"
],
"type": "object"
}
GET /api/order/ro-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PATCH /api/order/ro-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PUT /api/order/ro-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
GET /api/order/ro/¶
Description
Generic handler for a download request.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
assigned_to |
query | integer | No | ||
assigned_to_me |
query | boolean | No | assigned_to_me | |
customer |
query | integer | No | ||
has_project_code |
query | boolean | No | has_project_code | |
limit |
query | integer | No | Number of results to return per page. | |
offset |
query | integer | No | The initial index from which to return the results. | |
ordering |
query | string | No | Which field to use when ordering the results. | |
outstanding |
query | boolean | No | outstanding | |
overdue |
query | boolean | No | overdue | |
project_code |
query | integer | No | ||
reference |
query | string | No | Filter by exact reference | |
search |
query | string | No | A search term. | |
status |
query | integer | No | Order Status |
Response 200 OK
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
]
}
Schema of the response body
{
"properties": {
"count": {
"example": 123,
"type": "integer"
},
"next": {
"example": "http://api.example.org/accounts/?offset=400&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"previous": {
"example": "http://api.example.org/accounts/?offset=200&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"results": {
"items": {
"$ref": "#/components/schemas/ReturnOrder"
},
"type": "array"
}
},
"type": "object"
}
POST /api/order/ro/¶
Description
API endpoint for accessing a list of ReturnOrder objects.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Request body
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the ReturnOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company from which items are being returned",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"total_price"
],
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the ReturnOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company from which items are being returned",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"total_price"
],
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the ReturnOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company from which items are being returned",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"total_price"
],
"type": "object"
}
Response 201 Created
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the response body
{
"description": "Serializer for the ReturnOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company from which items are being returned",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"total_price"
],
"type": "object"
}
DELETE /api/order/ro/attachment/¶
Description
Perform a DELETE operation against this list endpoint.
We expect a list of primary-key (ID) values to be supplied as a JSON object, e.g. { items: [4, 8, 15, 16, 23, 42] }
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Response 204 No Content
GET /api/order/ro/attachment/¶
Description
API endpoint for listing, creating and bulk deleting a ReturnOrderAttachment (file upload).
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
limit |
query | integer | No | Number of results to return per page. | |
offset |
query | integer | No | The initial index from which to return the results. | |
order |
query | integer | No | ||
ordering |
query | string | No | Which field to use when ordering the results. | |
search |
query | string | No | A search term. |
Response 200 OK
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
]
}
Schema of the response body
{
"properties": {
"count": {
"example": 123,
"type": "integer"
},
"next": {
"example": "http://api.example.org/accounts/?offset=400&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"previous": {
"example": "http://api.example.org/accounts/?offset=200&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"results": {
"items": {
"$ref": "#/components/schemas/ReturnOrderAttachment"
},
"type": "array"
}
},
"type": "object"
}
POST /api/order/ro/attachment/¶
Description
API endpoint for listing, creating and bulk deleting a ReturnOrderAttachment (file upload).
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Request body
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializer for the ReturnOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializer for the ReturnOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializer for the ReturnOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
Response 201 Created
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the response body
{
"description": "Serializer for the ReturnOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
DELETE /api/order/ro/attachment/{id}/¶
Description
Detail endpoint for the ReturnOrderAttachment model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 204 No Content
GET /api/order/ro/attachment/{id}/¶
Description
Detail endpoint for the ReturnOrderAttachment model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the response body
{
"description": "Serializer for the ReturnOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
PATCH /api/order/ro/attachment/{id}/¶
Description
Detail endpoint for the ReturnOrderAttachment model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializer for the ReturnOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializer for the ReturnOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializer for the ReturnOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"type": "object"
}
Response 200 OK
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the response body
{
"description": "Serializer for the ReturnOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
PUT /api/order/ro/attachment/{id}/¶
Description
Detail endpoint for the ReturnOrderAttachment model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializer for the ReturnOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializer for the ReturnOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializer for the ReturnOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
Response 200 OK
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the response body
{
"description": "Serializer for the ReturnOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
GET /api/order/ro/status/¶
Description
Retrieve information about a specific status code
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Response 200 OK
Response 400 Bad Request
DELETE /api/order/ro/{id}/¶
Description
API endpoint for detail view of a single ReturnOrder object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 204 No Content
GET /api/order/ro/{id}/¶
Description
API endpoint for detail view of a single ReturnOrder object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the response body
{
"description": "Serializer for the ReturnOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company from which items are being returned",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"total_price"
],
"type": "object"
}
PATCH /api/order/ro/{id}/¶
Description
API endpoint for detail view of a single ReturnOrder object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the ReturnOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company from which items are being returned",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the ReturnOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company from which items are being returned",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the ReturnOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company from which items are being returned",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
Response 200 OK
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the response body
{
"description": "Serializer for the ReturnOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company from which items are being returned",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"total_price"
],
"type": "object"
}
PUT /api/order/ro/{id}/¶
Description
API endpoint for detail view of a single ReturnOrder object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the ReturnOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company from which items are being returned",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"total_price"
],
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the ReturnOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company from which items are being returned",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"total_price"
],
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the ReturnOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company from which items are being returned",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"total_price"
],
"type": "object"
}
Response 200 OK
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the response body
{
"description": "Serializer for the ReturnOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company from which items are being returned",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"status",
"status_text",
"total_price"
],
"type": "object"
}
POST /api/order/ro/{id}/cancel/¶
Description
API endpoint to cancel a ReturnOrder.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 201 Created
POST /api/order/ro/{id}/complete/¶
Description
API endpoint to complete a ReturnOrder.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 201 Created
POST /api/order/ro/{id}/issue/¶
Description
API endpoint to issue (place) a ReturnOrder.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 201 Created
GET /api/order/ro/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PATCH /api/order/ro/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PUT /api/order/ro/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
POST /api/order/ro/{id}/receive/¶
Description
API endpoint to receive items against a ReturnOrder.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"items": [
{
"item": 0
}
],
"location": 0
}
Schema of the request body
{
"description": "Serializer for receiving items against a ReturnOrder.",
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/ReturnOrderLineItemReceive"
},
"type": "array"
},
"location": {
"description": "Select destination location for received items",
"type": "integer"
}
},
"required": [
"items",
"location"
],
"type": "object"
}
{
"items": [
{
"item": 0
}
],
"location": 0
}
Schema of the request body
{
"description": "Serializer for receiving items against a ReturnOrder.",
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/ReturnOrderLineItemReceive"
},
"type": "array"
},
"location": {
"description": "Select destination location for received items",
"type": "integer"
}
},
"required": [
"items",
"location"
],
"type": "object"
}
{
"items": [
{
"item": 0
}
],
"location": 0
}
Schema of the request body
{
"description": "Serializer for receiving items against a ReturnOrder.",
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/ReturnOrderLineItemReceive"
},
"type": "array"
},
"location": {
"description": "Select destination location for received items",
"type": "integer"
}
},
"required": [
"items",
"location"
],
"type": "object"
}
Response 201 Created
{
"items": [
{
"item": 0
}
],
"location": 0
}
Schema of the response body
{
"description": "Serializer for receiving items against a ReturnOrder.",
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/ReturnOrderLineItemReceive"
},
"type": "array"
},
"location": {
"description": "Select destination location for received items",
"type": "integer"
}
},
"required": [
"items",
"location"
],
"type": "object"
}
GET /api/order/so-allocation/¶
Description
API endpoint for listing SalesOrderAllocation objects.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
limit |
query | integer | No | Number of results to return per page. | |
offset |
query | integer | No | The initial index from which to return the results. |
Response 200 OK
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
]
}
Schema of the response body
{
"properties": {
"count": {
"example": 123,
"type": "integer"
},
"next": {
"example": "http://api.example.org/accounts/?offset=400&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"previous": {
"example": "http://api.example.org/accounts/?offset=200&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"results": {
"items": {
"$ref": "#/components/schemas/SalesOrderAllocation"
},
"type": "array"
}
},
"type": "object"
}
DELETE /api/order/so-allocation/{id}/¶
Description
API endpoint for detali view of a SalesOrderAllocation object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 204 No Content
GET /api/order/so-allocation/{id}/¶
Description
API endpoint for detali view of a SalesOrderAllocation object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
Schema of the response body
{
"description": "Serializer for the SalesOrderAllocation model.\n\nThis includes some fields from the related model objects.",
"properties": {
"item": {
"description": "Select stock item to allocate",
"type": "integer"
},
"line": {
"type": "integer"
},
"location": {
"readOnly": true,
"type": "integer"
},
"order": {
"readOnly": true,
"type": "integer"
},
"part": {
"readOnly": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"serial": {
"readOnly": true,
"type": "string"
},
"shipment": {
"description": "Sales order shipment reference",
"type": "integer"
},
"shipment_date": {
"format": "date",
"readOnly": true,
"type": "string"
}
},
"required": [
"item",
"line",
"location",
"order",
"part",
"pk",
"quantity",
"serial",
"shipment",
"shipment_date"
],
"type": "object"
}
PATCH /api/order/so-allocation/{id}/¶
Description
API endpoint for detali view of a SalesOrderAllocation object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"item": 0,
"item_detail": null,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"part_detail": null,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderAllocation model.\n\nThis includes some fields from the related model objects.",
"properties": {
"item": {
"description": "Select stock item to allocate",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"line": {
"type": "integer"
},
"location": {
"readOnly": true,
"type": "integer"
},
"order": {
"readOnly": true,
"type": "integer"
},
"part": {
"readOnly": true,
"type": "integer"
},
"part_detail": {
"allOf": [
{
"$ref": "#/components/schemas/PartBrief"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"serial": {
"readOnly": true,
"type": "string"
},
"shipment": {
"description": "Sales order shipment reference",
"type": "integer"
},
"shipment_date": {
"format": "date",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
{
"item": 0,
"item_detail": null,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"part_detail": null,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderAllocation model.\n\nThis includes some fields from the related model objects.",
"properties": {
"item": {
"description": "Select stock item to allocate",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"line": {
"type": "integer"
},
"location": {
"readOnly": true,
"type": "integer"
},
"order": {
"readOnly": true,
"type": "integer"
},
"part": {
"readOnly": true,
"type": "integer"
},
"part_detail": {
"allOf": [
{
"$ref": "#/components/schemas/PartBrief"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"serial": {
"readOnly": true,
"type": "string"
},
"shipment": {
"description": "Sales order shipment reference",
"type": "integer"
},
"shipment_date": {
"format": "date",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
{
"item": 0,
"item_detail": null,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"part_detail": null,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderAllocation model.\n\nThis includes some fields from the related model objects.",
"properties": {
"item": {
"description": "Select stock item to allocate",
"type": "integer"
},
"item_detail": {
"allOf": [
{
"$ref": "#/components/schemas/StockItem"
}
],
"readOnly": true
},
"line": {
"type": "integer"
},
"location": {
"readOnly": true,
"type": "integer"
},
"order": {
"readOnly": true,
"type": "integer"
},
"part": {
"readOnly": true,
"type": "integer"
},
"part_detail": {
"allOf": [
{
"$ref": "#/components/schemas/PartBrief"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"serial": {
"readOnly": true,
"type": "string"
},
"shipment": {
"description": "Sales order shipment reference",
"type": "integer"
},
"shipment_date": {
"format": "date",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
Response 200 OK
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
Schema of the response body
{
"description": "Serializer for the SalesOrderAllocation model.\n\nThis includes some fields from the related model objects.",
"properties": {
"item": {
"description": "Select stock item to allocate",
"type": "integer"
},
"line": {
"type": "integer"
},
"location": {
"readOnly": true,
"type": "integer"
},
"order": {
"readOnly": true,
"type": "integer"
},
"part": {
"readOnly": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"serial": {
"readOnly": true,
"type": "string"
},
"shipment": {
"description": "Sales order shipment reference",
"type": "integer"
},
"shipment_date": {
"format": "date",
"readOnly": true,
"type": "string"
}
},
"required": [
"item",
"line",
"location",
"order",
"part",
"pk",
"quantity",
"serial",
"shipment",
"shipment_date"
],
"type": "object"
}
PUT /api/order/so-allocation/{id}/¶
Description
API endpoint for detali view of a SalesOrderAllocation object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderAllocation model.\n\nThis includes some fields from the related model objects.",
"properties": {
"item": {
"description": "Select stock item to allocate",
"type": "integer"
},
"line": {
"type": "integer"
},
"location": {
"readOnly": true,
"type": "integer"
},
"order": {
"readOnly": true,
"type": "integer"
},
"part": {
"readOnly": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"serial": {
"readOnly": true,
"type": "string"
},
"shipment": {
"description": "Sales order shipment reference",
"type": "integer"
},
"shipment_date": {
"format": "date",
"readOnly": true,
"type": "string"
}
},
"required": [
"item",
"line",
"location",
"order",
"part",
"pk",
"quantity",
"serial",
"shipment",
"shipment_date"
],
"type": "object"
}
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderAllocation model.\n\nThis includes some fields from the related model objects.",
"properties": {
"item": {
"description": "Select stock item to allocate",
"type": "integer"
},
"line": {
"type": "integer"
},
"location": {
"readOnly": true,
"type": "integer"
},
"order": {
"readOnly": true,
"type": "integer"
},
"part": {
"readOnly": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"serial": {
"readOnly": true,
"type": "string"
},
"shipment": {
"description": "Sales order shipment reference",
"type": "integer"
},
"shipment_date": {
"format": "date",
"readOnly": true,
"type": "string"
}
},
"required": [
"item",
"line",
"location",
"order",
"part",
"pk",
"quantity",
"serial",
"shipment",
"shipment_date"
],
"type": "object"
}
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderAllocation model.\n\nThis includes some fields from the related model objects.",
"properties": {
"item": {
"description": "Select stock item to allocate",
"type": "integer"
},
"line": {
"type": "integer"
},
"location": {
"readOnly": true,
"type": "integer"
},
"order": {
"readOnly": true,
"type": "integer"
},
"part": {
"readOnly": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"serial": {
"readOnly": true,
"type": "string"
},
"shipment": {
"description": "Sales order shipment reference",
"type": "integer"
},
"shipment_date": {
"format": "date",
"readOnly": true,
"type": "string"
}
},
"required": [
"item",
"line",
"location",
"order",
"part",
"pk",
"quantity",
"serial",
"shipment",
"shipment_date"
],
"type": "object"
}
Response 200 OK
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
Schema of the response body
{
"description": "Serializer for the SalesOrderAllocation model.\n\nThis includes some fields from the related model objects.",
"properties": {
"item": {
"description": "Select stock item to allocate",
"type": "integer"
},
"line": {
"type": "integer"
},
"location": {
"readOnly": true,
"type": "integer"
},
"order": {
"readOnly": true,
"type": "integer"
},
"part": {
"readOnly": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"serial": {
"readOnly": true,
"type": "string"
},
"shipment": {
"description": "Sales order shipment reference",
"type": "integer"
},
"shipment_date": {
"format": "date",
"readOnly": true,
"type": "string"
}
},
"required": [
"item",
"line",
"location",
"order",
"part",
"pk",
"quantity",
"serial",
"shipment",
"shipment_date"
],
"type": "object"
}
GET /api/order/so-extra-line/¶
Description
Generic handler for a download request.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
limit |
query | integer | No | Number of results to return per page. | |
offset |
query | integer | No | The initial index from which to return the results. | |
order |
query | integer | No | ||
ordering |
query | string | No | Which field to use when ordering the results. | |
search |
query | string | No | A search term. |
Response 200 OK
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
]
}
Schema of the response body
{
"properties": {
"count": {
"example": 123,
"type": "integer"
},
"next": {
"example": "http://api.example.org/accounts/?offset=400&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"previous": {
"example": "http://api.example.org/accounts/?offset=200&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"results": {
"items": {
"$ref": "#/components/schemas/SalesOrderExtraLine"
},
"type": "array"
}
},
"type": "object"
}
POST /api/order/so-extra-line/¶
Description
API endpoint for accessing a list of SalesOrderExtraLine objects.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Request body
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
Response 201 Created
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the response body
{
"description": "Serializer for a SalesOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
DELETE /api/order/so-extra-line/{id}/¶
Description
API endpoint for detail view of a SalesOrderExtraLine object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 204 No Content
GET /api/order/so-extra-line/{id}/¶
Description
API endpoint for detail view of a SalesOrderExtraLine object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the response body
{
"description": "Serializer for a SalesOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
PATCH /api/order/so-extra-line/{id}/¶
Description
API endpoint for detail view of a SalesOrderExtraLine object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
Response 200 OK
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the response body
{
"description": "Serializer for a SalesOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
PUT /api/order/so-extra-line/{id}/¶
Description
API endpoint for detail view of a SalesOrderExtraLine object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
Response 200 OK
{
"context": null,
"description": "string",
"link": "string",
"notes": "string",
"order": 0,
"pk": 0,
"price": "string",
"price_currency": null,
"quantity": 10.12,
"reference": "string"
}
Schema of the response body
{
"description": "Serializer for a SalesOrderExtraLine object.",
"properties": {
"context": {
"description": "Additional context for this line",
"nullable": true
},
"description": {
"description": "Line item description (optional)",
"maxLength": 250,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Select currency from available options\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
}
},
"required": [
"order",
"pk",
"quantity"
],
"type": "object"
}
GET /api/order/so-extra-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PATCH /api/order/so-extra-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PUT /api/order/so-extra-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
GET /api/order/so-line/¶
Description
Generic handler for a download request.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
completed |
query | boolean | No | completed | |
has_pricing |
query | boolean | No | Has Pricing | |
limit |
query | integer | No | Number of results to return per page. | |
offset |
query | integer | No | The initial index from which to return the results. | |
order |
query | integer | No | Order | |
order_complete |
query | boolean | No | Order Complete | |
order_status |
query | integer | No | Order Status | |
ordering |
query | string | No | Which field to use when ordering the results. | |
part |
query | integer | No | Part | |
search |
query | string | No | A search term. |
Response 200 OK
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"allocated": 10.12,
"available_stock": 10.12,
"available_variant_stock": 10.12,
"link": "string",
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"quantity": 10.12,
"reference": "string",
"sale_price": "string",
"sale_price_currency": null,
"shipped": 10.12,
"target_date": "2022-04-13"
}
]
}
Schema of the response body
{
"properties": {
"count": {
"example": 123,
"type": "integer"
},
"next": {
"example": "http://api.example.org/accounts/?offset=400&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"previous": {
"example": "http://api.example.org/accounts/?offset=200&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"results": {
"items": {
"$ref": "#/components/schemas/SalesOrderLineItem"
},
"type": "array"
}
},
"type": "object"
}
POST /api/order/so-line/¶
Description
API endpoint for accessing a list of SalesOrderLineItem objects.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Request body
{
"allocated": 10.12,
"available_stock": 10.12,
"available_variant_stock": 10.12,
"link": "string",
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"quantity": 10.12,
"reference": "string",
"sale_price": "string",
"sale_price_currency": null,
"shipped": 10.12,
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderLineItem object.",
"properties": {
"allocated": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_variant_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"sale_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"sale_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Sale price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"shipped": {
"format": "double",
"readOnly": true,
"type": "number"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"allocated",
"available_stock",
"available_variant_stock",
"order",
"overdue",
"pk",
"quantity",
"shipped"
],
"type": "object"
}
{
"allocated": 10.12,
"available_stock": 10.12,
"available_variant_stock": 10.12,
"link": "string",
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"quantity": 10.12,
"reference": "string",
"sale_price": "string",
"sale_price_currency": null,
"shipped": 10.12,
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderLineItem object.",
"properties": {
"allocated": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_variant_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"sale_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"sale_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Sale price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"shipped": {
"format": "double",
"readOnly": true,
"type": "number"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"allocated",
"available_stock",
"available_variant_stock",
"order",
"overdue",
"pk",
"quantity",
"shipped"
],
"type": "object"
}
{
"allocated": 10.12,
"available_stock": 10.12,
"available_variant_stock": 10.12,
"link": "string",
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"quantity": 10.12,
"reference": "string",
"sale_price": "string",
"sale_price_currency": null,
"shipped": 10.12,
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderLineItem object.",
"properties": {
"allocated": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_variant_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"sale_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"sale_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Sale price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"shipped": {
"format": "double",
"readOnly": true,
"type": "number"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"allocated",
"available_stock",
"available_variant_stock",
"order",
"overdue",
"pk",
"quantity",
"shipped"
],
"type": "object"
}
Response 201 Created
{
"allocated": 10.12,
"available_stock": 10.12,
"available_variant_stock": 10.12,
"link": "string",
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"quantity": 10.12,
"reference": "string",
"sale_price": "string",
"sale_price_currency": null,
"shipped": 10.12,
"target_date": "2022-04-13"
}
Schema of the response body
{
"description": "Serializer for a SalesOrderLineItem object.",
"properties": {
"allocated": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_variant_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"sale_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"sale_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Sale price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"shipped": {
"format": "double",
"readOnly": true,
"type": "number"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"allocated",
"available_stock",
"available_variant_stock",
"order",
"overdue",
"pk",
"quantity",
"shipped"
],
"type": "object"
}
DELETE /api/order/so-line/{id}/¶
Description
API endpoint for detail view of a SalesOrderLineItem object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 204 No Content
GET /api/order/so-line/{id}/¶
Description
API endpoint for detail view of a SalesOrderLineItem object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"allocated": 10.12,
"available_stock": 10.12,
"available_variant_stock": 10.12,
"link": "string",
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"quantity": 10.12,
"reference": "string",
"sale_price": "string",
"sale_price_currency": null,
"shipped": 10.12,
"target_date": "2022-04-13"
}
Schema of the response body
{
"description": "Serializer for a SalesOrderLineItem object.",
"properties": {
"allocated": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_variant_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"sale_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"sale_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Sale price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"shipped": {
"format": "double",
"readOnly": true,
"type": "number"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"allocated",
"available_stock",
"available_variant_stock",
"order",
"overdue",
"pk",
"quantity",
"shipped"
],
"type": "object"
}
PATCH /api/order/so-line/{id}/¶
Description
API endpoint for detail view of a SalesOrderLineItem object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"allocated": 10.12,
"available_stock": 10.12,
"available_variant_stock": 10.12,
"link": "string",
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"quantity": 10.12,
"reference": "string",
"sale_price": "string",
"sale_price_currency": null,
"shipped": 10.12,
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderLineItem object.",
"properties": {
"allocated": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_variant_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"sale_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"sale_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Sale price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"shipped": {
"format": "double",
"readOnly": true,
"type": "number"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"type": "object"
}
{
"allocated": 10.12,
"available_stock": 10.12,
"available_variant_stock": 10.12,
"link": "string",
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"quantity": 10.12,
"reference": "string",
"sale_price": "string",
"sale_price_currency": null,
"shipped": 10.12,
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderLineItem object.",
"properties": {
"allocated": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_variant_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"sale_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"sale_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Sale price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"shipped": {
"format": "double",
"readOnly": true,
"type": "number"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"type": "object"
}
{
"allocated": 10.12,
"available_stock": 10.12,
"available_variant_stock": 10.12,
"link": "string",
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"quantity": 10.12,
"reference": "string",
"sale_price": "string",
"sale_price_currency": null,
"shipped": 10.12,
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderLineItem object.",
"properties": {
"allocated": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_variant_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"sale_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"sale_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Sale price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"shipped": {
"format": "double",
"readOnly": true,
"type": "number"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"type": "object"
}
Response 200 OK
{
"allocated": 10.12,
"available_stock": 10.12,
"available_variant_stock": 10.12,
"link": "string",
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"quantity": 10.12,
"reference": "string",
"sale_price": "string",
"sale_price_currency": null,
"shipped": 10.12,
"target_date": "2022-04-13"
}
Schema of the response body
{
"description": "Serializer for a SalesOrderLineItem object.",
"properties": {
"allocated": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_variant_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"sale_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"sale_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Sale price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"shipped": {
"format": "double",
"readOnly": true,
"type": "number"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"allocated",
"available_stock",
"available_variant_stock",
"order",
"overdue",
"pk",
"quantity",
"shipped"
],
"type": "object"
}
PUT /api/order/so-line/{id}/¶
Description
API endpoint for detail view of a SalesOrderLineItem object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"allocated": 10.12,
"available_stock": 10.12,
"available_variant_stock": 10.12,
"link": "string",
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"quantity": 10.12,
"reference": "string",
"sale_price": "string",
"sale_price_currency": null,
"shipped": 10.12,
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderLineItem object.",
"properties": {
"allocated": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_variant_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"sale_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"sale_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Sale price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"shipped": {
"format": "double",
"readOnly": true,
"type": "number"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"allocated",
"available_stock",
"available_variant_stock",
"order",
"overdue",
"pk",
"quantity",
"shipped"
],
"type": "object"
}
{
"allocated": 10.12,
"available_stock": 10.12,
"available_variant_stock": 10.12,
"link": "string",
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"quantity": 10.12,
"reference": "string",
"sale_price": "string",
"sale_price_currency": null,
"shipped": 10.12,
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderLineItem object.",
"properties": {
"allocated": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_variant_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"sale_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"sale_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Sale price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"shipped": {
"format": "double",
"readOnly": true,
"type": "number"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"allocated",
"available_stock",
"available_variant_stock",
"order",
"overdue",
"pk",
"quantity",
"shipped"
],
"type": "object"
}
{
"allocated": 10.12,
"available_stock": 10.12,
"available_variant_stock": 10.12,
"link": "string",
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"quantity": 10.12,
"reference": "string",
"sale_price": "string",
"sale_price_currency": null,
"shipped": 10.12,
"target_date": "2022-04-13"
}
Schema of the request body
{
"description": "Serializer for a SalesOrderLineItem object.",
"properties": {
"allocated": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_variant_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"sale_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"sale_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Sale price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"shipped": {
"format": "double",
"readOnly": true,
"type": "number"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"allocated",
"available_stock",
"available_variant_stock",
"order",
"overdue",
"pk",
"quantity",
"shipped"
],
"type": "object"
}
Response 200 OK
{
"allocated": 10.12,
"available_stock": 10.12,
"available_variant_stock": 10.12,
"link": "string",
"notes": "string",
"order": 0,
"overdue": true,
"part": 0,
"pk": 0,
"quantity": 10.12,
"reference": "string",
"sale_price": "string",
"sale_price_currency": null,
"shipped": 10.12,
"target_date": "2022-04-13"
}
Schema of the response body
{
"description": "Serializer for a SalesOrderLineItem object.",
"properties": {
"allocated": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"available_variant_stock": {
"format": "double",
"readOnly": true,
"type": "number"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Line item notes",
"maxLength": 500,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"part": {
"description": "Part",
"nullable": true,
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"quantity": {
"format": "double",
"type": "number"
},
"reference": {
"description": "Line item reference",
"maxLength": 100,
"type": "string"
},
"sale_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"type": "string"
},
"sale_price_currency": {
"allOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
}
],
"description": "Sale price currency\n\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"title": "Currency"
},
"shipped": {
"format": "double",
"readOnly": true,
"type": "number"
},
"target_date": {
"description": "Target date for this line item (leave blank to use the target date from the order)",
"format": "date",
"nullable": true,
"type": "string"
}
},
"required": [
"allocated",
"available_stock",
"available_variant_stock",
"order",
"overdue",
"pk",
"quantity",
"shipped"
],
"type": "object"
}
GET /api/order/so-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PATCH /api/order/so-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PUT /api/order/so-line/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
GET /api/order/so/¶
Description
Generic handler for a download request.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
assigned_to |
query | integer | No | ||
assigned_to_me |
query | boolean | No | assigned_to_me | |
customer |
query | integer | No | ||
has_project_code |
query | boolean | No | has_project_code | |
limit |
query | integer | No | Number of results to return per page. | |
offset |
query | integer | No | The initial index from which to return the results. | |
ordering |
query | string | No | Which field to use when ordering the results. | |
outstanding |
query | boolean | No | outstanding | |
overdue |
query | boolean | No | overdue | |
project_code |
query | integer | No | ||
reference |
query | string | No | Filter by exact reference | |
search |
query | string | No | A search term. | |
status |
query | integer | No | Order Status |
Response 200 OK
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"shipment_date": "2022-04-13",
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
]
}
Schema of the response body
{
"properties": {
"count": {
"example": 123,
"type": "integer"
},
"next": {
"example": "http://api.example.org/accounts/?offset=400&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"previous": {
"example": "http://api.example.org/accounts/?offset=200&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"results": {
"items": {
"$ref": "#/components/schemas/SalesOrder"
},
"type": "array"
}
},
"type": "object"
}
POST /api/order/so/¶
Description
API endpoint for accessing a list of SalesOrder objects.
- GET: Return list of SalesOrder objects (with filters)
- POST: Create a new SalesOrder
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Request body
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"shipment_date": "2022-04-13",
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company to which the items are being sold",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"shipment_date": {
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"shipment_date",
"status",
"status_text",
"total_price"
],
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"shipment_date": "2022-04-13",
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company to which the items are being sold",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"shipment_date": {
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"shipment_date",
"status",
"status_text",
"total_price"
],
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"shipment_date": "2022-04-13",
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company to which the items are being sold",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"shipment_date": {
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"shipment_date",
"status",
"status_text",
"total_price"
],
"type": "object"
}
Response 201 Created
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"shipment_date": "2022-04-13",
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the response body
{
"description": "Serializer for the SalesOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company to which the items are being sold",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"shipment_date": {
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"shipment_date",
"status",
"status_text",
"total_price"
],
"type": "object"
}
DELETE /api/order/so/attachment/¶
Description
Perform a DELETE operation against this list endpoint.
We expect a list of primary-key (ID) values to be supplied as a JSON object, e.g. { items: [4, 8, 15, 16, 23, 42] }
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Response 204 No Content
GET /api/order/so/attachment/¶
Description
API endpoint for listing, creating and bulk deleting a SalesOrderAttachment (file upload).
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
limit |
query | integer | No | Number of results to return per page. | |
offset |
query | integer | No | The initial index from which to return the results. | |
order |
query | integer | No | ||
ordering |
query | string | No | Which field to use when ordering the results. | |
search |
query | string | No | A search term. |
Response 200 OK
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
]
}
Schema of the response body
{
"properties": {
"count": {
"example": 123,
"type": "integer"
},
"next": {
"example": "http://api.example.org/accounts/?offset=400&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"previous": {
"example": "http://api.example.org/accounts/?offset=200&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"results": {
"items": {
"$ref": "#/components/schemas/SalesOrderAttachment"
},
"type": "array"
}
},
"type": "object"
}
POST /api/order/so/attachment/¶
Description
API endpoint for listing, creating and bulk deleting a SalesOrderAttachment (file upload).
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Request body
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the SalesOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the SalesOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the SalesOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
Response 201 Created
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the response body
{
"description": "Serializers for the SalesOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
DELETE /api/order/so/attachment/{id}/¶
Description
Detail endpoint for SalesOrderAttachment.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 204 No Content
GET /api/order/so/attachment/{id}/¶
Description
Detail endpoint for SalesOrderAttachment.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the response body
{
"description": "Serializers for the SalesOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
PATCH /api/order/so/attachment/{id}/¶
Description
Detail endpoint for SalesOrderAttachment.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the SalesOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the SalesOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the SalesOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"type": "object"
}
Response 200 OK
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the response body
{
"description": "Serializers for the SalesOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
PUT /api/order/so/attachment/{id}/¶
Description
Detail endpoint for SalesOrderAttachment.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the SalesOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the SalesOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the request body
{
"description": "Serializers for the SalesOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
Response 200 OK
{
"attachment": "string",
"comment": "string",
"filename": "string",
"link": "string",
"order": 0,
"pk": 0,
"upload_date": "2022-04-13",
"user": 0,
"user_detail": null
}
Schema of the response body
{
"description": "Serializers for the SalesOrderAttachment model.",
"properties": {
"attachment": {
"format": "uri",
"type": "string"
},
"comment": {
"description": "File comment",
"maxLength": 100,
"type": "string"
},
"filename": {
"type": "string"
},
"link": {
"description": "Link to external URL",
"format": "uri",
"maxLength": 200,
"nullable": true,
"type": "string"
},
"order": {
"type": "integer"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"upload_date": {
"format": "date",
"readOnly": true,
"type": "string"
},
"user": {
"description": "User",
"nullable": true,
"type": "integer"
},
"user_detail": {
"allOf": [
{
"$ref": "#/components/schemas/User"
}
],
"readOnly": true
}
},
"required": [
"order",
"pk",
"upload_date",
"user_detail"
],
"type": "object"
}
GET /api/order/so/shipment/¶
Description
API list endpoint for SalesOrderShipment model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
delivered |
query | boolean | No | delivered | |
limit |
query | integer | No | Number of results to return per page. | |
offset |
query | integer | No | The initial index from which to return the results. | |
order |
query | integer | No | ||
shipped |
query | boolean | No | shipped |
Response 200 OK
{
"count": 123,
"next": "http://api.example.org/accounts/?offset=400&limit=100",
"previous": "http://api.example.org/accounts/?offset=200&limit=100",
"results": [
{
"allocations": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
],
"checked_by": 0,
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"notes": "string",
"order": 0,
"order_detail": null,
"pk": 0,
"reference": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
]
}
Schema of the response body
{
"properties": {
"count": {
"example": 123,
"type": "integer"
},
"next": {
"example": "http://api.example.org/accounts/?offset=400&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"previous": {
"example": "http://api.example.org/accounts/?offset=200&limit=100",
"format": "uri",
"nullable": true,
"type": "string"
},
"results": {
"items": {
"$ref": "#/components/schemas/SalesOrderShipment"
},
"type": "array"
}
},
"type": "object"
}
POST /api/order/so/shipment/¶
Description
API list endpoint for SalesOrderShipment model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Request body
{
"allocations": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
],
"checked_by": 0,
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"notes": "string",
"order": 0,
"order_detail": null,
"pk": 0,
"reference": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderShipment class.",
"properties": {
"allocations": {
"items": {
"$ref": "#/components/schemas/SalesOrderAllocation"
},
"readOnly": true,
"type": "array"
},
"checked_by": {
"description": "User who checked this shipment",
"nullable": true,
"type": "integer"
},
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"order_detail": {
"allOf": [
{
"$ref": "#/components/schemas/SalesOrder"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"reference": {
"default": "1",
"description": "Shipment number",
"maxLength": 100,
"title": "Shipment",
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"required": [
"allocations",
"order",
"order_detail",
"pk"
],
"type": "object"
}
{
"allocations": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
],
"checked_by": 0,
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"notes": "string",
"order": 0,
"order_detail": null,
"pk": 0,
"reference": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderShipment class.",
"properties": {
"allocations": {
"items": {
"$ref": "#/components/schemas/SalesOrderAllocation"
},
"readOnly": true,
"type": "array"
},
"checked_by": {
"description": "User who checked this shipment",
"nullable": true,
"type": "integer"
},
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"order_detail": {
"allOf": [
{
"$ref": "#/components/schemas/SalesOrder"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"reference": {
"default": "1",
"description": "Shipment number",
"maxLength": 100,
"title": "Shipment",
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"required": [
"allocations",
"order",
"order_detail",
"pk"
],
"type": "object"
}
{
"allocations": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
],
"checked_by": 0,
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"notes": "string",
"order": 0,
"order_detail": null,
"pk": 0,
"reference": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderShipment class.",
"properties": {
"allocations": {
"items": {
"$ref": "#/components/schemas/SalesOrderAllocation"
},
"readOnly": true,
"type": "array"
},
"checked_by": {
"description": "User who checked this shipment",
"nullable": true,
"type": "integer"
},
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"order_detail": {
"allOf": [
{
"$ref": "#/components/schemas/SalesOrder"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"reference": {
"default": "1",
"description": "Shipment number",
"maxLength": 100,
"title": "Shipment",
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"required": [
"allocations",
"order",
"order_detail",
"pk"
],
"type": "object"
}
Response 201 Created
{
"allocations": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
],
"checked_by": 0,
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"notes": "string",
"order": 0,
"order_detail": null,
"pk": 0,
"reference": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the response body
{
"description": "Serializer for the SalesOrderShipment class.",
"properties": {
"allocations": {
"items": {
"$ref": "#/components/schemas/SalesOrderAllocation"
},
"readOnly": true,
"type": "array"
},
"checked_by": {
"description": "User who checked this shipment",
"nullable": true,
"type": "integer"
},
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"order_detail": {
"allOf": [
{
"$ref": "#/components/schemas/SalesOrder"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"reference": {
"default": "1",
"description": "Shipment number",
"maxLength": 100,
"title": "Shipment",
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"required": [
"allocations",
"order",
"order_detail",
"pk"
],
"type": "object"
}
DELETE /api/order/so/shipment/{id}/¶
Description
API detail endpooint for SalesOrderShipment model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 204 No Content
GET /api/order/so/shipment/{id}/¶
Description
API detail endpooint for SalesOrderShipment model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"allocations": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
],
"checked_by": 0,
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"notes": "string",
"order": 0,
"order_detail": null,
"pk": 0,
"reference": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the response body
{
"description": "Serializer for the SalesOrderShipment class.",
"properties": {
"allocations": {
"items": {
"$ref": "#/components/schemas/SalesOrderAllocation"
},
"readOnly": true,
"type": "array"
},
"checked_by": {
"description": "User who checked this shipment",
"nullable": true,
"type": "integer"
},
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"order_detail": {
"allOf": [
{
"$ref": "#/components/schemas/SalesOrder"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"reference": {
"default": "1",
"description": "Shipment number",
"maxLength": 100,
"title": "Shipment",
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"required": [
"allocations",
"order",
"order_detail",
"pk"
],
"type": "object"
}
PATCH /api/order/so/shipment/{id}/¶
Description
API detail endpooint for SalesOrderShipment model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"allocations": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
],
"checked_by": 0,
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"notes": "string",
"order": 0,
"order_detail": null,
"pk": 0,
"reference": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderShipment class.",
"properties": {
"allocations": {
"items": {
"$ref": "#/components/schemas/SalesOrderAllocation"
},
"readOnly": true,
"type": "array"
},
"checked_by": {
"description": "User who checked this shipment",
"nullable": true,
"type": "integer"
},
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"order_detail": {
"allOf": [
{
"$ref": "#/components/schemas/SalesOrder"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"reference": {
"default": "1",
"description": "Shipment number",
"maxLength": 100,
"title": "Shipment",
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
{
"allocations": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
],
"checked_by": 0,
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"notes": "string",
"order": 0,
"order_detail": null,
"pk": 0,
"reference": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderShipment class.",
"properties": {
"allocations": {
"items": {
"$ref": "#/components/schemas/SalesOrderAllocation"
},
"readOnly": true,
"type": "array"
},
"checked_by": {
"description": "User who checked this shipment",
"nullable": true,
"type": "integer"
},
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"order_detail": {
"allOf": [
{
"$ref": "#/components/schemas/SalesOrder"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"reference": {
"default": "1",
"description": "Shipment number",
"maxLength": 100,
"title": "Shipment",
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
{
"allocations": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
],
"checked_by": 0,
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"notes": "string",
"order": 0,
"order_detail": null,
"pk": 0,
"reference": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderShipment class.",
"properties": {
"allocations": {
"items": {
"$ref": "#/components/schemas/SalesOrderAllocation"
},
"readOnly": true,
"type": "array"
},
"checked_by": {
"description": "User who checked this shipment",
"nullable": true,
"type": "integer"
},
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"order_detail": {
"allOf": [
{
"$ref": "#/components/schemas/SalesOrder"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"reference": {
"default": "1",
"description": "Shipment number",
"maxLength": 100,
"title": "Shipment",
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
Response 200 OK
{
"allocations": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
],
"checked_by": 0,
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"notes": "string",
"order": 0,
"order_detail": null,
"pk": 0,
"reference": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the response body
{
"description": "Serializer for the SalesOrderShipment class.",
"properties": {
"allocations": {
"items": {
"$ref": "#/components/schemas/SalesOrderAllocation"
},
"readOnly": true,
"type": "array"
},
"checked_by": {
"description": "User who checked this shipment",
"nullable": true,
"type": "integer"
},
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"order_detail": {
"allOf": [
{
"$ref": "#/components/schemas/SalesOrder"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"reference": {
"default": "1",
"description": "Shipment number",
"maxLength": 100,
"title": "Shipment",
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"required": [
"allocations",
"order",
"order_detail",
"pk"
],
"type": "object"
}
PUT /api/order/so/shipment/{id}/¶
Description
API detail endpooint for SalesOrderShipment model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"allocations": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
],
"checked_by": 0,
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"notes": "string",
"order": 0,
"order_detail": null,
"pk": 0,
"reference": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderShipment class.",
"properties": {
"allocations": {
"items": {
"$ref": "#/components/schemas/SalesOrderAllocation"
},
"readOnly": true,
"type": "array"
},
"checked_by": {
"description": "User who checked this shipment",
"nullable": true,
"type": "integer"
},
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"order_detail": {
"allOf": [
{
"$ref": "#/components/schemas/SalesOrder"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"reference": {
"default": "1",
"description": "Shipment number",
"maxLength": 100,
"title": "Shipment",
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"required": [
"allocations",
"order",
"order_detail",
"pk"
],
"type": "object"
}
{
"allocations": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
],
"checked_by": 0,
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"notes": "string",
"order": 0,
"order_detail": null,
"pk": 0,
"reference": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderShipment class.",
"properties": {
"allocations": {
"items": {
"$ref": "#/components/schemas/SalesOrderAllocation"
},
"readOnly": true,
"type": "array"
},
"checked_by": {
"description": "User who checked this shipment",
"nullable": true,
"type": "integer"
},
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"order_detail": {
"allOf": [
{
"$ref": "#/components/schemas/SalesOrder"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"reference": {
"default": "1",
"description": "Shipment number",
"maxLength": 100,
"title": "Shipment",
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"required": [
"allocations",
"order",
"order_detail",
"pk"
],
"type": "object"
}
{
"allocations": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
],
"checked_by": 0,
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"notes": "string",
"order": 0,
"order_detail": null,
"pk": 0,
"reference": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrderShipment class.",
"properties": {
"allocations": {
"items": {
"$ref": "#/components/schemas/SalesOrderAllocation"
},
"readOnly": true,
"type": "array"
},
"checked_by": {
"description": "User who checked this shipment",
"nullable": true,
"type": "integer"
},
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"order_detail": {
"allOf": [
{
"$ref": "#/components/schemas/SalesOrder"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"reference": {
"default": "1",
"description": "Shipment number",
"maxLength": 100,
"title": "Shipment",
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"required": [
"allocations",
"order",
"order_detail",
"pk"
],
"type": "object"
}
Response 200 OK
{
"allocations": [
{
"item": 0,
"line": 0,
"location": 0,
"order": 0,
"part": 0,
"pk": 0,
"quantity": 10.12,
"serial": "string",
"shipment": 0,
"shipment_date": "2022-04-13"
}
],
"checked_by": 0,
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"notes": "string",
"order": 0,
"order_detail": null,
"pk": 0,
"reference": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the response body
{
"description": "Serializer for the SalesOrderShipment class.",
"properties": {
"allocations": {
"items": {
"$ref": "#/components/schemas/SalesOrderAllocation"
},
"readOnly": true,
"type": "array"
},
"checked_by": {
"description": "User who checked this shipment",
"nullable": true,
"type": "integer"
},
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order": {
"description": "Sales Order",
"type": "integer"
},
"order_detail": {
"allOf": [
{
"$ref": "#/components/schemas/SalesOrder"
}
],
"readOnly": true
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"reference": {
"default": "1",
"description": "Shipment number",
"maxLength": 100,
"title": "Shipment",
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"required": [
"allocations",
"order",
"order_detail",
"pk"
],
"type": "object"
}
GET /api/order/so/shipment/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PATCH /api/order/so/shipment/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PUT /api/order/so/shipment/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
POST /api/order/so/shipment/{id}/ship/¶
Description
API endpoint for completing (shipping) a SalesOrderShipment.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the request body
{
"description": "Serializer for completing (shipping) a SalesOrderShipment.",
"properties": {
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
{
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the request body
{
"description": "Serializer for completing (shipping) a SalesOrderShipment.",
"properties": {
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
{
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the request body
{
"description": "Serializer for completing (shipping) a SalesOrderShipment.",
"properties": {
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
Response 201 Created
{
"delivery_date": "2022-04-13",
"invoice_number": "string",
"link": "string",
"shipment_date": "2022-04-13",
"tracking_number": "string"
}
Schema of the response body
{
"description": "Serializer for completing (shipping) a SalesOrderShipment.",
"properties": {
"delivery_date": {
"description": "Date of delivery of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"invoice_number": {
"description": "Reference number for associated invoice",
"maxLength": 100,
"type": "string"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"shipment_date": {
"description": "Date of shipment",
"format": "date",
"nullable": true,
"type": "string"
},
"tracking_number": {
"description": "Shipment tracking information",
"maxLength": 100,
"type": "string"
}
},
"type": "object"
}
GET /api/order/so/status/¶
Description
Retrieve information about a specific status code
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
Response 200 OK
Response 400 Bad Request
DELETE /api/order/so/{id}/¶
Description
API endpoint for detail view of a SalesOrder object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 204 No Content
GET /api/order/so/{id}/¶
Description
API endpoint for detail view of a SalesOrder object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"shipment_date": "2022-04-13",
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the response body
{
"description": "Serializer for the SalesOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company to which the items are being sold",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"shipment_date": {
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"shipment_date",
"status",
"status_text",
"total_price"
],
"type": "object"
}
PATCH /api/order/so/{id}/¶
Description
API endpoint for detail view of a SalesOrder object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"shipment_date": "2022-04-13",
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company to which the items are being sold",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"shipment_date": {
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"shipment_date": "2022-04-13",
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company to which the items are being sold",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"shipment_date": {
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"shipment_date": "2022-04-13",
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company to which the items are being sold",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"shipment_date": {
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"type": "object"
}
Response 200 OK
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"shipment_date": "2022-04-13",
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the response body
{
"description": "Serializer for the SalesOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company to which the items are being sold",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"shipment_date": {
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"shipment_date",
"status",
"status_text",
"total_price"
],
"type": "object"
}
PUT /api/order/so/{id}/¶
Description
API endpoint for detail view of a SalesOrder object.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"shipment_date": "2022-04-13",
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company to which the items are being sold",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"shipment_date": {
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"shipment_date",
"status",
"status_text",
"total_price"
],
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"shipment_date": "2022-04-13",
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company to which the items are being sold",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"shipment_date": {
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"shipment_date",
"status",
"status_text",
"total_price"
],
"type": "object"
}
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"shipment_date": "2022-04-13",
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the request body
{
"description": "Serializer for the SalesOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company to which the items are being sold",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"shipment_date": {
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"shipment_date",
"status",
"status_text",
"total_price"
],
"type": "object"
}
Response 200 OK
{
"address": 0,
"address_detail": null,
"barcode_hash": "string",
"completed_lines": 0,
"contact": 0,
"contact_detail": null,
"creation_date": "2022-04-13",
"customer": 0,
"customer_reference": "string",
"description": "string",
"line_items": 0,
"link": "string",
"notes": "string",
"order_currency": null,
"overdue": true,
"pk": 0,
"project_code": 0,
"project_code_detail": null,
"reference": "string",
"responsible": 0,
"responsible_detail": null,
"shipment_date": "2022-04-13",
"status": 0,
"status_text": "string",
"target_date": "2022-04-13",
"total_price": "string"
}
Schema of the response body
{
"description": "Serializer for the SalesOrder model class.",
"properties": {
"address": {
"description": "Company address for this order",
"nullable": true,
"type": "integer"
},
"address_detail": {
"allOf": [
{
"$ref": "#/components/schemas/AddressBrief"
}
],
"readOnly": true
},
"barcode_hash": {
"readOnly": true,
"type": "string"
},
"completed_lines": {
"readOnly": true,
"type": "integer"
},
"contact": {
"description": "Point of contact for this order",
"nullable": true,
"type": "integer"
},
"contact_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Contact"
}
],
"readOnly": true
},
"creation_date": {
"format": "date",
"nullable": true,
"type": "string"
},
"customer": {
"description": "Company to which the items are being sold",
"nullable": true,
"type": "integer"
},
"customer_reference": {
"description": "Customer order reference code",
"maxLength": 64,
"type": "string"
},
"description": {
"description": "Order description (optional)",
"maxLength": 250,
"type": "string"
},
"line_items": {
"readOnly": true,
"type": "integer"
},
"link": {
"description": "Link to external page",
"format": "uri",
"maxLength": 200,
"type": "string"
},
"notes": {
"description": "Markdown notes (optional)",
"maxLength": 50000,
"nullable": true,
"type": "string"
},
"order_currency": {
"description": "Currency for this order (leave blank to use company default)\n\n* `` - ---------\n* `AUD` - Australian Dollar\n* `CAD` - Canadian Dollar\n* `CNY` - Chinese Yuan\n* `EUR` - Euro\n* `GBP` - British Pound\n* `JPY` - Japanese Yen\n* `NZD` - New Zealand Dollar\n* `USD` - US Dollar",
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/SalePriceCurrencyEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
]
},
"overdue": {
"readOnly": true,
"type": "boolean"
},
"pk": {
"readOnly": true,
"title": "ID",
"type": "integer"
},
"project_code": {
"description": "Select project code for this order",
"nullable": true,
"type": "integer"
},
"project_code_detail": {
"allOf": [
{
"$ref": "#/components/schemas/ProjectCode"
}
],
"readOnly": true
},
"reference": {
"type": "string"
},
"responsible": {
"description": "User or group responsible for this order",
"nullable": true,
"type": "integer"
},
"responsible_detail": {
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
],
"readOnly": true
},
"shipment_date": {
"format": "date",
"nullable": true,
"readOnly": true,
"type": "string"
},
"status": {
"readOnly": true,
"title": "Order Status",
"type": "integer"
},
"status_text": {
"readOnly": true,
"type": "string"
},
"target_date": {
"description": "Expected date for order delivery. Order will be overdue after this date.",
"format": "date",
"nullable": true,
"type": "string"
},
"total_price": {
"format": "decimal",
"nullable": true,
"pattern": "^-?\\d{0,13}(?:\\.\\d{0,6})?$",
"readOnly": true,
"type": "string"
}
},
"required": [
"address_detail",
"barcode_hash",
"completed_lines",
"contact_detail",
"line_items",
"overdue",
"pk",
"project_code_detail",
"reference",
"responsible_detail",
"shipment_date",
"status",
"status_text",
"total_price"
],
"type": "object"
}
POST /api/order/so/{id}/allocate-serials/¶
Description
API endpoint to allocation stock items against a SalesOrder, by specifying serial numbers.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"line_item": 0,
"quantity": 0,
"serial_numbers": "string",
"shipment": 0
}
Schema of the request body
{
"description": "DRF serializer for allocation of serial numbers against a sales order / shipment.",
"properties": {
"line_item": {
"type": "integer"
},
"quantity": {
"minimum": 1,
"type": "integer"
},
"serial_numbers": {
"description": "Enter serial numbers to allocate",
"type": "string"
},
"shipment": {
"type": "integer"
}
},
"required": [
"line_item",
"quantity",
"serial_numbers",
"shipment"
],
"type": "object"
}
{
"line_item": 0,
"quantity": 0,
"serial_numbers": "string",
"shipment": 0
}
Schema of the request body
{
"description": "DRF serializer for allocation of serial numbers against a sales order / shipment.",
"properties": {
"line_item": {
"type": "integer"
},
"quantity": {
"minimum": 1,
"type": "integer"
},
"serial_numbers": {
"description": "Enter serial numbers to allocate",
"type": "string"
},
"shipment": {
"type": "integer"
}
},
"required": [
"line_item",
"quantity",
"serial_numbers",
"shipment"
],
"type": "object"
}
{
"line_item": 0,
"quantity": 0,
"serial_numbers": "string",
"shipment": 0
}
Schema of the request body
{
"description": "DRF serializer for allocation of serial numbers against a sales order / shipment.",
"properties": {
"line_item": {
"type": "integer"
},
"quantity": {
"minimum": 1,
"type": "integer"
},
"serial_numbers": {
"description": "Enter serial numbers to allocate",
"type": "string"
},
"shipment": {
"type": "integer"
}
},
"required": [
"line_item",
"quantity",
"serial_numbers",
"shipment"
],
"type": "object"
}
Response 201 Created
{
"line_item": 0,
"quantity": 0,
"serial_numbers": "string",
"shipment": 0
}
Schema of the response body
{
"description": "DRF serializer for allocation of serial numbers against a sales order / shipment.",
"properties": {
"line_item": {
"type": "integer"
},
"quantity": {
"minimum": 1,
"type": "integer"
},
"serial_numbers": {
"description": "Enter serial numbers to allocate",
"type": "string"
},
"shipment": {
"type": "integer"
}
},
"required": [
"line_item",
"quantity",
"serial_numbers",
"shipment"
],
"type": "object"
}
POST /api/order/so/{id}/allocate/¶
Description
API endpoint to allocate stock items against a SalesOrder.
- The SalesOrder is specified in the URL
- See the SalesOrderShipmentAllocationSerializer class
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"items": [
{
"line_item": 0,
"quantity": "string",
"stock_item": 0
}
],
"shipment": 0
}
Schema of the request body
{
"description": "DRF serializer for allocation of stock items against a sales order / shipment.",
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/SalesOrderShipmentAllocationItem"
},
"type": "array"
},
"shipment": {
"type": "integer"
}
},
"required": [
"items",
"shipment"
],
"type": "object"
}
{
"items": [
{
"line_item": 0,
"quantity": "string",
"stock_item": 0
}
],
"shipment": 0
}
Schema of the request body
{
"description": "DRF serializer for allocation of stock items against a sales order / shipment.",
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/SalesOrderShipmentAllocationItem"
},
"type": "array"
},
"shipment": {
"type": "integer"
}
},
"required": [
"items",
"shipment"
],
"type": "object"
}
{
"items": [
{
"line_item": 0,
"quantity": "string",
"stock_item": 0
}
],
"shipment": 0
}
Schema of the request body
{
"description": "DRF serializer for allocation of stock items against a sales order / shipment.",
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/SalesOrderShipmentAllocationItem"
},
"type": "array"
},
"shipment": {
"type": "integer"
}
},
"required": [
"items",
"shipment"
],
"type": "object"
}
Response 201 Created
{
"items": [
{
"line_item": 0,
"quantity": "string",
"stock_item": 0
}
],
"shipment": 0
}
Schema of the response body
{
"description": "DRF serializer for allocation of stock items against a sales order / shipment.",
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/SalesOrderShipmentAllocationItem"
},
"type": "array"
},
"shipment": {
"type": "integer"
}
},
"required": [
"items",
"shipment"
],
"type": "object"
}
POST /api/order/so/{id}/cancel/¶
Description
API endpoint to cancel a SalesOrder.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 201 Created
POST /api/order/so/{id}/complete/¶
Description
API endpoint for manually marking a SalesOrder as "complete".
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"accept_incomplete": true
}
Schema of the request body
{
"description": "DRF serializer for manually marking a sales order as complete.",
"properties": {
"accept_incomplete": {
"default": false,
"description": "Allow order to be closed with incomplete line items",
"type": "boolean"
}
},
"type": "object"
}
{
"accept_incomplete": true
}
Schema of the request body
{
"description": "DRF serializer for manually marking a sales order as complete.",
"properties": {
"accept_incomplete": {
"default": false,
"description": "Allow order to be closed with incomplete line items",
"type": "boolean"
}
},
"type": "object"
}
{
"accept_incomplete": true
}
Schema of the request body
{
"description": "DRF serializer for manually marking a sales order as complete.",
"properties": {
"accept_incomplete": {
"default": false,
"description": "Allow order to be closed with incomplete line items",
"type": "boolean"
}
},
"type": "object"
}
Response 201 Created
{
"accept_incomplete": true
}
Schema of the response body
{
"description": "DRF serializer for manually marking a sales order as complete.",
"properties": {
"accept_incomplete": {
"default": false,
"description": "Allow order to be closed with incomplete line items",
"type": "boolean"
}
},
"type": "object"
}
POST /api/order/so/{id}/issue/¶
Description
API endpoint to issue a SalesOrder.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 201 Created
GET /api/order/so/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PATCH /api/order/so/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
PUT /api/order/so/{id}/metadata/¶
Description
Generic API endpoint for reading and editing metadata for a model.
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
cookieAuth |
cookie | string | N/A | No | API key |
basicAuth |
header | string | N/A | No | Basic authentication |
tokenAuth |
header | string | N/A | No | Token-based authentication with required prefix "Token" |
id |
path | integer | No |
Request body
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
{
"metadata": null
}
Schema of the request body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
Response 200 OK
{
"metadata": null
}
Schema of the response body
{
"description": "Serializer class for model metadata API access.",
"properties": {
"metadata": {}
},
"required": [
"metadata"
],
"type": "object"
}
Schemas¶
AddressBrief¶
Name | Type |
---|---|
country |
string |
internal_shipping_notes |
string |
line1 |
string |
line2 |
string |
pk |
integer |
postal_city |
string |
postal_code |
string |
province |
string |
shipping_notes |
string |
BlankEnum¶
Type:
Contact¶
Name | Type |
---|---|
company |
integer |
email |
string(email) |
name |
string |
phone |
string |
pk |
integer |
role |
string |
LocationBrief¶
Name | Type |
---|---|
name |
string |
pathstring |
string |
pk |
integer |
Metadata¶
Name | Type |
---|---|
metadata |
NullEnum¶
Type:
OutcomeEnum¶
Type: integer
Owner¶
Name | Type |
---|---|
label |
string |
name |
string |
owner_id |
integer| null |
pk |
integer |
PaginatedPurchaseOrderAttachmentList¶
Name | Type |
---|---|
count |
integer |
next |
string(uri)| null |
previous |
string(uri)| null |
results |
Array<PurchaseOrderAttachment> |
PaginatedPurchaseOrderExtraLineList¶
Name | Type |
---|---|
count |
integer |
next |
string(uri)| null |
previous |
string(uri)| null |
results |
Array<PurchaseOrderExtraLine> |
PaginatedPurchaseOrderLineItemList¶
Name | Type |
---|---|
count |
integer |
next |
string(uri)| null |
previous |
string(uri)| null |
results |
Array<PurchaseOrderLineItem> |
PaginatedPurchaseOrderList¶
Name | Type |
---|---|
count |
integer |
next |
string(uri)| null |
previous |
string(uri)| null |
results |
Array<PurchaseOrder> |
PaginatedReturnOrderAttachmentList¶
Name | Type |
---|---|
count |
integer |
next |
string(uri)| null |
previous |
string(uri)| null |
results |
Array<ReturnOrderAttachment> |
PaginatedReturnOrderExtraLineList¶
Name | Type |
---|---|
count |
integer |
next |
string(uri)| null |
previous |
string(uri)| null |
results |
Array<ReturnOrderExtraLine> |
PaginatedReturnOrderLineItemList¶
Name | Type |
---|---|
count |
integer |
next |
string(uri)| null |
previous |
string(uri)| null |
results |
Array<ReturnOrderLineItem> |
PaginatedReturnOrderList¶
Name | Type |
---|---|
count |
integer |
next |
string(uri)| null |
previous |
string(uri)| null |
results |
Array<ReturnOrder> |
PaginatedSalesOrderAllocationList¶
Name | Type |
---|---|
count |
integer |
next |
string(uri)| null |
previous |
string(uri)| null |
results |
Array<SalesOrderAllocation> |
PaginatedSalesOrderAttachmentList¶
Name | Type |
---|---|
count |
integer |
next |
string(uri)| null |
previous |
string(uri)| null |
results |
Array<SalesOrderAttachment> |
PaginatedSalesOrderExtraLineList¶
Name | Type |
---|---|
count |
integer |
next |
string(uri)| null |
previous |
string(uri)| null |
results |
Array<SalesOrderExtraLine> |
PaginatedSalesOrderLineItemList¶
Name | Type |
---|---|
count |
integer |
next |
string(uri)| null |
previous |
string(uri)| null |
results |
Array<SalesOrderLineItem> |
PaginatedSalesOrderList¶
Name | Type |
---|---|
count |
integer |
next |
string(uri)| null |
previous |
string(uri)| null |
results |
Array<SalesOrder> |
PaginatedSalesOrderShipmentList¶
Name | Type |
---|---|
count |
integer |
next |
string(uri)| null |
previous |
string(uri)| null |
results |
Array<SalesOrderShipment> |
PartBrief¶
Name | Type |
---|---|
active |
boolean |
assembly |
boolean |
barcode_hash |
string |
category_default_location |
integer |
default_location |
integer| null |
description |
string |
full_name |
string |
image |
string(uri) |
IPN |
string| null |
is_template |
boolean |
name |
string |
pk |
integer |
purchaseable |
boolean |
revision |
string| null |
salable |
boolean |
thumbnail |
string |
trackable |
boolean |
units |
string| null |
virtual |
boolean |
PatchedMetadata¶
Name | Type |
---|---|
metadata |
PatchedPurchaseOrder¶
Name | Type |
---|---|
address |
integer| null |
address_detail |
|
barcode_hash |
string |
complete_date |
string(date)| null |
completed_lines |
integer |
contact |
integer| null |
contact_detail |
|
creation_date |
string(date)| null |
description |
string |
issue_date |
string(date)| null |
line_items |
integer |
link |
string(uri) |
notes |
string| null |
order_currency |
|
overdue |
boolean |
pk |
integer |
project_code |
integer| null |
project_code_detail |
|
reference |
string |
responsible |
integer| null |
responsible_detail |
|
status |
integer |
status_text |
string |
supplier |
integer| null |
supplier_reference |
string |
target_date |
string(date)| null |
total_price |
string(decimal)| null |
PatchedPurchaseOrderAttachment¶
Name | Type |
---|---|
attachment |
string(uri) |
comment |
string |
filename |
string |
link |
string(uri)| null |
order |
integer |
pk |
integer |
upload_date |
string(date) |
user |
integer| null |
user_detail |
PatchedPurchaseOrderExtraLine¶
Name | Type |
---|---|
context |
|
description |
string |
link |
string(uri) |
notes |
string |
order |
integer |
pk |
integer |
price |
string(decimal)| null |
price_currency |
|
quantity |
number(double) |
reference |
string |
PatchedPurchaseOrderLineItem¶
Name | Type |
---|---|
auto_pricing |
boolean |
destination |
integer| null |
destination_detail |
|
link |
string(uri) |
merge_items |
boolean |
notes |
string |
order |
integer |
overdue |
boolean |
part |
integer| null |
pk |
integer |
purchase_price |
string(decimal)| null |
purchase_price_currency |
|
quantity |
number(double) |
received |
number(double) |
reference |
string |
target_date |
string(date)| null |
total_price |
number(double) |
PatchedReturnOrder¶
Name | Type |
---|---|
address |
integer| null |
address_detail |
|
barcode_hash |
string |
completed_lines |
integer |
contact |
integer| null |
contact_detail |
|
creation_date |
string(date)| null |
customer |
integer| null |
customer_reference |
string |
description |
string |
line_items |
integer |
link |
string(uri) |
notes |
string| null |
order_currency |
|
overdue |
boolean |
pk |
integer |
project_code |
integer| null |
project_code_detail |
|
reference |
string |
responsible |
integer| null |
responsible_detail |
|
status |
integer |
status_text |
string |
target_date |
string(date)| null |
total_price |
string(decimal)| null |
PatchedReturnOrderAttachment¶
Name | Type |
---|---|
attachment |
string(uri) |
comment |
string |
filename |
string |
link |
string(uri)| null |
order |
integer |
pk |
integer |
upload_date |
string(date) |
user |
integer| null |
user_detail |
PatchedReturnOrderExtraLine¶
Name | Type |
---|---|
context |
|
description |
string |
link |
string(uri) |
notes |
string |
order |
integer |
pk |
integer |
price |
string(decimal)| null |
price_currency |
|
quantity |
number(double) |
reference |
string |
PatchedReturnOrderLineItem¶
Name | Type |
---|---|
item |
integer |
item_detail |
|
link |
string(uri) |
notes |
string |
order |
integer |
outcome |
|
pk |
integer |
price |
string(decimal)| null |
price_currency |
|
received_date |
string(date)| null |
reference |
string |
target_date |
string(date)| null |
PatchedSalesOrder¶
Name | Type |
---|---|
address |
integer| null |
address_detail |
|
barcode_hash |
string |
completed_lines |
integer |
contact |
integer| null |
contact_detail |
|
creation_date |
string(date)| null |
customer |
integer| null |
customer_reference |
string |
description |
string |
line_items |
integer |
link |
string(uri) |
notes |
string| null |
order_currency |
|
overdue |
boolean |
pk |
integer |
project_code |
integer| null |
project_code_detail |
|
reference |
string |
responsible |
integer| null |
responsible_detail |
|
shipment_date |
string(date)| null |
status |
integer |
status_text |
string |
target_date |
string(date)| null |
total_price |
string(decimal)| null |
PatchedSalesOrderAllocation¶
Name | Type |
---|---|
item |
integer |
item_detail |
|
line |
integer |
location |
integer |
order |
integer |
part |
integer |
part_detail |
|
pk |
integer |
quantity |
number(double) |
serial |
string |
shipment |
integer |
shipment_date |
string(date) |
PatchedSalesOrderAttachment¶
Name | Type |
---|---|
attachment |
string(uri) |
comment |
string |
filename |
string |
link |
string(uri)| null |
order |
integer |
pk |
integer |
upload_date |
string(date) |
user |
integer| null |
user_detail |
PatchedSalesOrderExtraLine¶
Name | Type |
---|---|
context |
|
description |
string |
link |
string(uri) |
notes |
string |
order |
integer |
pk |
integer |
price |
string(decimal)| null |
price_currency |
|
quantity |
number(double) |
reference |
string |
PatchedSalesOrderLineItem¶
Name | Type |
---|---|
allocated |
number(double) |
available_stock |
number(double) |
available_variant_stock |
number(double) |
link |
string(uri) |
notes |
string |
order |
integer |
overdue |
boolean |
part |
integer| null |
pk |
integer |
quantity |
number(double) |
reference |
string |
sale_price |
string(decimal)| null |
sale_price_currency |
|
shipped |
number(double) |
target_date |
string(date)| null |
PatchedSalesOrderShipment¶
Name | Type |
---|---|
allocations |
Array<SalesOrderAllocation> |
checked_by |
integer| null |
delivery_date |
string(date)| null |
invoice_number |
string |
link |
string(uri) |
notes |
string| null |
order |
integer |
order_detail |
|
pk |
integer |
reference |
string |
shipment_date |
string(date)| null |
tracking_number |
string |
ProjectCode¶
Name | Type |
---|---|
code |
string |
description |
string |
pk |
integer |
responsible |
integer| null |
responsible_detail |
PurchaseOrder¶
Name | Type |
---|---|
address |
integer| null |
address_detail |
|
barcode_hash |
string |
complete_date |
string(date)| null |
completed_lines |
integer |
contact |
integer| null |
contact_detail |
|
creation_date |
string(date)| null |
description |
string |
issue_date |
string(date)| null |
line_items |
integer |
link |
string(uri) |
notes |
string| null |
order_currency |
|
overdue |
boolean |
pk |
integer |
project_code |
integer| null |
project_code_detail |
|
reference |
string |
responsible |
integer| null |
responsible_detail |
|
status |
integer |
status_text |
string |
supplier |
integer| null |
supplier_reference |
string |
target_date |
string(date)| null |
total_price |
string(decimal)| null |
PurchaseOrderAttachment¶
Name | Type |
---|---|
attachment |
string(uri) |
comment |
string |
filename |
string |
link |
string(uri)| null |
order |
integer |
pk |
integer |
upload_date |
string(date) |
user |
integer| null |
user_detail |
PurchaseOrderComplete¶
Name | Type |
---|---|
accept_incomplete |
boolean |
PurchaseOrderExtraLine¶
Name | Type |
---|---|
context |
|
description |
string |
link |
string(uri) |
notes |
string |
order |
integer |
pk |
integer |
price |
string(decimal)| null |
price_currency |
|
quantity |
number(double) |
reference |
string |
PurchaseOrderLineItem¶
Name | Type |
---|---|
auto_pricing |
boolean |
destination |
integer| null |
destination_detail |
|
link |
string(uri) |
merge_items |
boolean |
notes |
string |
order |
integer |
overdue |
boolean |
part |
integer| null |
pk |
integer |
purchase_price |
string(decimal)| null |
purchase_price_currency |
|
quantity |
number(double) |
received |
number(double) |
reference |
string |
target_date |
string(date)| null |
total_price |
number(double) |
PurchaseOrderLineItemReceive¶
Name | Type |
---|---|
barcode |
string| null |
batch_code |
string |
line_item |
integer |
location |
integer| null |
quantity |
string(decimal) |
serial_numbers |
string |
status |
PurchaseOrderReceive¶
Name | Type |
---|---|
items |
Array<PurchaseOrderLineItemReceive> |
location |
integer| null |
ReturnOrder¶
Name | Type |
---|---|
address |
integer| null |
address_detail |
|
barcode_hash |
string |
completed_lines |
integer |
contact |
integer| null |
contact_detail |
|
creation_date |
string(date)| null |
customer |
integer| null |
customer_reference |
string |
description |
string |
line_items |
integer |
link |
string(uri) |
notes |
string| null |
order_currency |
|
overdue |
boolean |
pk |
integer |
project_code |
integer| null |
project_code_detail |
|
reference |
string |
responsible |
integer| null |
responsible_detail |
|
status |
integer |
status_text |
string |
target_date |
string(date)| null |
total_price |
string(decimal)| null |
ReturnOrderAttachment¶
Name | Type |
---|---|
attachment |
string(uri) |
comment |
string |
filename |
string |
link |
string(uri)| null |
order |
integer |
pk |
integer |
upload_date |
string(date) |
user |
integer| null |
user_detail |
ReturnOrderExtraLine¶
Name | Type |
---|---|
context |
|
description |
string |
link |
string(uri) |
notes |
string |
order |
integer |
pk |
integer |
price |
string(decimal)| null |
price_currency |
|
quantity |
number(double) |
reference |
string |
ReturnOrderLineItem¶
Name | Type |
---|---|
item |
integer |
item_detail |
|
link |
string(uri) |
notes |
string |
order |
integer |
outcome |
|
pk |
integer |
price |
string(decimal)| null |
price_currency |
|
received_date |
string(date)| null |
reference |
string |
target_date |
string(date)| null |
ReturnOrderLineItemReceive¶
Name | Type |
---|---|
item |
integer |
ReturnOrderReceive¶
Name | Type |
---|---|
items |
Array<ReturnOrderLineItemReceive> |
location |
integer |
SalePriceCurrencyEnum¶
Type: string
SalesOrder¶
Name | Type |
---|---|
address |
integer| null |
address_detail |
|
barcode_hash |
string |
completed_lines |
integer |
contact |
integer| null |
contact_detail |
|
creation_date |
string(date)| null |
customer |
integer| null |
customer_reference |
string |
description |
string |
line_items |
integer |
link |
string(uri) |
notes |
string| null |
order_currency |
|
overdue |
boolean |
pk |
integer |
project_code |
integer| null |
project_code_detail |
|
reference |
string |
responsible |
integer| null |
responsible_detail |
|
shipment_date |
string(date)| null |
status |
integer |
status_text |
string |
target_date |
string(date)| null |
total_price |
string(decimal)| null |
SalesOrderAllocation¶
Name | Type |
---|---|
item |
integer |
line |
integer |
location |
integer |
order |
integer |
part |
integer |
pk |
integer |
quantity |
number(double) |
serial |
string |
shipment |
integer |
shipment_date |
string(date) |
SalesOrderAttachment¶
Name | Type |
---|---|
attachment |
string(uri) |
comment |
string |
filename |
string |
link |
string(uri)| null |
order |
integer |
pk |
integer |
upload_date |
string(date) |
user |
integer| null |
user_detail |
SalesOrderComplete¶
Name | Type |
---|---|
accept_incomplete |
boolean |
SalesOrderExtraLine¶
Name | Type |
---|---|
context |
|
description |
string |
link |
string(uri) |
notes |
string |
order |
integer |
pk |
integer |
price |
string(decimal)| null |
price_currency |
|
quantity |
number(double) |
reference |
string |
SalesOrderLineItem¶
Name | Type |
---|---|
allocated |
number(double) |
available_stock |
number(double) |
available_variant_stock |
number(double) |
link |
string(uri) |
notes |
string |
order |
integer |
overdue |
boolean |
part |
integer| null |
pk |
integer |
quantity |
number(double) |
reference |
string |
sale_price |
string(decimal)| null |
sale_price_currency |
|
shipped |
number(double) |
target_date |
string(date)| null |
SalesOrderSerialAllocation¶
Name | Type |
---|---|
line_item |
integer |
quantity |
integer |
serial_numbers |
string |
shipment |
integer |
SalesOrderShipment¶
Name | Type |
---|---|
allocations |
Array<SalesOrderAllocation> |
checked_by |
integer| null |
delivery_date |
string(date)| null |
invoice_number |
string |
link |
string(uri) |
notes |
string| null |
order |
integer |
order_detail |
|
pk |
integer |
reference |
string |
shipment_date |
string(date)| null |
tracking_number |
string |
SalesOrderShipmentAllocation¶
Name | Type |
---|---|
items |
Array<SalesOrderShipmentAllocationItem> |
shipment |
integer |
SalesOrderShipmentAllocationItem¶
Name | Type |
---|---|
line_item |
integer |
quantity |
string(decimal) |
stock_item |
integer |
SalesOrderShipmentComplete¶
Name | Type |
---|---|
delivery_date |
string(date)| null |
invoice_number |
string |
link |
string(uri) |
shipment_date |
string(date)| null |
tracking_number |
string |
Status2a7Enum¶
Type: integer
StockItem¶
Name | Type |
---|---|
allocated |
number(double) |
barcode_hash |
string |
batch |
string| null |
belongs_to |
integer| null |
build |
integer| null |
child_items |
integer |
consumed_by |
integer| null |
customer |
integer| null |
delete_on_deplete |
boolean |
expired |
boolean |
expiry_date |
string(date)| null |
installed_items |
integer |
is_building |
boolean |
link |
string(uri) |
location |
integer| null |
notes |
string| null |
owner |
integer| null |
packaging |
string| null |
part |
integer |
pk |
integer |
purchase_order |
integer| null |
purchase_order_reference |
string |
purchase_price |
string(decimal)| null |
purchase_price_currency |
|
quantity |
number(double) |
sales_order |
integer| null |
sales_order_reference |
string |
serial |
string| null |
stale |
boolean |
status |
|
status_text |
string |
stocktake_date |
string(date)| null |
supplier_part |
integer| null |
tags |
Array<string> |
tracking_items |
integer |
updated |
string(date-time)| null |
use_pack_size |
boolean| null |
User¶
Name | Type |
---|---|
email |
string(email) |
first_name |
string |
last_name |
string |
pk |
integer |
username |
string |
Security schemes¶
Name | Type | Scheme | Description |
---|---|---|---|
basicAuth | http | basic | |
cookieAuth | apiKey | ||
tokenAuth | apiKey | Token-based authentication with required prefix "Token" |
More documentation¶
More information about InvenTree in the official docs