# Create a sales order **POST /salesorders** Create a new sales order with customer details and order information. ## Servers - https://rest.api.24sevenoffice.com/v1: https://rest.api.24sevenoffice.com/v1 () ## Authentication methods - Tfso ## Parameters #### Headers - **Authorization** (string) Authorization header ## Body parameters Content-type: application/json - **customer** (object) Customer details for the sales order. Note that the `customer` object for the `/salesOrders` endpoint is not the same as the customer that can be retrieved from the `/customers` endpoint, even though both share the same ID reference and their schemas are similar. The `customer` object in the context of `/salesOrders` contains the customer details as they were at the time the sales order was created. In contrast, the `/customers` endpoint always provides the latest state values for the customer properties. - **currency** (object) - **status** (string) Current status of the sales order. - **deliveryCustomer** (object) Delivery details for the sales order. - **invoice** (object) Details of an invoice associated with a sales order. - **date** (string(date)) The date when the sales order was issued. - **internalMemo** (string) An internal memo for the sales order. - **memo** (string) A memo or comments for the sales order. - **yourReference** (object) Details of the contact person at the customer side who is the sales order's point of contact at the customer - **ourReference** (object) Details of the person at your organization who is the sales order's point of contact within your organization. It should be one of the people provided by `/organization/people` endpoint. - **referenceNumber** (string) A reference number for the sales order, like a purchase order number provided by the customer. - **salesType** (object) The sales type for the sales order. - **createdAt** (string(date-time)) A timestamp for when a record was created, in ISO 8601 format. - **modifiedAt** (string(date-time)) A timestamp for when one of the properties of a record was last modified, in ISO 8601 format. - **dimensions** (array[object]) A list of dimensions such as department or project. ## Responses ### 200: OK #### Headers - **Access-Control-Allow-Origin** (string) - **Access-Control-Allow-Credentials** (string) - **X-Trace-Id** (string) #### Body Parameters: application/json (object) - **id** (integer) A unique identifier for the sales order within Finago Office ERP. - **customer** (object) Customer details for the sales order. Note that the `customer` object for the `/salesOrders` endpoint is not the same as the customer that can be retrieved from the `/customers` endpoint, even though both share the same ID reference and their schemas are similar. The `customer` object in the context of `/salesOrders` contains the customer details as they were at the time the sales order was created. In contrast, the `/customers` endpoint always provides the latest state values for the customer properties. - **currency** (object) - **status** (string) Current status of the sales order. - **deliveryCustomer** (object) Delivery details for the sales order. - **invoice** (object) Details of an invoice associated with a sales order. - **date** (string(date)) The date when the sales order was issued. - **internalMemo** (string) An internal memo for the sales order. - **memo** (string) A memo or comments for the sales order. - **yourReference** (object) Details of the contact person at the customer side who is the sales order's point of contact at the customer - **ourReference** (object) Details of the person at your organization who is the sales order's point of contact within your organization. It should be one of the people provided by `/organization/people` endpoint. - **referenceNumber** (string) A reference number for the sales order, like a purchase order number provided by the customer. - **salesType** (object) The sales type for the sales order. - **createdAt** (string(date-time)) A timestamp for when a record was created, in ISO 8601 format. - **modifiedAt** (string(date-time)) A timestamp for when one of the properties of a record was last modified, in ISO 8601 format. - **grossAmount** (number) The total amount for the sales order, including taxes. - **netAmount** (number) The total amount for the sales order, excluding taxes. - **taxAmount** (number) The total tax amount for the sales order. - **dimensions** (array[object]) A list of dimensions such as department or project. ### 400: Bad request #### Headers - **Access-Control-Allow-Origin** (string) - **Access-Control-Allow-Credentials** (string) - **X-Trace-Id** (string) #### Body Parameters: application/json (object) - **error** (object) Bad request error details. - **trackingId** (string) A tracking identifier for the bad request error. [Powered by Bump.sh](https://bump.sh)