Create a new sub-account

Create a new sub-account for your own customer
URL

https://app.passcreator.com/api/customer

HTTP-Method
POST
Purpose
Creates a new customer using the data provided as JSON payload
Required input parameters

• HTTP Authorization Header that contains your API key

• company_name - the company name of the customer to create

• address_street1 - the street of your customer

• address_street2 - the second line of the street of your customer

• zip_code

• city

• country - lowercase name of the country your customer is located at e.g. germany

• vat_id

• maximum_number_of_active_passes - the maximum amount of active passes this customer should be able to use

• system_language - the language the customer wants to use. Can be de or en (german or english)

• email - the E-Mail address of the customer

• first_name - the first name of the contact person of the customer

• last_name - the last name of the contact person of the customer

• logoUrl (optional) - the URL to the logo of the customer. Will be used when creating new Pass Templates by default

• iconUrl (optional) - the URL to the icon of the customer that should be used for new Pass Templates.

Returned values

• customer_identifier - the unique ID of the customer that has been created

• apiToken - the API token you need to use to communicate with the Passcreator API on behalf of this customer

• pricePerMonth - the price that has been determined based on the number of active passes that you've specified

Please make sure to save both the customer_identifier as well as the apiToken in a secure place on your server since you'll need them if you want to communicate with the Passcreator system on behalf of your customer.

Example Input (JSON payload)

  1. {
  2. "company_name": "Test Company",
  3. "address_street1": "Teststraße 12",
  4. "address_street2": "",
  5. "zip_code": "81737",
  6. "city": "München",
  7. "country": "germany",
  8. "vat_id": "DE12345678",
  9. "maximum_number_of_active_passes": "200",
  10. "system_language": "de",
  11. "email": "test@passcreator.com",
  12. "first_name": "Rainer",
  13. "last_name": "Zufall",
  14. "logoUrl": "http://www.passcreator.com/_Resources/Static/Packages/Brainswarm.PasscreatorDe/Images/passcreator_logo.png",
  15. "iconUrl": "http://www.passcreator.com/_Resources/Static/Packages/Brainswarm.PasscreatorDe/Images/passcreator_logo.png"
  16. }

Example output:

  1. {
  2. "customer_identifier": "e2054bea-adf3-4b5b-9012-c435b4f1b2b7",
  3. "apiToken": "591c54b6846fe366203438",
  4. "pricePerMonth": 16
  5. }