1. Create a Return Request

Guide on creating a return request for order packages without a return code, including API details and sample requests.

Create a Return Request (as-accepted)

You can use it to create return request packages for order packages that arrive without a return code. After creating a package with this service, you can get the return packages with Getting Returned Orders

  • The refund request you will create will be created in the status of "Created". You can use the "createClaim" service only for return requests you will "approve."

  • Using this servise, you will be automatically approved the claim. This service should be used at the end of the refund process.

  • You need to send "storeFrontCode" as Header Parameter.

POST createClaim

Sample Service Request

{
  "claimItems": [
    {
      "orderLineId": 456,
      "quantity": 1
    },
    {
      "orderLineId": 9876,
      "quantity": 2
    }
  ],
  "orderParentNumber": "1234567"
}

Sample Service Response

{
    "claimId": "string",
    "claimItemIds": [
        "string"
    ]
}
Field NameDetails
quantityIt is the quantity information of the product you want to create a return request.
orderParentNumberThe number of the order.
orderLineIdYou can use the id value of the line id of the order

Create a Return Request (createClaim)

You can use it to create return request packages for order packages that arrive without a return code. After creating a package with this service, you can get the return packages with Getting Returned Orders

  • The refund request you will create will be created in the status of "Created". You can use the "createClaim" service only for return requests you will "approve."

POST createClaim

Sample Service Request

{
  "claimItems": [
    {
      "barcode": "string",
      "customerNote": "string",
      "quantity": 0,
      "reasonId": 401
    }
  ],
  "customerId": 0,
  "excludeListing": true,
  "forcePackageCreation": true,
  "orderNumber": "string",
  "shipmentCompanyId": 100 // should be 100 as a default.
}

Sample Service Response

{
    "claimId": "string",
    "cargoTrackingNumber": 733xxxxxxx,
    "claimItemIds": [
        "string"
    ]
}
Field NameDetails
barcodeIt is the barcode information of the product in the order.
customerNoteIt is the field written by customers. If you wish, you can feed this field with a text such as "Return without return code".
quantityIt is the quantity information of the product you want to create a return request.
reasonIdThese are the reasons for return selected by customers on trendyol.com. You can feed this id value as "I give up" with 401 id value for now.
customerIdIt is the id value of the customer who take the order on Trendyol.
orderNumberThe number of the order.
shipmentCompanyIdYou can use the id value of the cargo company you have worked with.