Create Customer

API to create a new customer in your account

This API endpoint allows you to create a new customer. Customers can be created with various attributes, including their username, name, password, and limit.

Endpoint URL: https://api.v7.botpenguin.com/customer

HTTP Method: POST

Request Headers

  • Authorization: A bearer token is required for authentication. Replace [MASKED_TOKEN] with your valid API token. This token is used to authenticate and authorize the request.

  • Content-Type: Set to application/json to indicate that the request body is in JSON format.

Request Body

The request body should be a JSON object containing the following attributes:

  • username (string, required): The email address of the customer.

  • name (string, required): The name of the customer.

  • password (string, required): The password for the customer's account.

  • limit (integer, optional): An optional limit for the customer.

Sample Request

curl 'https://api.v7.botpenguin.com/customer' \
  -H 'Authorization: Bearer [MASKED_TOKEN]' \
  -H 'Content-Type: application/json' \
  --data-raw '{"username":"[MASKED_EMAIL]","name":"Test Customer 1","password":"[MASKED_PASSWORD]","limit":2000}' \
  --compressed

Response

The API will respond with the created customer information or an error message if the request fails.

If you have any questions, you can look into our repository of FAQs, most likely, you will find your answer here, If not, write us at contact@botpenguin.com

Last updated