APIs to onboard and manage company.
curl -i -X POST \ 'https://developer.spotnana.com/_mock/openapi/companyapi/v2/companies/{companyId}/legal-entities/{legalEntityId}/offices' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "address": { "addressLines": [ "Golden Gate Bridge" ], "administrativeArea": "CA", "administrativeAreaName": "California", "description": "San Francisco Home", "isDefault": true, "languageCode": "en", "locality": "San Francisco", "locationCode": "LAX", "organization": "Spotnana", "postalCode": "94130", "continentCode": "AF", "recipients": [ "string" ], "regionCode": "US", "regionName": "America", "revision": 1, "sortingCode": "Jamaica", "sublocality": "string", "timezone": "America/Los_Angeles", "coordinates": { "latitude": 77.1025, "longitude": 28.7041 } }, "name": "Office name", "latlng": { "latitude": 77.1025, "longitude": 28.7041 }, "externalId": "external-id", "taxId": "123232" }'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }
curl -i -X GET \ 'https://developer.spotnana.com/_mock/openapi/companyapi/v2/companies/{companyId}/legal-entities/{legalEntityId}/offices?externalId=string' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "length": 0, "elements": [ { … } ] }
curl -i -X GET \ 'https://developer.spotnana.com/_mock/openapi/companyapi/v2/companies/{companyId}/legal-entities/{legalEntityId}/offices/{officeId}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "address": { "addressLines": [ … ], "administrativeArea": "CA", "administrativeAreaName": "California", "description": "San Francisco Home", "isDefault": true, "languageCode": "en", "locality": "San Francisco", "locationCode": "LAX", "organization": "Spotnana", "postalCode": "94130", "continentCode": "AF", "recipients": [ … ], "regionCode": "US", "regionName": "America", "revision": 1, "sortingCode": "Jamaica", "sublocality": "string", "timezone": "America/Los_Angeles", "coordinates": { … } }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "Office", "latlng": { "latitude": 77.1025, "longitude": 28.7041 }, "externalId": "external-id", "taxId": "123232" }
curl -i -X PUT \ 'https://developer.spotnana.com/_mock/openapi/companyapi/v2/companies/{companyId}/legal-entities/{legalEntityId}/offices/{officeId}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "address": { "addressLines": [ "Golden Gate Bridge" ], "administrativeArea": "CA", "administrativeAreaName": "California", "description": "San Francisco Home", "isDefault": true, "languageCode": "en", "locality": "San Francisco", "locationCode": "LAX", "organization": "Spotnana", "postalCode": "94130", "continentCode": "AF", "recipients": [ "string" ], "regionCode": "US", "regionName": "America", "revision": 1, "sortingCode": "Jamaica", "sublocality": "string", "timezone": "America/Los_Angeles", "coordinates": { "latitude": 77.1025, "longitude": 28.7041 } }, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "Office", "latlng": { "latitude": 77.1025, "longitude": 28.7041 }, "externalId": "external-id", "taxId": "123232" }'
{ "debugIdentifier": "string", "errorMessages": [ { … } ] }
curl -i -X DELETE \ 'https://developer.spotnana.com/_mock/openapi/companyapi/v2/companies/{companyId}/legal-entities/{legalEntityId}/offices/{officeId}?detachUsers=false' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'