POST /company

Crée une nouvelle entreprise.

Comportement:

  • L'URL est rendue unique automatiquement si elle existe déjà
  • Un CompanyApp est créé automatiquement avec des options par défaut
  • Si créée via une application, une Application d'accès est automatiquement générée

Restrictions:

  • Ne peut pas être créée depuis une version API

Événement déclenché: CREATE_COMPANY

application/json

Body Required

  • name string Required

    Nom de l'entreprise (obligatoire)

  • url string Required

    URL unique pour l'entreprise (obligatoire)

  • siren string

    Numéro SIREN (9 chiffres)

  • siret string

    Numéro SIRET (14 chiffres)

  • tva_number string

    Numéro de TVA intracommunautaire

  • naf_ape string

    Code NAF/APE

  • nic string

    Code NIC

  • num_rcs string

    Numéro d'inscription au RCS

  • num_trade_directory string

    Numéro au répertoire des métiers

  • commercial_court string

    Tribunal de commerce

  • share_capital number

    Capital social

  • company_type string

    ID du type d'entreprise (SARL, SAS, etc.)

  • email string(email)

    Email principal de l'entreprise

  • website string

    Site web de l'entreprise

  • addresses array[object]
    Hide addresses attributes Show addresses attributes object
    • street string
    • zip_code string
    • city string
    • country string

Responses

  • 201 application/json

    Entreprise créée

    Hide response attributes Show response attributes object
    • newCompany object
      Hide newCompany attributes Show newCompany attributes object
      • _id string

        Unique identifier for the company

      • name string

        Name of the company

      • url string

        Unique URL identifier for the company

      • siren string

        SIREN number

      • siret string

        SIRET number

      • tva_number string

        VAT number

      • naf_ape string

        NAF/APE code

      • nic string

        NIC code

      • num_rcs string

        RCS registration number

      • num_trade_directory string

        Trade directory number

      • commercial_court string

        Commercial court

      • share_capital number

        Share capital amount

      • company_type string

        Reference to company type

      • company_type_name string

        Name of the company type

      • email string

        Company email

      • emailExpeditor string

        Email used as sender for communications

      • domain string

        Company domain

      • website string

        Company website URL

      • addresses array[object]

        List of company addresses

        Hide addresses attributes Show addresses attributes object
        • street string

          Street address

        • street_end string

          Additional street address information

        • zip_code string

          Zip code

        • city string

          City

        • country string

          Country

      • phones array[object]

        List of company phone numbers

        Hide phones attributes Show phones attributes object
        • type string

          Type of phone number

        • number string

          Phone number

        • main boolean

          Whether this is the main phone number

        • active boolean

          Whether this phone number is active

      • mobiles array[object]

        List of company mobile numbers

        Hide mobiles attributes Show mobiles attributes object
        • type string

          Type of mobile number

        • number string

          Mobile number

        • main boolean

          Whether this is the main mobile number

        • active boolean

          Whether this mobile number is active

      • cgv string

        Terms and conditions text

      • cgv_wuro boolean

        Whether to use Wuro's terms and conditions

      • company_include_cgv boolean

        Whether to include terms and conditions in documents

      • company_include_cgv_physical boolean

        Whether to include physical terms and conditions in documents

      • payment_delay_default number

        Default payment delay in days

      • validity_delay_default number

        Default validity delay for quotes in days

      • rate_late_penalties number

        Late payment penalty rate

      • state string

        State of the company

        Values are active, inactive, or deleted.

      • createdAt string(date-time)

        Date when the company was created

      • updatedAt string(date-time)

        Date when the company was last updated

    • application object

      Application d'accès créée (si créée via une app)

  • 400

    Nom ou URL manquant

POST /company
curl \
 --request POST 'https://wuro.pro/api/v3.2/company' \
 --header "X-APP-ID: $API_KEY" \
 --header "X-APP-SECRET: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"name":"string","url":"string","siren":"string","siret":"string","tva_number":"string","naf_ape":"string","nic":"string","num_rcs":"string","num_trade_directory":"string","commercial_court":"string","share_capital":42.0,"company_type":"string","email":"hello@example.com","website":"string","addresses":[{"street":"string","zip_code":"string","city":"string","country":"string"}]}'
Request examples
{
  "name": "string",
  "url": "string",
  "siren": "string",
  "siret": "string",
  "tva_number": "string",
  "naf_ape": "string",
  "nic": "string",
  "num_rcs": "string",
  "num_trade_directory": "string",
  "commercial_court": "string",
  "share_capital": 42.0,
  "company_type": "string",
  "email": "hello@example.com",
  "website": "string",
  "addresses": [
    {
      "street": "string",
      "zip_code": "string",
      "city": "string",
      "country": "string"
    }
  ]
}
Response examples (201)
{
  "newCompany": {
    "_id": "string",
    "name": "string",
    "url": "string",
    "siren": "string",
    "siret": "string",
    "tva_number": "string",
    "naf_ape": "string",
    "nic": "string",
    "num_rcs": "string",
    "num_trade_directory": "string",
    "commercial_court": "string",
    "share_capital": 42.0,
    "company_type": "string",
    "company_type_name": "string",
    "email": "string",
    "emailExpeditor": "string",
    "domain": "string",
    "website": "string",
    "logo": "string",
    "addresses": [
      {
        "street": "string",
        "street_end": "string",
        "zip_code": "string",
        "city": "string",
        "country": "string"
      }
    ],
    "phones": [
      {
        "type": "string",
        "number": "string",
        "main": true,
        "active": true
      }
    ],
    "mobiles": [
      {
        "type": "string",
        "number": "string",
        "main": true,
        "active": true
      }
    ],
    "cgv": "string",
    "cgv_link": "string",
    "cgv_wuro": true,
    "company_include_cgv": true,
    "company_include_cgv_physical": true,
    "payment_delay_default": 42.0,
    "validity_delay_default": 42.0,
    "rate_late_penalties": 42.0,
    "state": "active",
    "createdAt": "2025-05-04T09:42:00Z",
    "updatedAt": "2025-05-04T09:42:00Z"
  },
  "application": {}
}