Sales Orders
Sales Orders
post
Body
customerstringRequired
pick_locationstring | nullableOptionalDefault:
nullshipping_locationstring | nullableOptionalDefault:
nulldelivery_datestring | nullableOptionalDefault:
nullshipping_namestring | nullableOptionalDefault:
nullshipping_feenumber | nullableOptionalDefault:
nullshipping_fee_taxnumber | nullableOptionalDefault:
nullinvoice_due_atstring | nullableOptionalDefault:
nullpayment_methodstring | nullableOptionalDefault:
nullreferencestring | nullableOptionalDefault:
nullnotesstring | nullableOptionalDefault:
nullstatusstringOptionalDefault:
DRAFTResponses
201
Created
application/json
post
/v1/sales-orders/POST /v1/sales-orders/ HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 324
{
"customer": "text",
"pick_location": "text",
"shipping_location": "text",
"delivery_date": "text",
"shipping_name": "text",
"shipping_fee": 1,
"shipping_fee_tax": 1,
"invoice_due_at": "text",
"payment_method": "text",
"reference": "text",
"notes": "text",
"status": "DRAFT",
"line_items": [
{
"product_id": 1,
"qty": 1,
"carton_qty": 1,
"carton_price": 1
}
]
}201
Created
{
"id": "text",
"type": "Internal",
"supplier_id": 1,
"order_number": "text",
"source": "text",
"status": "text",
"reference": "text",
"created_at": "text",
"modified_at": "text",
"invoice_due_at": "text",
"shipped_at": "text",
"paid_at": "text",
"completed_at": "text",
"pick_location_id": "text",
"pick_location_name": "text",
"delivery_date": "text",
"currency": "text",
"amount": 1,
"amount_notax": 1,
"amount_tax": 1,
"amount_paid": 1,
"payment_method": "text",
"shipping_name": "text",
"shipping_fee": 1,
"shipping_fee_notax": 1,
"shipping_fee_tax": 1,
"credit_card_fee": 1,
"credit_card_fee_notax": 1,
"credit_card_fee_tax": 1,
"credit": 1,
"credit_notax": 1,
"credit_tax": 1,
"notes": "text",
"line_items": [
{
"id": 1,
"order_id": 1,
"product_id": 1,
"sku": "text",
"barcode": "text",
"name": "text",
"qty": 1,
"carton_qty": 1,
"carton_price": 1,
"amount": 1,
"amount_notax": 1,
"amount_tax": 1
}
],
"customer": {
"id": "text",
"type": "Internal",
"name": "text",
"abn": "text",
"account_number": "text",
"website": "text",
"logo_url": "text",
"payment_terms": 1,
"payment_terms_period": "text",
"credit_hold": true,
"notes": "text",
"contacts": [
{
"first_name": "text",
"last_name": "text",
"email": "text",
"phone": "text",
"mobile_area": "text",
"mobile_number": "text",
"role": "text"
}
],
"locations": [
{
"id": "text",
"name": "text",
"is_billing": true,
"is_shipping": true,
"manage_stock": true,
"address": "text",
"suburb": "text",
"state": "text",
"postcode": "text",
"country": "text",
"location": {},
"opening_hours": {}
}
],
"groups": [
{
"id": 1,
"name": "text"
}
],
"billing_location": {
"id": "text",
"name": "text",
"is_billing": true,
"is_shipping": true,
"manage_stock": true,
"address": "text",
"suburb": "text",
"state": "text",
"postcode": "text",
"country": "text",
"location": {},
"opening_hours": {}
},
"shipping_location": {
"id": "text",
"name": "text",
"is_billing": true,
"is_shipping": true,
"manage_stock": true,
"address": "text",
"suburb": "text",
"state": "text",
"postcode": "text",
"country": "text",
"location": {},
"opening_hours": {}
}
}
}get
Query parameters
idstringRequired
Responses
200
OK
application/json
get
/v1/sales-orders/getGET /v1/sales-orders/get?id=text HTTP/1.1
Host:
Accept: */*
200
OK
{
"id": "text",
"type": "Internal",
"supplier_id": 1,
"order_number": "text",
"source": "text",
"status": "text",
"reference": "text",
"created_at": "text",
"modified_at": "text",
"invoice_due_at": "text",
"shipped_at": "text",
"paid_at": "text",
"completed_at": "text",
"pick_location_id": "text",
"pick_location_name": "text",
"delivery_date": "text",
"currency": "text",
"amount": 1,
"amount_notax": 1,
"amount_tax": 1,
"amount_paid": 1,
"payment_method": "text",
"shipping_name": "text",
"shipping_fee": 1,
"shipping_fee_notax": 1,
"shipping_fee_tax": 1,
"credit_card_fee": 1,
"credit_card_fee_notax": 1,
"credit_card_fee_tax": 1,
"credit": 1,
"credit_notax": 1,
"credit_tax": 1,
"notes": "text",
"line_items": [
{
"id": 1,
"order_id": 1,
"product_id": 1,
"sku": "text",
"barcode": "text",
"name": "text",
"qty": 1,
"carton_qty": 1,
"carton_price": 1,
"amount": 1,
"amount_notax": 1,
"amount_tax": 1
}
],
"customer": {
"id": "text",
"type": "Internal",
"name": "text",
"abn": "text",
"account_number": "text",
"website": "text",
"logo_url": "text",
"payment_terms": 1,
"payment_terms_period": "text",
"credit_hold": true,
"notes": "text",
"contacts": [
{
"first_name": "text",
"last_name": "text",
"email": "text",
"phone": "text",
"mobile_area": "text",
"mobile_number": "text",
"role": "text"
}
],
"locations": [
{
"id": "text",
"name": "text",
"is_billing": true,
"is_shipping": true,
"manage_stock": true,
"address": "text",
"suburb": "text",
"state": "text",
"postcode": "text",
"country": "text",
"location": {},
"opening_hours": {}
}
],
"groups": [
{
"id": 1,
"name": "text"
}
],
"billing_location": {
"id": "text",
"name": "text",
"is_billing": true,
"is_shipping": true,
"manage_stock": true,
"address": "text",
"suburb": "text",
"state": "text",
"postcode": "text",
"country": "text",
"location": {},
"opening_hours": {}
},
"shipping_location": {
"id": "text",
"name": "text",
"is_billing": true,
"is_shipping": true,
"manage_stock": true,
"address": "text",
"suburb": "text",
"state": "text",
"postcode": "text",
"country": "text",
"location": {},
"opening_hours": {}
}
}
}get
Query parameters
pageintegerOptional
Responses
200
OK
application/json
get
/v1/sales-orders/latestGET /v1/sales-orders/latest HTTP/1.1
Host:
Accept: */*
200
OK
[
{
"id": "text",
"type": "Internal",
"supplier_id": 1,
"order_number": "text",
"source": "text",
"status": "text",
"reference": "text",
"created_at": "text",
"modified_at": "text",
"invoice_due_at": "text",
"shipped_at": "text",
"paid_at": "text",
"completed_at": "text",
"pick_location_id": "text",
"pick_location_name": "text",
"delivery_date": "text",
"currency": "text",
"amount": 1,
"amount_notax": 1,
"amount_tax": 1,
"amount_paid": 1,
"payment_method": "text",
"shipping_name": "text",
"shipping_fee": 1,
"shipping_fee_notax": 1,
"shipping_fee_tax": 1,
"credit_card_fee": 1,
"credit_card_fee_notax": 1,
"credit_card_fee_tax": 1,
"credit": 1,
"credit_notax": 1,
"credit_tax": 1,
"notes": "text",
"line_items": [
{
"id": 1,
"order_id": 1,
"product_id": 1,
"sku": "text",
"barcode": "text",
"name": "text",
"qty": 1,
"carton_qty": 1,
"carton_price": 1,
"amount": 1,
"amount_notax": 1,
"amount_tax": 1
}
],
"customer": {
"id": "text",
"type": "Internal",
"name": "text",
"abn": "text",
"account_number": "text",
"website": "text",
"logo_url": "text",
"payment_terms": 1,
"payment_terms_period": "text",
"credit_hold": true,
"notes": "text",
"contacts": [
{
"first_name": "text",
"last_name": "text",
"email": "text",
"phone": "text",
"mobile_area": "text",
"mobile_number": "text",
"role": "text"
}
],
"locations": [
{
"id": "text",
"name": "text",
"is_billing": true,
"is_shipping": true,
"manage_stock": true,
"address": "text",
"suburb": "text",
"state": "text",
"postcode": "text",
"country": "text",
"location": {},
"opening_hours": {}
}
],
"groups": [
{
"id": 1,
"name": "text"
}
],
"billing_location": {
"id": "text",
"name": "text",
"is_billing": true,
"is_shipping": true,
"manage_stock": true,
"address": "text",
"suburb": "text",
"state": "text",
"postcode": "text",
"country": "text",
"location": {},
"opening_hours": {}
},
"shipping_location": {
"id": "text",
"name": "text",
"is_billing": true,
"is_shipping": true,
"manage_stock": true,
"address": "text",
"suburb": "text",
"state": "text",
"postcode": "text",
"country": "text",
"location": {},
"opening_hours": {}
}
}
}
]put
Query parameters
idstringRequired
Body
shipping_locationstring | nullableOptionalDefault:
nulldelivery_datestring | nullableOptionalDefault:
nullshipping_namestring | nullableOptionalDefault:
nullshipping_feenumber | nullableOptionalDefault:
nullshipping_fee_taxnumber | nullableOptionalDefault:
nullinvoice_due_atstring | nullableOptionalDefault:
nullpayment_methodstring | nullableOptionalDefault:
nullnotesstring | nullableOptionalDefault:
nullstatusstatus | nullableOptionalDefault:
nullResponses
202
Accepted
application/json
put
/v1/sales-orders/modifyPUT /v1/sales-orders/modify?id=text HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 253
{
"shipping_location": "text",
"delivery_date": "text",
"shipping_name": "text",
"shipping_fee": 1,
"shipping_fee_tax": 1,
"invoice_due_at": "text",
"payment_method": "text",
"notes": "text",
"status": null,
"line_items": [
{
"id": 1,
"qty": 1,
"carton_qty": 1,
"carton_price": 1
}
]
}202
Accepted
{
"id": "text",
"type": "Internal",
"supplier_id": 1,
"order_number": "text",
"source": "text",
"status": "text",
"reference": "text",
"created_at": "text",
"modified_at": "text",
"invoice_due_at": "text",
"shipped_at": "text",
"paid_at": "text",
"completed_at": "text",
"pick_location_id": "text",
"pick_location_name": "text",
"delivery_date": "text",
"currency": "text",
"amount": 1,
"amount_notax": 1,
"amount_tax": 1,
"amount_paid": 1,
"payment_method": "text",
"shipping_name": "text",
"shipping_fee": 1,
"shipping_fee_notax": 1,
"shipping_fee_tax": 1,
"credit_card_fee": 1,
"credit_card_fee_notax": 1,
"credit_card_fee_tax": 1,
"credit": 1,
"credit_notax": 1,
"credit_tax": 1,
"notes": "text",
"line_items": [
{
"id": 1,
"order_id": 1,
"product_id": 1,
"sku": "text",
"barcode": "text",
"name": "text",
"qty": 1,
"carton_qty": 1,
"carton_price": 1,
"amount": 1,
"amount_notax": 1,
"amount_tax": 1
}
],
"customer": {
"id": "text",
"type": "Internal",
"name": "text",
"abn": "text",
"account_number": "text",
"website": "text",
"logo_url": "text",
"payment_terms": 1,
"payment_terms_period": "text",
"credit_hold": true,
"notes": "text",
"contacts": [
{
"first_name": "text",
"last_name": "text",
"email": "text",
"phone": "text",
"mobile_area": "text",
"mobile_number": "text",
"role": "text"
}
],
"locations": [
{
"id": "text",
"name": "text",
"is_billing": true,
"is_shipping": true,
"manage_stock": true,
"address": "text",
"suburb": "text",
"state": "text",
"postcode": "text",
"country": "text",
"location": {},
"opening_hours": {}
}
],
"groups": [
{
"id": 1,
"name": "text"
}
],
"billing_location": {
"id": "text",
"name": "text",
"is_billing": true,
"is_shipping": true,
"manage_stock": true,
"address": "text",
"suburb": "text",
"state": "text",
"postcode": "text",
"country": "text",
"location": {},
"opening_hours": {}
},
"shipping_location": {
"id": "text",
"name": "text",
"is_billing": true,
"is_shipping": true,
"manage_stock": true,
"address": "text",
"suburb": "text",
"state": "text",
"postcode": "text",
"country": "text",
"location": {},
"opening_hours": {}
}
}
}delete
Query parameters
idstringRequired
Responses
202
Accepted
No content
delete
/v1/sales-orders/modifyDELETE /v1/sales-orders/modify?id=text HTTP/1.1
Host:
Accept: */*
202
Accepted
No content