POST

Order.FormData

Bundle for add/edit modal: optional order row, without_date catalog, order statuses, custom field definitions, dashboard columns.

Permissions

  • User must be logged in with a valid bearer token.
  • Returned or changed records are limited by the user permissions, team access, folder access, and account settings.

Action

  • Returns Order information as JSON for the UI.

Push Service

No push is sent because this function only reads data or returns helper information.

Automation

No automation is run for this function.

Special Instructions

  • Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
  • Send parameters as POST body fields exactly as documented.

Required Parameters

No body parameters are required for this function.

Optional Parameters

NameTypeSampleWhat it gives
orders_for_cust_id
post
int267974Optional existing row id for edit.
cust_id
post
int108545Optional customer id for customer_name.

Authentication

Send the bearer token returned by Login in the request header.

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/Order.FormData",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "cust_id": "108545"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Order.FormData",
    "url_domain": "https:\/\/{domain}\/app\/Order.FormData"
}

Endpoint

POST /app/Order.FormData
POST https://{user}.bull36.com/app/Order.FormData
POST https://{domain}/app/Order.FormData

Sample Output

{
    "success": 1,
    "data": null,
    "catalog": [],
    "order_statuses": [],
    "order_custom_fields": [],
    "columns": []
}

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams();
body.set('cust_id', '108545');

const res = await fetch('/app/Order.FormData', {
  method: 'POST',
  headers: { Authorization: `Bearer ${token}` },
  body
});
const data = await res.json();
console.log(data);

Error Example

{
    "success": "0",
    "message": "Request failed"
}