User APICompanies

Create companydeprecated

posthttps://user-api.ancon.io/public/api/v1/Outlets/{outletId}/Companies
View .mdOpenAPI
Deprecated. Check the description for the replacement and sunset date, and see how deprecation works.

Authorization

  • Access-Tokenheaderrequired

    Tenant- or outlet-level token from the backoffice. See Get started.

Path parameters

  • outletIdstring (uuid)required

Header parameters

  • correlationIdstring

    Correlation Id for the request

Request body application/json

  • namestringrequired

    Name of the company

  • businessNumberstring | null

    Business number of the company

  • invoiceAddressobjectrequired
    6 fields in invoiceAddress
    • addressIdstring (uuid) | null
    • addressTypeinteger (int32)

      Allowed values: 0, 1, 2.

    • streetstring | null
    • street2string | null
    • zipCodestring | null
    • citystring | null
  • countryCodestring | null
  • phoneNumberstring | null

    Phonenumber of the company

  • invoiceEmailstring | null

    Email of the company or person in the company

  • defaultInvoiceReferenceNotestring | null

    Will be the default reference note for all new invoices from this company.

  • companyReferencestring | null

    Company reference note for the company. This maps to YourReference property on Fortnox.

  • glnstring | null

    GLN of the company.

  • customerIdstring | null

    ExternalID reference of the company.

Responses

201Createdapplication/json
  • companyobject | null
    20 fields in company
    • idstring (uuid)
    • createdstring (date-time)
    • modifiedstring (date-time)
    • tenantIdstring (uuid)
    • namestring | null
    • businessNumberstring | null
    • addressIdstring (uuid)
    • invoiceAddressobject | null
      4 fields in invoiceAddress
      • streetstring | null
      • street2string | null
      • zipCodestring | null
      • citystring | null
    • countryCodestring | null
    • phoneNumberstring | null
    • invoiceEmailstring | null
    • defaultInvoiceReferenceNotestring | null
    • isDeletedboolean
    • originatingOutletIdstring (uuid) | null
    • originatingOutletNamestring | null
    • originatingIntegrationTypeinteger (int32) | null

      Allowed values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, -2, -1.

    • glnstring | null
    • companyReferencestring | null
    • guestGroupIdstring (uuid) | null
    • integrationExternalIdsmap<string, string> | null
400Bad Requestapplication/json
  • messagestring | null
  • errorCodestring (uuid)
  • additionalDataany | null
401Unauthorizedapplication/json
404Not Foundapplication/json
  • messagestring | null
  • errorCodestring (uuid)