Pobierz listę zamówień (nagłówki)
GET
/api/v5/Orders
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v5/Orders';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/v5/Orders \ --header 'Authorization: Bearer <token>'Zwraca stronicowaną listę nagłówków zamówień według filtrów (status, źródło, daty itp.). Odpowiednik getOrders w BaseLinker.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”Id
integer format: int64
Id of the order in SellRocket
OrderId
string
Id or ids of the order in SellRocket or in Source platform.
One can provide a single order id or multiple order ids separated by comma.
Examples:
- 204295
- 204295,101333
- 204295,1d719a60-ecee-11ee-926c-6ff59449f5d9
OrderStatusIdPriorityFilter
integer format: int64
OrderStatus
string
SourcePlatformOrderId
string
ShipmentConnectionDefinitionId
string
Id of a connection definition used for shipments, if set to “ANY” it will return orders with all orders with connection definition set if set to “NONE” it will return orders with no shipments
CreatedFrom
string format: date-time
CreatedTo
string format: date-time
StatusUpdatedFrom
string format: date-time
StatusUpdatedTo
string format: date-time
SourceConnectionId
integer format: int64
SourceConnectionIds
string
AsteriskMarked
boolean
AsteriskKindId
integer format: int64
RecipientName
string
RecipientCompanyName
string
RecipientFirstLastCompanyName
string
RecipientPhone
string
RecipientCity
string
RecipientPostCode
string
RecipientCountry
string
RecipientApartmentNo
string
RecipientHouseNo
string
RecipientStreet
string
RecipientState
string
BuyerUsername
string
BuyerEmail
string
BuyerComments
string
SellerComments
string
DeliveryMethod
string
IsCod
boolean
PaymentStatus
string
PaymentName
string
PaymentPlatformId
string
Offset
integer format: int32
Limit
integer format: int32
ProductId
string
ProductName
string
ProductCode
string
ProductEan
string
PayerName
string
PayerCompanyName
string
PayerRawCompanyTaxId
string
ShipmentsTrackingNumber
string
ElasticFieldValue
string
PlatformDateAddedFrom
string format: date-time
PlatformDateAddedTo
string format: date-time
PlatformDateConfirmedFrom
string format: date-time
PlatformDateConfirmedTo
string format: date-time
PickupPointCode
string
PickupPointName
string
PickupPointApartmentNo
string
PickupPointHouseNo
string
PickupPointStreet
string
PickupPointCity
string
PickupPointPostCode
string
PickupPointState
string
PickupPointCountryCode
string
SearchOperator
string
IncludeLineItemsElasticFields
boolean
AdditionalField1
string
AdditionalField2
string
Currency
string
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
list
Array<object>
object
id
integer format: int64
source
object
connectionId
integer format: int64
connectionType
string
platformAccountId
string
platformOrderId
string
externalSourceId
string
externalSourceType
string
connectionId
string
connectionType
string
sourceOrderId
string
sellerComments
string
buyerComments
string
asteriskMarked
boolean
asteriskKindId
integer format: int64
asteriskKindColor
string
asteriskKindIcon
string
paymentName
string
packState
integer format: int32
pickState
integer format: int32
additionalField1
string
additionalField2
string
platformDateAddedUtc
string format: date-time
platformDateConfirmedUtc
string format: date-time
seller
object
email
string
username
string
fullName
string
companyName
string
rawCompanyTaxId
string
phone
string
buyer
object
email
string
username
string
fullName
string
companyName
string
rawCompanyTaxId
string
phone
string
address
object
street
string
city
string
postCode
string
state
string
countryCode
string
fullNumber
string
isEu
boolean
status
object
id
integer format: int64
from
string format: date-time
delivery
object
recipient
object
email
string
fullName
string
companyName
string
phone
string
address
object
street
string
city
string
postCode
string
state
string
countryCode
string
fullNumber
string
isEu
boolean
pickupPoint
object
code
string
name
string
description
string
address
object
street
string
city
string
postCode
string
state
string
countryCode
string
fullNumber
string
isEu
boolean
cost
object
currency
string
amount
number format: double
method
object
platformId
string
platformName
string
isCod
boolean
isPacked
boolean
isPicked
boolean
isBeingPacked
boolean
isBeingPicked
boolean
packedByUserId
integer format: int64
invoice
object
required
boolean
payer
object
email
string
username
string
fullName
string
companyName
string
rawCompanyTaxId
string
phone
string
address
object
street
string
city
string
postCode
string
state
string
countryCode
string
fullNumber
string
isEu
boolean
lineItems
Array<object>
object
id
integer format: int64
platformId
string
product
object
id
integer format: int64
platformId
string
name
string
code
string
ean
string
bundleId
string
warehouseId
string
parentName
string
additionalEans
Array<object>
object
ean
string
quantity
number format: double
description
string
quantity
number format: double
tax
object
symbol
string
rate
number format: double
price
object
currency
string
unitPrice
Cena brutto
number format: double
originalUnitPrice
number format: double
elasticFields
Array<object>
object
fieldName
string
fieldValue
string
allegroOfferUrl
string
summary
object
totalToPay
object
currency
string
amount
number format: double
toPayWithoutShipment
object
currency
string
amount
number format: double
cancellation
object
cancelledAtUtc
string format: date-time
reason
string
returnIds
Array<integer>
fulfillmentByMarketplace
boolean
orderIdFromWhichThisWasCreatedBySplit
integer format: int64
orderIdsWhichWereCreatedBySplitFromThis
Array<integer>
hasInvoiceAttached
boolean
hasProformaAttached
boolean
invoiceAttachedInfo
string
return
object
returnedAtUtc
string format: date-time
reason
string
hasReceiptAttached
boolean
hasOtherTypeAttached
boolean
mergedOrders
Array<object>
object
id
integer format: int64
connectionPlatformOrderId
string
connectionId
integer format: int64
pageNumber
integer format: int32
total
integer format: int32
Examplegenerated
{ "list": [ { "id": 1, "source": { "connectionId": 1, "connectionType": "example", "platformAccountId": "example", "platformOrderId": "example" }, "externalSourceId": "example", "externalSourceType": "example", "connectionId": "example", "connectionType": "example", "sourceOrderId": "example", "sellerComments": "example", "buyerComments": "example", "asteriskMarked": true, "asteriskKindId": 1, "asteriskKindColor": "example", "asteriskKindIcon": "example", "paymentName": "example", "packState": 1, "pickState": 1, "additionalField1": "example", "additionalField2": "example", "platformDateAddedUtc": "2026-04-15T12:00:00Z", "platformDateConfirmedUtc": "2026-04-15T12:00:00Z", "seller": { "email": "example", "username": "example", "fullName": "example", "companyName": "example", "rawCompanyTaxId": "example", "phone": "example" }, "buyer": { "email": "example", "username": "example", "fullName": "example", "companyName": "example", "rawCompanyTaxId": "example", "phone": "example", "address": { "city": "example", "postCode": "example", "state": "example", "countryCode": "example" } }, "status": { "id": 1, "from": "2026-04-15T12:00:00Z" }, "delivery": { "recipient": { "email": "example", "fullName": "example", "companyName": "example", "phone": "example", "address": { "city": "example", "postCode": "example", "state": "example", "countryCode": "example" } }, "pickupPoint": { "code": "example", "name": "example", "description": "example", "address": { "city": "example", "postCode": "example", "state": "example", "countryCode": "example" } }, "cost": { "currency": "example", "amount": 1 }, "method": { "platformId": "example", "platformName": "example" }, "isCod": true, "isPacked": true, "isPicked": true, "isBeingPacked": true, "isBeingPicked": true, "packedByUserId": 1 }, "invoice": { "required": true, "payer": { "email": "example", "username": "example", "fullName": "example", "companyName": "example", "rawCompanyTaxId": "example", "phone": "example", "address": { "city": "example", "postCode": "example", "state": "example", "countryCode": "example" } } }, "lineItems": [ { "id": 1, "platformId": "example", "product": { "id": 1, "platformId": "example", "name": "example", "code": "example", "ean": "example", "bundleId": "example", "warehouseId": "example", "parentName": "example", "additionalEans": [ { "ean": "example", "quantity": 1, "description": "example" } ] }, "quantity": 1, "tax": { "symbol": "example", "rate": 1 }, "price": { "currency": "example", "unitPrice": 1, "originalUnitPrice": 1 }, "elasticFields": [ { "fieldName": "example", "fieldValue": "example" } ], "allegroOfferUrl": "example" } ], "summary": { "totalToPay": { "currency": "example", "amount": 1 }, "toPayWithoutShipment": { "currency": "example", "amount": 1 } }, "cancellation": { "cancelledAtUtc": "2026-04-15T12:00:00Z", "reason": "example" }, "returnIds": [ 1 ], "fulfillmentByMarketplace": true, "orderIdFromWhichThisWasCreatedBySplit": 1, "orderIdsWhichWereCreatedBySplitFromThis": [ 1 ], "hasInvoiceAttached": true, "hasProformaAttached": true, "invoiceAttachedInfo": "example", "return": { "returnedAtUtc": "2026-04-15T12:00:00Z", "reason": "example" }, "hasReceiptAttached": true, "hasOtherTypeAttached": true, "mergedOrders": [ { "id": 1, "connectionPlatformOrderId": "example", "connectionId": 1 } ] } ], "pageNumber": 1, "total": 1}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

