list_b2b_users


GET /list_b2b_users

To get the TOTAL COUNT of list of B2B users for search criteria.

Use this method FIRST to determine how many total records there are for the given criteria.

After you call this method, then call the method below, and pass the required paging parameters.

/list_b2b_users?token=XXXXX&active_type=active

field description
token Credentials provided by Powersoft that allow access to the API
active_type 'active' = Only the active users. 'inactive' = Only the inactive users. 'all' = All the users(active and inactive)

Returns

       {
            "api_response": {
                "response_code": "1",
                "response_msg": "OK",
                "response_id": ""
            },
            "total_b2b_users": 1
        }
       


GET /list_b2b_users

To get a list of B2B users.

/list_b2b_users?token=XXXXX&active_type=active&page_number=1&page_size=10

field description
token Credentials provided by Powersoft that allow access to the API
active_type 'active' = Only the active users. 'inactive' = Only the inactive users. 'all' = All the users(active and inactive)
page_number The page number in the entire list. eg Page 1
page_size The number of rows to return. eg 10 rows

Returns

        {
            "api_response": {
                "response_code": "1",
                "response_msg": "OK",
                "response_id": ""
            },
            "list_b2b_users": [
                    {
                        "user_id_365": "2",
                        "user_name_365": "b2b01",
                        "customer_code_365": "00100004",
                        "customer_name": "JOHN WAYNE",
                        "max_items_to_order": 0,
                        "max_time_to_order": null,
                        "text_field_01_value": "",
                        "text_field_02_value": "",
                        "text_field_03_value": "",
                        "text_field_04_value": "",
                        "text_field_05_value": "",
                        "text_field_06_value": "",
                        "text_field_07_value": "",
                        "text_field_08_value": "",
                        "text_field_09_value": "",
                        "text_field_10_value": "",
                        "number_field_01_value": 0,
                        "number_field_02_value": 0,
                        "number_field_03_value": 0,
                        "number_field_04_value": 0,
                        "number_field_05_value": 0,
                        "number_field_06_value": 0,
                        "number_field_07_value": 0,
                        "number_field_08_value": 0,
                        "number_field_09_value": 0,
                        "number_field_10_value": 0,
                        "boolean_field_01_value": false,
                        "boolean_field_02_value": false,
                        "boolean_field_03_value": false,
                        "boolean_field_04_value": false,
                        "boolean_field_05_value": false,
                        "boolean_field_06_value": false,
                        "boolean_field_07_value": false,
                        "boolean_field_08_value": false,
                        "boolean_field_09_value": false,
                        "boolean_field_10_value": false,
                        "date_field_01_value": "",
                        "date_field_02_value": "",
                        "date_field_03_value": "",
                        "date_field_04_value": "",
                        "date_field_05_value": ""
                    }
                ] 
        }