Przejdź do głównej zawartości

Wyszukaj kontrahenta wśród istniejących danych

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

Podpowiada dane kontrahenta na podstawie wcześniejszych zamówień, np. przy ręcznym wystawianiu zamówienia.

searchValue
string

Success

Typ treściapplication/json
Array<object>
object
buyer
object
email
string
nullable
username
string
nullable
firstName
string
nullable
lastName
string
nullable
companyName
string
nullable
rawCompanyTaxId
string
nullable
phone
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
recipient
object
email
string
nullable
firstName
string
nullable
lastName
string
nullable
companyName
string
nullable
phone
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
fullName
string
nullable
invoice
object
required
boolean
payer
object
email
string
nullable
username
string
nullable
firstName
string
nullable
lastName
string
nullable
companyName
string
nullable
rawCompanyTaxId
string
nullable
phone
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
fullName
string
nullable
creationDate
string format: date-time
Examplegenerated
[
{
"buyer": {
"email": "example",
"username": "example",
"firstName": "example",
"lastName": "example",
"companyName": "example",
"rawCompanyTaxId": "example",
"phone": "example",
"address": {
"apartmentNo": "example",
"houseNo": "example",
"street": "example",
"city": "example",
"postCode": "example",
"state": "example",
"countryCode": "example"
}
},
"recipient": {
"email": "example",
"firstName": "example",
"lastName": "example",
"companyName": "example",
"phone": "example",
"address": {
"apartmentNo": "example",
"houseNo": "example",
"street": "example",
"city": "example",
"postCode": "example",
"state": "example",
"countryCode": "example"
}
},
"invoice": {
"required": true,
"payer": {
"email": "example",
"username": "example",
"firstName": "example",
"lastName": "example",
"companyName": "example",
"rawCompanyTaxId": "example",
"phone": "example",
"address": {
"apartmentNo": "example",
"houseNo": "example",
"street": "example",
"city": "example",
"postCode": "example",
"state": "example",
"countryCode": "example"
}
}
},
"creationDate": "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