Preskoči na sadržaj

Add a company by PIB and matični broj, synced from APR

POST
/organizations/company-registry/add-from-apr

Fetches the company from the APR PLWS web service by matični broj, checks the returned PIB against the one entered, and stores the full record in the company registry. Billable per subject per month.

object
tin
required
string
>= 9 characters <= 9 characters /^\d+$/
registrationNumber
required
string
/^\d{8}$/

OK

Any of:
object
ok
required
billed
required
boolean
fromRegistry
required
boolean
company
required
object
tin
required
string
name
required
Any of:
string
registrationName
required
Any of:
string
companyRegistrationId
required
Any of:
string
street
required
Any of:
string
city
required
Any of:
string
postalCode
required
Any of:
string
country
required
Any of:
string
email
required
Any of:
string
bankAccount
required
Any of:
string
source
required
string
registerCode
required
Any of:
string
status
required
Any of:
string
statusCode
required
Any of:
string
legalForm
required
Any of:
string
legalFormCode
required
Any of:
string
foundedAt
required
Any of:
string
aprSyncedAt
required
Any of:
string
aprGroups
required
Any of:
object
key
additional properties
object
key
additional properties
string
organizationId
required
Any of:
string
updatedAt
required
string

401

One of:
object
defined
required
code
required
Allowed value: UNAUTHORIZED
status
required
Allowed value: 401
message
required
string
default: Missing user session. Please log in!
data

403

One of:
object
defined
required
code
required
Allowed value: FORBIDDEN
status
required
Allowed value: 403
message
required
string
default: You do not have enough permission to perform this action.
data

422

One of:
object
defined
required
code
required
Allowed value: INPUT_VALIDATION_FAILED
status
required
Allowed value: 422
message
required
string
default: INPUT_VALIDATION_FAILED
data