Onboard a company
Changed onEach transaction consists of at least two parties: Supplier and Customer. The Supplier is a company. On the other side of the transaction, the Customer can be an individual (B2C transaction) or a company (B2B transaction).
To report invoices in real-time to a tax authority, you need to onboard the Supplier that participate in the transaction.
This Company onboarding endpoint allows you to onboard Supplier companies into the Fonoa system.
When you are the Supplier and are using Fonoa to generate invoices or report transactions for your own company, you can use this endpoint to give us your company information. If you are a marketplace with multiple Suppliers, you can use this endpoint to onboard each active Supplier.
Request
- Base URLhttps://api-demo.fonoa.com
- URLhttps://api-demo.fonoa.com/onboarding/v2/companies
- AuthAPI key in header Ocp-Apim-Subscription-Key
Request body
Example request
{
"meta": {
"external_id": "Account0001HU",
"language_code": "hu",
"country_code": "hu"
},
"legal_name": "Supplier ABC",
"trade_name": "Supplier Trade Name ABC",
"company_number": "69061864-2-99",
"address": {
"country_code": "IE",
"province": "Quebec",
"region": "West",
"state": "Minnesota",
"disctrict": "District of Light",
"canton": "Ticino",
"city": "Dublin",
"neighbourhood": "Green Garden",
"postal_code": "10000Z",
"address_line_1": "752 A, Silky roads, Split",
"address_line_2": "801, Big Bells, Goodville",
"number": "120A",
"prefix": "Alley",
"suffix": "Avenue"
},
"tax_information": {
"tax_number": "69061864-2-99",
"regime": "VAT"
},
"tax_credentials": {
"certificate_base64": "BASE64",
"certificate_password": "CERTIFICATE_PWD",
"username": "USERNAME",
"password": "PASSWORD"
}
}Response
The Accepted response
Example response
{
"status": "success",
"data": {
"job_id": "fad3e91a0a46489cbcb82db1693df05b",
"job_status_location": "https://api-demo.fonoa.com/onboarding/v2/jobs/fad3e91a0a46489cbcb82db1693df05b"
},
"message": "\"\""
}Changes
- breaking
added the new required request property
/ - breaking
added the new required request property
/ - breaking
added the new required request property
/ - breaking
added the new required request property
/ - breaking
added the new required request property
/ - breaking
request body became required
- breaking
the request property
became required - breaking
the request property
became required - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
the
request property's maxLength was set to50 - warning
the
request property's maxLength was set to450 - warning
the
request property's maxLength was set to450 - warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
added the new
failedenum value to theresponse property for the response status - warning
added the new
in-progressenum value to theresponse property for the response status - warning
added the new
successenum value to theresponse property for the response status - info
api operation id
onboardCompanywas added - info
api tag
E-Invoicing Endpointsadded - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new required request property
/with a default value - info
added the new required request property
/with a default value - info
added the new required request property
/with a default value - info
added the new required request property
/with a default value - info
the request property
became nullable - info
the request property
became nullable - info
the
request property default value69061864-2-99was added - info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
removed from the
response propertyallOflist for the response status - info
the
response's property default valuewas added for the status - info
the
response's property default valuesuccesswas added for the status
- breaking