Trade details
Get trades
Get trades
curl https://api.symblepay.io/v1/marketplace/users/{USER_ID}/trades \
-X GET \
-H 'Authorization: Bearer {API_TOKEN}' \
-H 'Content-Type: application/json'
Response example
{
"trades": [
{
"tradeId": "a95a1320-fce8-4838-9ff2-286501b45350",
...
}
],
"pagination": {
"pageSize": 10,
"page": 1
}
}
Get trade
Get trade
curl https://api.symblepay.io/v1/marketplace/users/{USER_ID}/trades/{TRADE_ID} \
-X GET \
-H 'Authorization: Bearer {API_TOKEN}' \
-H 'Content-Type: application/json'
Response example
{
"tradeId": "a95a1320-fce8-4838-9ff2-286501b45350",
"payer": {
"symblepayUserId": "8839c3be-64f6-4901-861a-3fd15f26596b",
"phoneNumber": "+45 555555",
"name": "John Doe",
"city": "København Ø",
"postalCode": "2100",
"address": "Fakestreet 123",
"fees": {
"fixedAmount": 1000.0,
"variableAmount": 10.5,
"variablePercentage": 1.05,
"amount": 1010.5
},
"status": {
"deadline": "2024-02-16T10:36:20+01:00",
"deadlineDescription": "description",
"title": "title",
"description": "description",
"iconId": 0,
"actions": [
{
"type": 0,
"text": "description"
}
],
"hasPendingAction": true
},
"timeline": [
{
"id": 0,
"title": "title",
"description": "description",
"iconId": 0,
"state": 0,
"date": "2024-02-16T14:35:25+01:00",
"detailsTitle": "title",
"detailsDeadlineDescription": "description",
"detailsDescription": "description"
}
]
},
"payee": {
...
},
"referenceId": "3811b9da-dd5b-4834-b266-2414e76276aa",
"title": "Adidas Campus 00s",
"description": "Campus 00s Crystal White / Core Black / Off White",
"price": 1050.2,
"phases": {
"contract": {
"started": "2024-02-16T14:35:25+01:00",
"paid": "2024-02-16T14:35:25+01:00",
"invitationAccepted": "2024-02-16T14:35:25+01:00",
"invitationRejected": "2024-02-16T14:35:25+01:00",
"amount": 100.0
},
"delivery": {
"started": "2024-02-16T14:35:25+01:00",
"paid": "2024-02-16T14:35:25+01:00",
"sent": "",
"lost": "",
"delivered": "",
"approved": "",
"rejected": "",
"labelPricePayer": 100.0,
"labelPricePayee": 20.4,
"labelCode": "awd6644488",
"labelPaidBy": 1,
"labelId": "ab5a2c37-bcf9-4164-8682-7ae866be10f2",
"shippingProvider": "97e1e12e-9ee5-4b09-8115-a771045c8ba8",
"labelTracking": "url",
"rejectedReason": {
"description": "description",
"images": [
{ "url": "url" }
]
}
},
"return": {
...
},
"finished": {
"succeeded": "2024-02-16T14:35:25+01:00",
"cancelled": "2024-02-16T14:35:25+01:00",
"returned": "2024-02-16T14:35:25+01:00",
"released": "2024-02-16T14:35:25+01:00",
"amount": 100.2
}
},
"images": [
{
"url": "image-url"
}
]
}