---
title: "Order Lines schema"
method: GET
path: "/salesordersLines/schema"
tags: ["Orders / Entity"]
---

# Order Lines schema

`GET /salesordersLines/schema`

## Request

- Base URL: `https://api.forcemanager.com/api/v4`
- URL: `https://api.forcemanager.com/api/v4/salesordersLines/schema`
- Auth: API key in header `X-Session-Key`

The Schema is metadata that tells you how the data is structured for a specific resource.
The Schema defines all the fields that exist for an Order Line object.

You will only receive the Order Line Schema after first providing the Session Key. To know how you can obtain the Session Key, [go to Authentication](#tag/authentication/POST/login).

**HEADERS**

|**Parameter**|**Value**|**Description**|
|---|---|---|
| Content-Type | application/json | Language in which all request and response bodies are encoded |
| Accept | \*/\* | Any data of whatever mime type is accepted |
| X-Session-Key | AUTH_TOKEN | This field must be completed with the token obtained at the authentication |

**RESPONSE**

The Order Line Schema is a fields structure with the resource. For each property the API Schema will provide you some information:
* Description of each property
* Definition of the data type for each property
* Whether each property is required or optional


|**Attribute**|**Type**|**Description**|
|---|---|---|
| Field name | Object | Name of the attribute in ForceManager Schema |
| Properties | Object | Definition of the entity |
| Id | Object | Identifier of the value of field name |
| Value | Object | The value of the field name |
| Type | Object, String, Integer, Number, Boolean, Null | The kind of data you have to complete the field with |
| Required | Array | If it’s a mandatory field or not |


Fields like "Value list" have extra information:


| Attribute | Data Type | Description |
|--|--|--|
| Table | String | The name of the values list table |
| Type | Object, Null | The kind of data you will receive in the response |

**RESPONSE CODES**

|**Status**|**Description**|
|---|---|
| 200 OK | Shows if operation succeeded |
| 400 Bad Request | Shows when an invalid request or the requested service is not available |

## Headers

- `Accept` string

## Response `200`

Order Lines schema

---

[API](https://skmtc.dev/forcemanager/apis/sage-sales-management-public-api-documentation-for-developer.md) · [All operations](https://skmtc.dev/forcemanager/apis/sage-sales-management-public-api-documentation-for-developer/llms.txt) · [OpenAPI document](https://skmtc.dev/forcemanager/apis/sage-sales-management-public-api-documentation-for-developer/revisions/87db17204e2f?raw)
