Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

List locations

res = po_client.request("post", "/apps/any/queries/read__qpt__list_locations", limit=2, offset=0)

Response:

{
    "objects": [
        {
            "cnum_number": "888-555-7381",
            "eml_email": "info@example.com",
            "ent_business_name": "Pinogy Store",
            "ent_first_name": "",
            "ent_last_name": "",
            "ent_name": "Pinogy Store",
            "ent_role_names": [
                "Location"
            ],
            "entity_id": 4,
            "loc_addr_city": "Herndon",
            "loc_addr_iso_code": "VA",
            "loc_addr_postal_code": "20170",
            "loc_address_1": "123 Main Street",
            "loc_address_2": "",
            "loc_available_publicly": true,
            "loc_contact_numbers": {
                "Office": "888-555-7381"
            },
            "loc_emails": {
                "Office": "info@example.com"
            },
            "loc_entity_id": 4,
            "loc_is_enabled": true,
            "loc_is_primary_store": true,
            "loc_marketing_phone": null,
            "loc_receipt_name": "Pinogy Store",
            "loc_report_code": "PS",
            "loc_safety_stock_min_sale_period": 14,
            "loc_safety_stock_prod_without_sales": true,
            "loc_show_regional": true,
            "loc_slug": "pinogy-store",
            "loc_social_media": {
                "Facebook": "https://facebook.com/example",
                "Instagram": "https://instgram.com/mystore"
            },
            "loctz_timezone": "US/Eastern",
            "ppg_name": "PrcGrp #1",
            "product_pricing_group_id": 1
        },
        {
            "cnum_number": "888-555-7381",
            "eml_email": "support@example.com",
            "ent_business_name": "Warehouse Location",
            "ent_first_name": "",
            "ent_last_name": "",
            "ent_name": "Warehouse Location",
            "ent_role_names": [
                "Location",
                "Supplier",
                "Warehouse"
            ],
            "entity_id": 8,
            "loc_addr_city": "Fairfield",
            "loc_addr_iso_code": "VA",
            "loc_addr_postal_code": "20170",
            "loc_address_1": "123 Main Highway",
            "loc_address_2": "",
            "loc_available_publicly": false,
            "loc_contact_numbers": {
                "Office": "888-555-7381"
            },
            "loc_emails": {
                "Office": "support@example.com"
            },
            "loc_entity_id": 8,
            "loc_is_enabled": true,
            "loc_is_primary_store": false,
            "loc_marketing_phone": null,
            "loc_receipt_name": "Warehouse",
            "loc_report_code": "WH",
            "loc_safety_stock_min_sale_period": 14,
            "loc_safety_stock_prod_without_sales": true,
            "loc_show_regional": true,
            "loc_slug": "warehouse",
            "loc_social_media": {},
            "loctz_timezone": "US/Eastern",
            "ppg_name": "PrcGrp #1",
            "product_pricing_group_id": 1
        }
    ],
    "total": 3
}

  • No labels