Rentals
Order
The order, as returned by the API.
Schemas: OrderDto, OrderDetailDto
Example
Generated from the schema
A rental order: its contact, project, dates, totals and status. status carries the raw status, while the status filter of the list uses operational buckets (see the statuses of the API). Reading an order by id uses the tenancy inherited from the parent account, but the list is bounded to the subscription that owns the key. externalReference is readable but not writable through the API. Archived orders are invisible: no list returns them and their GET answers 404. Restore one with PUT /api and archived: false. The lines are read with GET /api. The detail read, GET /api, adds the billing and shipping addresses, the contact person and the quotes, invoices and proformas of the order.
Attributes
Unique order identifier.
Human-readable order number.
External reference of the order (for example, from the customer system); null if not recorded.
Raw order status as stored in the database (12 values): draft, reserved, prepared_partially, prepared, picked_up_partially, picked_up, returned_partially, returned, checked_in_partially, checked_in, archived or cancelled. archived is part of the stored set but an archived order is not visible to the API, so you will not observe it.
Available options: draft, reserved, prepared_partially, prepared, picked_up_partially, picked_up, returned_partially, returned, checked_in_partially, checked_in, archived, cancelled
Start of the rental period in ISO 8601 with offset.
End of the rental period in ISO 8601 with offset.
Number of billable rental days; null if not calculated.
Identifier of the project the order belongs to; null if not linked.
Name of the project the order belongs to; null if not linked.
Compact reference to the order contact; null if none.
Show child attributesHide child attributes
Unique contact identifier.
Contact name.
Number of items in the order.
Subtotal before discounts and taxes, as a decimal string "1234.50" (ROUND_HALF_UP).
Limits: pattern ^-?\d+\.\d{2}$
Total discounts as a decimal string "1234.50" (ROUND_HALF_UP); null if there is no discount.
Limits: pattern ^-?\d+\.\d{2}$
Insurance total as a decimal string "1234.50" (ROUND_HALF_UP).
Limits: pattern ^-?\d+\.\d{2}$
Deposit total as a decimal string "1234.50" (ROUND_HALF_UP).
Limits: pattern ^-?\d+\.\d{2}$
Tax total as a decimal string "1234.50" (ROUND_HALF_UP).
Limits: pattern ^-?\d+\.\d{2}$
Taxable base (net before taxes) as a decimal string "1234.50" (ROUND_HALF_UP).
Limits: pattern ^-?\d+\.\d{2}$
Total including taxes, as a decimal string "1234.50" (ROUND_HALF_UP).
Limits: pattern ^-?\d+\.\d{2}$
Custom field values by custom field identifier; the definitions are in /api.
Source the order was created from (for example web, mobile, admin); null if not recorded.
Creation date in ISO 8601 with offset.
Last update date in ISO 8601 with offset.
Billing address of the order; null if none.
Show child attributesHide child attributes
Descriptive label of the address; null if not recorded.
First address line; null if not recorded.
Second address line; null if not recorded.
City; null if not recorded.
Province or region; null if not recorded.
Postal code; null if not recorded.
Country; null if not recorded.
Shipping address of the order; null if none.
Show child attributesHide child attributes
Descriptive label of the address; null if not recorded.
First address line; null if not recorded.
Second address line; null if not recorded.
City; null if not recorded.
Province or region; null if not recorded.
Postal code; null if not recorded.
Country; null if not recorded.
Contact person linked to the order; null if none.
Show child attributesHide child attributes
Unique contact identifier.
Contact name.
Informational references to quotes generated from the order.
Show child attributesHide child attributes
Unique identifier of the referenced document.
Document number; null until it is numbered.
Document status at the time the reference was written; null if not recorded. Informational: it may be out of date.
Informational references to invoices generated from the order.
Show child attributesHide child attributes
Unique identifier of the referenced document.
Document number; null until it is numbered.
Document status at the time the reference was written; null if not recorded. Informational: it may be out of date.
Informational references to proformas generated from the order.
Show child attributesHide child attributes
Unique identifier of the referenced document.
Document number; null until it is numbered.
Document status at the time the reference was written; null if not recorded. Informational: it may be out of date.
Values
- status
draft,reserved,prepared_partially,prepared,picked_up_partially,picked_up,returned_partially,returned,checked_in_partially,checked_in,archived,cancelled
Returned by
GET /api/v1/orders— List ordersGET /api/v1/orders/{orderId}— Get an order
Modified by
POST /api/v1/orders— Create an orderPATCH /api/v1/orders/{orderId}— Update the header of an orderPOST /api/v1/orders/{orderId}/cancel— Cancel an orderPOST /api/v1/orders/{orderId}/reserve— Reserve an orderPOST /api/v1/orders/{orderId}/unreserve— Unreserve an order
Was this page helpful?