Przejdź do głównej zawartości

Pobierz dane firmy z GUS po NIP

GET
/api/v3/Contractors/FromGus
curl --request GET \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Contractors/FromGus \
--header 'Authorization: Bearer <token>'

Zwraca dane rejestrowe firmy z bazy GUS (REGON) dla podanego numeru NIP.

nip
string

Success

Typ treściapplication/json
object
companyName
string
nullable
firstName
string
nullable
lastName
string
nullable
isCompany
boolean
companyTaxId
object
nip
string
nullable
countryCode
string
nullable
address
object
apartmentNo
string
nullable
houseNo
string
nullable
street
string
nullable
city
string
nullable
postCode
string
nullable
state
string
nullable
countryCode
string
nullable
fullNumber
string
nullable
isEu
boolean
nullable
address
string
nullable
community
string
nullable
county
string
nullable
voivodeship
string
nullable
email
string
nullable
phone
string
nullable
businessEndDate
string format: date-time
nullable
suspensionStartDate
string format: date-time
nullable
resumptionDate
string format: date-time
nullable
Examplegenerated
{
"companyName": "example",
"firstName": "example",
"lastName": "example",
"isCompany": true,
"companyTaxId": {
"nip": "example",
"countryCode": "example"
},
"address": {
"apartmentNo": "example",
"houseNo": "example",
"street": "example",
"city": "example",
"postCode": "example",
"state": "example",
"countryCode": "example",
"community": "example",
"county": "example",
"voivodeship": "example"
},
"email": "example",
"phone": "example",
"businessEndDate": "2026-04-15T12:00:00Z",
"suspensionStartDate": "2026-04-15T12:00:00Z",
"resumptionDate": "2026-04-15T12:00:00Z"
}

Bad Request

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Server Error