POST
/
accounting
/
sales_orders
/
all
curl --request POST \
  --url https://api.rootfi.dev/accounting/sales_orders/all \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "take": 10,
  "skip": 0,
  "orderBy": {
    "total_amount": "asc"
  },
  "filter": {
    "status": {
      "eq": "SUBMITTED"
    }
  }
}'
{
  "data": {
    "data": [
      {
        "addresses": {
          "data": [
            {
              "city": "Metropolis",
              "country": "Countryland",
              "data_model": "CONTACTS",
              "data_model_id": "1013",
              "locality": "Downtown",
              "pincode": "12345",
              "platform_id": "_CONTACTS_1013_BILLING",
              "state": "Stateville",
              "street": "123 Main Street",
              "type": "BILLING",
              "updated_at": "2023-11-06T10:00:00.000Z"
            }
          ]
        },
        "contact_id": "1234567890123456789",
        "currency": {
          "data": {
            "code": null,
            "exchange_rate": null,
            "is_base_currency": null,
            "name": null,
            "platform_id": null,
            "symbol": null,
            "updated_at": null
          }
        },
        "currency_id": null,
        "currency_rate": 1,
        "delivery_date": null,
        "description": null,
        "document_number": "A-1011",
        "invoice_ids": [
          "3770712000000000099"
        ],
        "line_items": {
          "data": [
            {
              "account_id": null,
              "description": "Test Item",
              "item_id": "1234567890123456789",
              "line_item_type": "BILLS",
              "line_item_type_id": "1234567890123456789",
              "platform_id": "1234567890123456789",
              "quantity": 1,
              "sub_total": null,
              "tax_amount": 0,
              "tax_id": "1234567890123456789",
              "total_amount": 100,
              "total_discount": null,
              "tracking_category_ids": [
                "1234567890123456789"
              ],
              "unit_amount": 100,
              "updated_at": "2021-09-28T15:00:00.000Z"
            }
          ]
        },
        "platform_id": "1234567890123456789",
        "posted_date": "2023-01-17T00:00:00.000Z",
        "rootfi_company_id": 1760,
        "rootfi_created_at": "2023-10-26T16:14:59.685Z",
        "rootfi_id": 137160,
        "rootfi_integration_type": "QUICKBOOKS_SANDBOX",
        "rootfi_organisation_id": 1,
        "rootfi_updated_at": "2023-10-26T16:14:59.673Z",
        "status": "SUBMITTED",
        "sub_total": 87.5,
        "tax_amount": 0,
        "total_amount": 78.75,
        "total_discount": 8.75,
        "updated_at": "2023-01-17T00:00:00.000Z"
      }
    ],
    "total_count": 1
  },
  "request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b",
  "request_timestamp": "2023-10-27T05:05:28.522Z",
  "response_timestamp": "2023-10-27T05:05:28.522Z"
}

A Sales order is a record of goods or services sold to a customer

Authorizations

api_key
string
headerrequired

Body

application/json
filter
object
orderBy
object
skip
integer | null
take
integer | null

Response

200 - application/json
data
object
required
request_id
string
required

The unique ID of the request

request_timestamp
string
required

The time at which the request was received by the server

response_timestamp
string
required

The time at which the response was sent by the server