Preskoči na sadržaj

Claim a company with its SEF (eFaktura) API key

POST
/organizations/verify-company-by-sef-api-key

Validates the key against SEF and checks that an invoice fetched with it carries the PIB APR resolved for the matični broj. On success the pending registration is stored (claim verified) for the given email, and the key is kept, encrypted, to configure eFaktura on the new organization. Rate limited per matični broj.

object
registrationNumber
required
string
>= 8 characters <= 8 characters /^\d+$/
apiKey
required
string
>= 16 characters <= 512 characters
email
required
string format: email
<= 320 characters

OK

Any of:
object
ok
required
email
required
string
via
required
Any of:
Allowed value: sales

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