BaseTender
  1. Companies
BaseTender
  • Documentazione
  • Auth
    • auth
      POST
  • Vehicles
    • /vehicles/plate/:plate
      GET
    • /vehicles/id/:id
      GET
    • /vehicles/all/:company_id
      GET
    • /vehicles/update/:id
      PUT
  • Companies
    • /companies/create
      POST
  • Users
    • /users/create
      POST
    • /users/createResetOauthPw
      POST
    • /users/resetOauthPw
      POST
    • /users/resetLegacyPw
      POST
  • Trips
    • /trips/all/:company_id/:user_id
      GET
    • /trips/mine/:company_id
      GET
    • /trips/quoted/:company_id
      GET
    • /trips/:id/set/status/:status
      POST
    • /trips/details/:id/:company_id
      GET
    • /trips/all_data/:trip_id
      GET
    • /trips/add
      POST
  • Offers
    • /offers/:id/set/status/:status
      POST
    • /offers/:id/set/offer_business/:offer
      POST
    • offers/:trip_id
      GET
  • Invoices
    • /invoices/mine/:company_id
      GET
    • /invoices/send
      POST
    • /invoices/documents/:trip_id/:type?
      GET
    • /invoices/documents/insert
      POST
    • /invoices/documents/delete/:document_id
      DELETE
  1. Companies

/companies/create

POST
/companies/create

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🟠400error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://tender.whyb.it:8443/v1/companies/create' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "company": {
        "vat_nr": "1234dsdsddadsdssd323dadsa32ew356789",
        "province": "CN",
        "house_number": "20",
        "country": "Italia",
        "city": "Cuneo",
        "cf": "455456465",
        "cap": "12100",
        "address": "via della magnina",
        "name": "pinco pallo srl"
    },
    "user": {
        "email": "iadsds13dsd3sd32t@whyb.it",
        "clientSecret": "b1951a6528c8d6cfa2b71d83001658980417c886bd9aefc38eb68d02584b78334243e925c2efbe60578898f9f3e8e360506bfc72e6191512ebb886a8c974521c",
        "name": "pinco",
        "surname": "pallo",
        "phone_nr": "564545564564"
    }
}'
Response Response Example
200 - Success
{
    "message": "success",
    "company_id": "68cd7721f7bd3ee42506ef48",
    "user_id": "68cd7721f7bd3ee42506ef49"
}
Modified at 2025-09-23 11:53:58
Previous
/vehicles/update/:id
Next
/users/create
Built with