Skip to main content
POST
/
accounting
/
purchase_orders
/
all
curl --request POST \
  --url https://api.rootfi.dev/accounting/purchase_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": [
      {
        "platform_id": "<string>",
        "rootfi_id": 123,
        "rootfi_company_id": 123,
        "rootfi_organisation_id": 123,
        "rootfi_integration_type": "ZOHO_BOOKS",
        "rootfi_updated_at": "2023-11-07T05:31:56Z",
        "rootfi_created_at": "2023-11-07T05:31:56Z",
        "contact_id": "<string>",
        "bill_ids": [
          "<string>"
        ],
        "currency_id": "<string>",
        "document_number": "<string>",
        "delivery_date": "<string>",
        "posted_date": "<string>",
        "description": "<string>",
        "currency_rate": 123,
        "status": "DRAFT",
        "total_amount": 123,
        "sub_total": 123,
        "tax_amount": 123,
        "total_discount": 123,
        "updated_at": "<string>",
        "payment_mode": "<string>",
        "currency": {
          "data": {
            "platform_id": "<string>",
            "name": "<string>",
            "code": "<string>",
            "symbol": "<string>",
            "is_base_currency": true,
            "exchange_rate": 123,
            "updated_at": "2023-11-07T05:31:56Z"
          }
        },
        "addresses": {
          "data": [
            {
              "platform_id": "<string>",
              "type": "BILLING",
              "data_model": "<string>",
              "data_model_id": "<string>",
              "street": "<string>",
              "locality": "<string>",
              "city": "<string>",
              "state": "<string>",
              "country": "<string>",
              "pincode": "<string>",
              "updated_at": "2023-11-07T05:31:56Z"
            }
          ]
        },
        "line_items": {
          "data": [
            {
              "item_id": "<string>",
              "tax_id": "<string>",
              "quantity": 123,
              "unit_amount": 123,
              "platform_id": "<string>",
              "line_item_type": "BILLS",
              "line_item_type_id": "<string>",
              "tracking_category_ids": [
                "<string>"
              ],
              "account_id": "<string>",
              "description": "<string>",
              "total_amount": 123,
              "sub_total": 123,
              "tax_amount": 123,
              "total_discount": 123,
              "updated_at": "2023-11-07T05:31:56Z"
            }
          ]
        }
      }
    ],
    "total_count": 123
  },
  "request_timestamp": "2023-11-07T05:31:56Z",
  "response_timestamp": "2023-11-07T05:31:56Z",
  "request_id": "<string>"
}
A Purchase Order is a record of goods or services purchased from a vendor
curl --request POST \
  --url https://api.rootfi.dev/accounting/purchase_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"
    }
  }
}'

Authorizations

api_key
string
header
required

Body

application/json
take
integer | null
skip
integer | null
orderBy
accountingPurchaseOrderOrderBy · object
filter
accountingPurchaseOrderFilterFields · object

Response

200 - application/json
data
accountingtypesGetAllPurchaseOrdersResponseData · object
required
request_timestamp
string<date-time>
required

The time at which the request was received by the server

response_timestamp
string<date-time>
required

The time at which the response was sent by the server

request_id
string
required

The unique ID of the request