Wyszukaj kontrahenta wśród istniejących danych
GET
/api/v3/Contractors/FromExisting
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Contractors/FromExisting';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”searchValue
string
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
Array<object>
object
buyer
object
email
string
username
string
firstName
string
lastName
string
companyName
string
rawCompanyTaxId
string
phone
string
address
object
apartmentNo
string
houseNo
string
street
string
city
string
postCode
string
state
string
countryCode
string
fullNumber
string
isEu
boolean
address
string
recipient
object
email
string
firstName
string
lastName
string
companyName
string
phone
string
address
object
apartmentNo
string
houseNo
string
street
string
city
string
postCode
string
state
string
countryCode
string
fullNumber
string
isEu
boolean
address
string
fullName
string
invoice
object
required
boolean
payer
object
email
string
username
string
firstName
string
lastName
string
companyName
string
rawCompanyTaxId
string
phone
string
address
object
apartmentNo
string
houseNo
string
street
string
city
string
postCode
string
state
string
countryCode
string
fullNumber
string
isEu
boolean
address
string
fullName
string
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
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Server Error

