2. Getting Returned Orders
You can get returned orders with Trendyol system with this method.
- You need to send "storeFrontCode" as Header Parameter.
- Your packages, whose status is updated in return services, will be returned to you in the order of lastModifiedDate.
- If you want to get your new orders, you have to request wih Accepted status.
- The claimDate information is sent to you in Timestamp (milliseconds) GMT format. To match the date information with the supplier panel, you need to process as GMT + 3.
GET getClaimPackages
Service Status
| Service | Definition |
|---|---|
| Accepted | It returns when the returned orders approved. |
Service Parameters
- When the claimIds parameter is given, all other parameters are not processed and only the values of the respective claimId will be returned.
- The "orderShipmentPackageId" value is the id value of the return package.
| Parameter | Definiton | Type |
|---|---|---|
| claimIds | See the details of the respective claim packages, singular or plural. | string |
| claimItemStatus | It is the status of the returned order item | string |
| endDate | It works according to the creation date of the claim package. | integer |
| startDate | It works according to the creation date of the claim package. | integer |
| orderNumber | The order number of the claim package. | string |
| size | Specifies the maximum number of items to be listed on a page. | integer |
| page | Returns only information on the specified page. | integer |
*Sample Service Response
{
"totalElements": 2,
"totalPages": 1,
"page": 0,
"size": 2,
"content": [
{
"id": "b2399927-4785-4c40-8356-15790e311550",
"claimId": "b2399927-4785-4c40-8356-15790e311550",
"orderNumber": "1238478050",
"orderDate": 1776144573977,
"customerFirstName": "dgtest",
"customerLastName": "dgtest",
"claimDate": 1776144831330,
"cargoProviderName": "",
"orderShipmentPackageId": 91985196,
"items": [
{
"orderLine": {
"id": 10233605,
"productName": "Test Product PMID-BC-SGR-VALID-1774853288028198, en-125 x 140",
"barcode": "BC-1774853288017902",
"merchantSku": "STOCK-1774853288028690",
"productColor": "White",
"productSize": "en-125 x 140",
"price": 91.5,
"vatBaseAmount": 21,
"vatRate": 21,
"salesCampaignId": 61,
"productCategory": "Sweatshirt",
"lineItems": null
},
"claimItems": [
{
"id": "17fbc0c2-beec-4cf2-aec8-99a09dfcee44",
"orderLineItemId": 56930856,
"customerClaimItemReason": {
"id": 301,
"name": "Defective product was sent",
"externalReasonId": 20,
"code": "DAMAGEDITEM"
},
"trendyolClaimItemReason": {
"id": 301,
"name": "Defective product was sent",
"externalReasonId": 20,
"code": "DAMAGEDITEM"
},
"claimItemStatus": {
"name": "Accepted"
},
"note": "",
"customerNote": "string",
"resolved": true,
"autoAccepted": null,
"acceptedBySeller": false,
"acceptDetail": "SYSTEM"
}
]
}
],
"lastModifiedDate": 1776144843662,
"orderOutboundPackageId": 91985194
},
{
"id": "5e38ce6a-066b-4a5b-92ce-a6aa894a0139",
"claimId": "5e38ce6a-066b-4a5b-92ce-a6aa894a0139",
"orderNumber": "1238478050",
"orderDate": 1776144573977,
"customerFirstName": "dgtest",
"customerLastName": "dgtest",
"claimDate": 1776144887272,
"cargoProviderName": "",
"orderShipmentPackageId": 91985197,
"items": [
{
"orderLine": {
"id": 10233605,
"productName": "Test Product SGR Valid PMID-BC-SGR-VALID-1774853288028198, en-125 x 140",
"barcode": "BC-SGR-VALID-1774853288017902",
"merchantSku": "STOCK-1774853288028690",
"productColor": "White",
"productSize": "en-125 x 140",
"price": 93,
"vatBaseAmount": 21,
"vatRate": 21,
"salesCampaignId": 61,
"productCategory": "Sweatshirt",
"lineItems": null
},
"claimItems": [
{
"id": "290fd080-40d2-47ef-912f-40d6a7c858a3",
"orderLineItemId": 56930855,
"customerClaimItemReason": {
"id": 301,
"name": "Defective product was sent",
"externalReasonId": 20,
"code": "DAMAGEDITEM"
},
"trendyolClaimItemReason": {
"id": 301,
"name": "Defective product was sent",
"externalReasonId": 20,
"code": "DAMAGEDITEM"
},
"claimItemStatus": {
"name": "Accepted"
},
"note": "",
"customerNote": "string",
"resolved": true,
"autoAccepted": null,
"acceptedBySeller": false,
"acceptDetail": "SYSTEM"
},
{
"id": "39963445-066b-43c9-85bb-da6e81e31b47",
"orderLineItemId": 56930857,
"customerClaimItemReason": {
"id": 301,
"name": "Defective product was sent",
"externalReasonId": 20,
"code": "DAMAGEDITEM"
},
"trendyolClaimItemReason": {
"id": 301,
"name": "Defective product was sent",
"externalReasonId": 20,
"code": "DAMAGEDITEM"
},
"claimItemStatus": {
"name": "Accepted"
},
"note": "",
"customerNote": "string",
"resolved": true,
"autoAccepted": null,
"acceptedBySeller": false,
"acceptDetail": "SYSTEM"
}
]
}
],
"lastModifiedDate": 1776144890741,
"orderOutboundPackageId": 91985194
}
]
}Updated 16 days ago