Query parameters
-
limit number(int32)
The maximum number of sales orders to retrieve.
-
continuationToken string
A token for continuing the retrieval of sales orders.
-
date string(date)
A specific date to filter sales orders.
-
dateFrom string(date)
A start date to filter sales orders.
-
dateTo string(date)
An end date to filter sales orders.
-
status string
Filter sales orders by their status.
Values are
Draft
,Proposal
,Confirmed
,Invoice
, orAdvanceInvoice
. -
customerId string
Filter sales orders by customer ID.
-
invoiceNumber string
Filter sales orders by invoice number.
-
createdFrom string(date-time)
A start date-time to filter sales orders by creation time.
-
createdTo string(date-time)
An end date-time to filter sales orders by creation time.
-
modifiedFrom string(date-time)
A start date-time to filter sales orders by modification time.
-
modifiedTo string(date-time)
An end date-time to filter sales orders by modification time.
GET /salesorders
curl \
-X GET https://rest.api.24sevenoffice.com/v1/salesorders \
-H "Authorization: string"
Response examples (200)
[
{
"id": 1234,
"date": "2023-06-01",
"memo": "Urgent delivery.",
"status": "Invoice",
"invoice": {
"date": "2023-06-01",
"number": 123,
"dueDate": "2023-06-15",
"remittanceReference": "ABC12345"
},
"customer": {
"id": 12345,
"gln": "1234567890123",
"city": "Fornebu",
"name": "ABC Corporation",
"street": "Hovedgata 1",
"postalArea": "Fornebu",
"postalCode": "0123",
"countryCode": "NO",
"countrySubdivision": "Viken",
"organizationNumber": "123456789"
},
"createdAt": "2023-06-01T12:00:00Z",
"salesType": {
"id": 10
},
"modifiedAt": "2023-06-02T15:30:00Z",
"internalMemo": "Customer requested special packaging.",
"deliveryCustomer": {
"id": 12345,
"city": "Fornebu",
"name": "ABC Corporation",
"street": "Hovedgata 1",
"postalArea": "Fornebu",
"postalCode": "0123",
"countryCode": "NO",
"countrySubdivision": "Viken"
}
},
{
"id": 5678,
"date": "2023-07-01",
"memo": "Express delivery.",
"status": "Draft",
"invoice": {
"date": "2023-07-01",
"dueDate": "2023-07-15"
},
"customer": {
"id": 67890,
"gln": "9876543210987",
"city": "Oslo",
"name": "ZYX Ltd.",
"street": "Sentralplass 5",
"postalArea": "Oslo",
"postalCode": "0456",
"countryCode": "NO",
"countrySubdivision": "Oslo",
"organizationNumber": "987654321"
},
"createdAt": "2023-07-01T08:30:00Z",
"salesType": {
"id": 20
},
"modifiedAt": "2023-07-02T10:00:00Z",
"internalMemo": "Customer needs delivery before end of month.",
"deliveryCustomer": {
"id": 67890,
"city": "Oslo",
"name": "John Smith at ZYX Ltd.",
"street": "Sentralplass 5",
"postalArea": "Oslo",
"postalCode": "0456",
"countryCode": "NO",
"countrySubdivision": "Oslo"
}
},
{
"id": 91011,
"date": "2023-08-01",
"memo": "Handle with care.",
"status": "AdvanceInvoice",
"invoice": {
"date": "2023-08-01",
"number": 789,
"dueDate": "2023-08-15",
"remittanceReference": "DEF78901"
},
"customer": {
"id": 11223,
"gln": "5647382910234",
"city": "Bergen",
"name": "DEF Industries",
"street": "Industriveien 10",
"postalArea": "Bergen",
"postalCode": "5001",
"countryCode": "NO",
"countrySubdivision": "Vestland",
"organizationNumber": "564738291"
},
"createdAt": "2023-08-01T09:00:00Z",
"salesType": {
"id": 30
},
"modifiedAt": "2023-08-02T11:15:00Z",
"internalMemo": "Customer has specific handling instructions.",
"deliveryCustomer": {
"id": 11223,
"city": "Bergen",
"name": "DEF Industries",
"street": "Industriveien 10",
"postalArea": "Bergen",
"postalCode": "5001",
"countryCode": "NO",
"countrySubdivision": "Vestland"
}
}
]
Response examples (200)
# Headers
Link: string
Access-Control-Allow-Origin: string
Access-Control-Allow-Credentials: string
X-Trace-Id: string
# Payload
{
"_embedded": {
"salesorders": [
{
"id": 1234,
"customer": {
"id": 12345,
"organizationNumber": "123456789",
"gln": "1234567890123",
"name": "ABC Corporation",
"street": "Hovedgata 1",
"postalCode": "0123",
"postalArea": "Fornebu",
"city": "Fornebu",
"countrySubdivision": "Viken",
"countryCode": "NO"
},
"status": "Invoice",
"deliveryCustomer": {
"id": 12345,
"name": "ABC Corporation",
"street": "Hovedgata 1",
"postalCode": "0123",
"postalArea": "Fornebu",
"city": "Fornebu",
"countrySubdivision": "Viken",
"countryCode": "NO"
},
"invoice": {
"number": 123,
"date": "2023-06-01",
"dueDate": "2023-06-15",
"remittanceReference": "ABC12345"
},
"date": "2023-06-01",
"internalMemo": "Customer requested special packaging.",
"memo": "Urgent delivery.",
"salesType": {
"id": 10
},
"createdAt": "2023-06-01T12:00:00Z",
"modifiedAt": "2023-06-02T15:30:00Z"
}
]
}
}