Create a new contractor
POST
/1.0/contractor/Registers a new contractor with the given details. If the contractor already exists, it returns a conflict error.
Request
Body Params application/json
No schema defined
Example
{
"email": "user@example.com",
"name": "Name",
"surname": "Surname",
"country_code": "AT",
"street": "Street",
"house_no": "50",
"apartment_no": "5",
"postal_code": "5020",
"city": "City",
"language": "en",
"bank_account_currency": "EUR",
"bank_account_iban": "AT611904300234573201",
"bank_account_bic": "SANTATWWXXX",
"tax_id": "22-345/6781"
}
Request samples
Responses
Returns the newly created contractor's email.(201)
Invalid input parameters or validation errors returned by the serializer.(400)
Indicates that the contractor already exists.(409)
Returns the newly created contractor's email.
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
Not configured
Last modified: 7 months ago