API Documentation
Product Registration API
Description
This endpoint is used for product registration. The user needs to provide the required information in the body of the request to register a product.
Endpoint
Contact Wholescale for specific endpoints and API keys.
Request
Headers
Content-Type: application/json
Body Parameters
Parameter | Type | Required | Description |
---|---|---|---|
| string | Yes | The first name of the user |
| string | Yes | The last name of the user |
| string | Yes | The email address of the user |
| integer | Yes | The phone number of the user |
| string | Yes | The product identifier |
| string | No | The platform through which the product is registered |
| integer | Yes | The client identified (reach out to Wholescale for Client ID) |
| string | Yes | A string containing additional encrypted data (fingerprint) |
| boolean | No | Indicates if the user wants to be added to the mailing list |
| array | No | An array of custom attribute objects |
Custom Attribute Object
Parameter | Description |
---|---|
| The name of the custom field |
| The value associated with the custom field |
Example Request Body
Mandatory Fields
first_name
, last_name
, email
, phone
, product
, client
, black_box
Custom Attributes
To pass any custom information, use the custom_attributes
array. Each custom attribute should be an object with field_name
and field_value
as shown in the example request body.
Notes
For the client
field, you will need the client ID. Please reach out to the Wholescale team to obtain this ID. Ensure that the request body adheres to the format and data types specified above.