Create companydeprecated
post
https://user-api.ancon.io/public/api/v1/Outlets/{outletId}/CompaniesDeprecated. Check the description for the replacement and sunset date, and see how deprecation works.
Authorization
Access-TokenheaderrequiredTenant- or outlet-level token from the backoffice. See Get started.
Path parameters
outletIdstring (uuid)required
Header parameters
correlationIdstringCorrelation Id for the request
Request body
namestringrequiredName of the company
businessNumberstring | nullBusiness number of the company
invoiceAddressobjectrequired6 fields in
invoiceAddressaddressIdstring (uuid) | nulladdressTypeinteger (int32)Allowed values:
0,1,2.streetstring | nullstreet2string | nullzipCodestring | nullcitystring | null
countryCodestring | nullphoneNumberstring | nullPhonenumber of the company
invoiceEmailstring | nullEmail of the company or person in the company
defaultInvoiceReferenceNotestring | nullWill be the default reference note for all new invoices from this company.
companyReferencestring | nullCompany reference note for the company. This maps to YourReference property on Fortnox.
glnstring | nullGLN of the company.
customerIdstring | nullExternalID reference of the company.
Responses
201Created
companyobject | null20 fields in
companyidstring (uuid)createdstring (date-time)modifiedstring (date-time)tenantIdstring (uuid)namestring | nullbusinessNumberstring | nulladdressIdstring (uuid)invoiceAddressobject | null4 fields in
invoiceAddressstreetstring | nullstreet2string | nullzipCodestring | nullcitystring | null
countryCodestring | nullphoneNumberstring | nullinvoiceEmailstring | nulldefaultInvoiceReferenceNotestring | nullisDeletedbooleanoriginatingOutletIdstring (uuid) | nulloriginatingOutletNamestring | nulloriginatingIntegrationTypeinteger (int32) | nullAllowed 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 | nullcompanyReferencestring | nullguestGroupIdstring (uuid) | nullintegrationExternalIdsmap<string, string> | null
400Bad Request
messagestring | nullerrorCodestring (uuid)additionalDataany | null
401Unauthorized
404Not Found
messagestring | nullerrorCodestring (uuid)