- General
- Endpoints
Create New Order
POST
/order
Order
NOTE
It is not possible to update both in one request.
Request
Query Params
show
string
optional
Example:
id,updated_at
hide
string
optional
Example:
created_at,updated_at
Header Params
x-api-key
string
required
Default:
{{api_key}}
x-api-env
string
required
Default:
{{api_env}}
Body Params application/json
project_id
string <uuid> | null
optional
<= 36 characters
Default:
NULL
warehouse_id
string <uuid> | null
optional
<= 36 characters
Default:
NULL
relation_id
string <uuid> | null
optional
<= 36 characters
Default:
NULL
item_id
string <uuid> | null
optional
<= 36 characters
Default:
NULL
address_id
string <uuid> | null
optional
<= 36 characters
Default:
NULL
collection_id
string <uuid>
optional
meta
object | null
optional
transaction
string | null
optional
<= 36 characters
Default:
NULL
code
string
optional
<= 100 characters
type
enum<string> | enum<null>
optional
Allowed values:
ProductionProjectPurchaseQuotationSales
sub_type
string | null
optional
<= 25 characters
Default:
NULL
status
string | null
optional
<= 10 characters
Default:
NULL
note
string | null
optional
<= 65535 characters
Default:
NULL
description
string
optional
<= 150 characters
Default:
NULL
contact
string | null
optional
<= 100 characters
Default:
NULL
date
string <date> | null
optional
Default:
NULL
promised_date
string <date> | null
optional
Default:
NULL
desired_date
string <date> | null
optional
Default:
NULL
delivered_date
string <date> | null
optional
Default:
NULL
quantity
number | null
optional
Default:
NULL
relation_ref
string | null
optional
<= 255 characters
Default:
NULL
external_url
string | null
optional
<= 2048 characters
Default:
NULL
Example
{
"type": "Sales"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.vplan.com/v1/order' \
--header 'x-api-key;' \
--header 'x-api-env;' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "Sales"
}'
Responses
🟢201Created
application/json
Body
id
string <uuid>
read-onlyoptional
project_id
string <uuid> | null
optional
<= 36 characters
Default:
NULL
warehouse_id
string <uuid> | null
optional
<= 36 characters
Default:
NULL
relation_id
string <uuid> | null
optional
<= 36 characters
Default:
NULL
item_id
string <uuid> | null
optional
<= 36 characters
Default:
NULL
address_id
string <uuid> | null
optional
<= 36 characters
Default:
NULL
collection_id
string <uuid>
optional
meta
object | null
optional
transaction
string | null
optional
<= 36 characters
Default:
NULL
code
string
optional
<= 100 characters
type
enum<string> | enum<null>
optional
Allowed values:
ProductionProjectPurchaseQuotationSales
sub_type
string | null
optional
<= 25 characters
Default:
NULL
status
string | null
optional
<= 10 characters
Default:
NULL
note
string | null
optional
<= 65535 characters
Default:
NULL
description
string
optional
<= 150 characters
Default:
NULL
contact
string | null
optional
<= 100 characters
Default:
NULL
date
string <date> | null
optional
Default:
NULL
promised_date
string <date> | null
optional
Default:
NULL
desired_date
string <date> | null
optional
Default:
NULL
delivered_date
string <date> | null
optional
Default:
NULL
quantity
number | null
optional
Default:
NULL
relation_ref
string | null
optional
<= 255 characters
Default:
NULL
external_url
string | null
optional
<= 2048 characters
Default:
NULL
external_ref
string | null
read-onlyoptional
Example:
fb1033a2ed70
created_at
string <date-time>
read-onlyoptional
Example:
2024-04-11T10:22:15Z
updated_at
string <date-time>
read-onlyoptional
Example:
2024-04-11T10:22:15Z
Example
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"project_id": "NULL",
"warehouse_id": "NULL",
"relation_id": "NULL",
"item_id": "NULL",
"address_id": "NULL",
"collection_id": "4bdef85c-3f50-4006-a713-2350da665f80",
"meta": {},
"transaction": "NULL",
"code": "string",
"type": "Production",
"sub_type": "NULL",
"status": "NULL",
"note": "NULL",
"description": "NULL",
"contact": "NULL",
"date": "NULL",
"promised_date": "NULL",
"desired_date": "NULL",
"delivered_date": "NULL",
"quantity": "NULL",
"relation_ref": "NULL",
"external_url": "NULL",
"external_ref": "fb1033a2ed70",
"created_at": "2024-04-11T10:22:15Z",
"updated_at": "2024-04-11T10:22:15Z"
}
🟠422Unprocessable Content
🟠401Not Logged In
Modified at 2024-10-14 12:07:08