Orders
Order operations
Returns a list of physical orders for the current user with pagination
Authorizations
Query parameters
lastOrderIdstringOptional
ID of the last order for cursor pagination
limitinteger · max: 50OptionalDefault:
Number of records per page (maximum 50)
50
pageintegerOptionalDefault:
Page number
1
Responses
200
Successful response
application/json
400
Bad request (invalid status)
application/json
401
Unauthorized (invalid API key)
application/json
get
GET /api/v1/physical/orders HTTP/1.1
Host: tribute.tg
Api-Key: YOUR_API_KEY
Accept: */*
{
"rows": [
{
"id": 12345,
"status": "pending",
"created": "2024-01-15T10:30:00Z",
"fullName": "John Doe",
"email": "[email protected]",
"phone": "+1234567890",
"telegramID": 123456789,
"address": {
"countryIso2": "US",
"countryIso3": "USA"
},
"locality": "New York",
"fullAddress": "USA, New York, 5th Avenue, 123, Apt 45",
"customerNote": "Please call before delivery",
"items": [
{
"id": 567,
"price": 150,
"quantity": 2,
"currency": "USD",
"name": "T-shirt with print",
"attributes": {
"size": "L",
"color": "Black"
}
}
],
"deliveryCost": 25.5,
"currency": "USD"
}
],
"meta": {
"total": 125,
"offset": 1,
"limit": 50
}
}
Returns detailed information about a specific order
Authorizations
Path parameters
idintegerRequired
Order ID
Responses
200
Successful response
application/json
400
Bad request (order ID not provided)
application/json
401
Unauthorized (invalid API key)
application/json
404
Order not found
application/json
get
GET /api/v1/physical/orders/{id} HTTP/1.1
Host: tribute.tg
Api-Key: YOUR_API_KEY
Accept: */*
{
"id": 12345,
"status": "pending",
"created": "2024-01-15T10:30:00Z",
"fullName": "John Doe",
"email": "[email protected]",
"phone": "+1234567890",
"telegramID": 123456789,
"address": {
"countryIso2": "US",
"countryIso3": "USA"
},
"locality": "New York",
"fullAddress": "USA, New York, 5th Avenue, 123, Apt 45",
"customerNote": "Please call before delivery",
"items": [
{
"id": 567,
"price": 150,
"quantity": 2,
"currency": "USD",
"name": "T-shirt with print",
"attributes": {
"size": "L",
"color": "Black"
}
}
],
"deliveryCost": 25.5,
"currency": "USD"
}