iVendNextDevelopers Request a sandbox

Warehouse

A store, a back room or a warehouse where stock is kept.

Area: Stock and stores · Why it is here: openapi.yaml; guide chapter 04; recipe customers_by_store; recipe desk_action; recipe estate_rollout; the MCP server; the request collection; retail core · Fields: 31

iVendNext's own description: A logical Warehouse against which stock entries are made.

Read and write it

Every call runs as your app's own user, with its key in one header, at the retailer's own address. The user reads and writes only what its role allows: your app's user, and the rights the retailer gives it.

Read a list (only name unless you ask for fields):

curl -s "https://⟨site⟩/api/resource/Warehouse?fields=%5B%22*%22%5D&limit_page_length=20" \
  -H "Authorization: token ⟨api key⟩:⟨api secret⟩"

Read one:

curl -s "https://⟨site⟩/api/resource/Warehouse/⟨name⟩" -H "Authorization: token ⟨api key⟩:⟨api secret⟩"

Create one (the required fields first), if your app's role may:

curl -s -X POST "https://⟨site⟩/api/resource/Warehouse" -H "Authorization: token ⟨api key⟩:⟨api secret⟩" \
  -H "Content-Type: application/json" -d '{"warehouse_name": …, "company": …}'

Change one with PUT /api/resource/Warehouse/⟨name⟩ and the fields you change; a table sent there replaces its rows, so send its existing rows too. All the record calls and their answers: the API reference.

Samples that use it

s2_bins · s5_config_pack · s7_system_sync · s8_estate_rollout · s16_pick_route · s22_customer_loyalty · s24_price_checker · s27_stock_alerts · s30_units_as_serials · s35_call_centre_orders · s39_pharmacy_counter · s40_expiry_recall · s42_optical_prescriptions · s43_third_party_payer · s45_restaurant_back_office · s47_customers_by_store

Fields

Read from the product at POS 2.1.0.667 (till app 60147699c): its own fields, the fields iVendNext adds to it, and iVendNext's changes to any of them. Read-only fields are set by iVendNext; a hidden one is not on the form but can be read. Every record also has name (its id, in the address), owner, creation, modified, modified_by and docstatus (0 a draft, 1 submitted, 2 cancelled), all read-only.

Field Field name Type Required Read-only Hidden Links to
Disabled disabled Check yes
Is Retail Store (added by iVendNext) custom_is_retail_store Check
Selling Price List (added by iVendNext) custom_selling_price_list Link Price List
Warehouse Name warehouse_name Data yes
Cash Customer (added by iVendNext) custom_cash_customer Link Customer
Item Tax Template (added by iVendNext) custom_item_tax_template Link Item Tax Template
Fulfillment Plan for Order (added by iVendNext) custom_fulfillment_plan_for_order Link Fulfillment Plan
Is Group Warehouse is_group Check
Parent Warehouse parent_warehouse Link Warehouse
Is Rejected Warehouse is_rejected_warehouse Check
Account account Link Account
Company company Link yes Company
Tax Number (added by iVendNext) custom_tax_number Data
Tax Category (added by iVendNext) custom_tax_category Link Tax Category
Email Account (added by iVendNext) custom_email_account Link Email Account
Email Template (added by iVendNext) custom_email_template Link Email Template
Company Currency (added by iVendNext) custom_company_currency Link yes Currency
Email Address email_id Data yes
Phone No phone_no Data
Mobile No mobile_no Data
Address Line 1 address_line_1 Data
Address Line 2 address_line_2 Data
City city Data
State state Data
PIN pin Data
Warehouse Type warehouse_type Link Warehouse Type
POS Fulfilment ETA Label (added by iVendNext) custom_mpos_eta_label Data
Default In-Transit Warehouse default_in_transit_warehouse Link Warehouse
lft lft Int yes yes
rgt rgt Int yes yes
Old Parent old_parent Link yes yes Warehouse

All record types · What you can use

This record type in the kit