BPAPI Methods

BPAPI method Customer/Add

Customer/Add

Adds a new customer to the database. The parameter {email} used has to be unique.

Authorization required: No

HTTP methods allowed: GET, POST

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

Syntax: Customer/Add/{email}/{password}/{registration_id}/  Details 

Adds a new customer to the database. The parameter {email} used has to be unique.

Returns the customerId of the customer just added.

If the optional parameter {registration_id} is supplied then the corresponding gateway will be automatically assigned to the customer (rendering use of Gateway/Assign unnecessary).

Note: It is also possible to add a Customer by supplying only one parameter which will be regarded as 'organization_name'. This feature is useful for registering dealers.

Possible data_error values for bpapi_status are:"email_address_already_in_use_data_error"
"illegal_password_data_error"

When registration_id is specified additional possible data_error values for bpapi_status are:
"gateway_already_registered_data_error"
"invalid_registration_id_data_error"

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


Unit-tests: 1 test(s)

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

Documentation and tests automatically generated from source-code 2020-04-05 01:17