Create a new user in the system by providing detailed offer information through a POST request.
POST https://partners.streace.io/partner/new | https://partners.streace.io/partner/{partnerCode}
This endpoint allows the creation or updating of a user in the system. The request must include a JSON object with the partner details to be created or updated.
The request must be authenticated with the following HTTP headers:
x-api-key: Your API key, found in the TrafficManagers Security page
x-user-id: Your User ID, found in the TrafficManagers Security page
If the HTTP headers are not passed, but you are logged in to the TrafficManager panel, the current user is used instead (so you can easily preview or download the data using your browser)
The request body must be a JSON object with the following structure, including detailed specifications of the user to be created:
{
"personal": {
"firstName": "Teun", // Required for new partner
"surName": "Westerdijk", // Required for new partner
"ssn": "",
"birthDate": "1989-08-16", // Required for new partner
"passport_id": ""
},
"account": {
"partnerCode": "1036113", // Required for new partner
"username": "Teunus", // Required for new partner
"email": "teun@islive.com" // Required for new partner
},
"address": {
"street": "Boelelaan 7",
"postalcode": "1083 HJ",
"city": "Amsterdam",
"country": "NL"
},
"payment": {
"account_name": "Teun us",
"account_city": "Amsterdam",
"account_country": "NL",
"account_free": "",
"account_iban": "NL80INGB1234556425",
"account_bic": "INGBNL2A"
},
"company": {
"company": "Teun us",
"btw": "123456789",
"kvk": "123456789",
"phoneNumber": "06123456789",
"website": "www.onbekend.nl",
"skypeid": "teun.westerdijk"
}
}
Note: This JSON structure is a simplified example. Replace placeholder text with actual data for the user being created/updated.
Success Response:
{
"message": "User created successfully with ID 123" or "User edited successfully",
}
This response indicates that the user was successfully created or updated in the system.
Error Response:
{
"status": [error code],
"message": [error message]
}
Explains why the request failed, such as missing required fields, authentication issues, or invalid parameters.