BPAPI Methods

BPAPI method Customer/AddAsChild

Customer/AddAsChild

Adds a new customer to the database and creates a parent-child relationship with the customer identified by the credentials used for authorization.

Authorization required: Yes

HTTP methods allowed: GET, POST

Syntax: Customer/AddAsChild/{email}/{password}/  Details 

Syntax: Customer/AddAsChild/{email}/  Details 

Adds a new customer to the database and creates a parent-child relationship with the customer identified by the credentials used for authorization.

The parameter {password} is optional. If the parameter {password} is not specified then the email-address is stored as "last_name" instead of as "email"

This call is equivalent to first calling Customer/Add and then Customer/AddChild.
It is meant for quick manual testing of the API and for quick manual setup of a new customer hierarchy.
Possible data_error values for bpapi_status in addition to that returned by Customer/Add and Customer/AddChild are"different_parent_already_set_data_error"

For bpapi_status "ok" there will be given more details in the field "ok_detailed_information".


Unit-tests: 2 test(s)

Popularity: 9 (number of times method has been accessed)

Documentation and tests automatically generated from source-code 2020-04-08 16:17