hepsiburada developers

hepsiburada developers

Did You Know?

Soruların Filtrelenmesi

Soru listesi içerisinde filtreleme işlemleri yapılabilmesine olanak tanımaktadır.

Sorunun İletildiği Yere Göre

sipariş veya ürün detay üzerinden filtreleme yapılabilmektedir. 

  1. source integer($int32) – Ürün detay için 1, Siparişlerim için 2 seçilmelidir.

Endpoint(GET) - Örnek İstek

				
					https://api-asktoseller-merchant-sit.hepsiburada.com/api/v1.0/issues?status=4&source=1&status=2&page=1&size=25&sortBy=1&desc=true				
			

Response Body - 200 OK

				
					{
   "data": [
      {
         "id": "60feb319fb6dd1ddc76f5d7c",
         "createdAt": "2021-07-26T13:05:29.896Z",
         "issueNumber": 1000177,
         "customerId": "dfc8a27f-faae-4cb2-859c-8a7d50ee77be",
         "orderNumber": null,
         "lineItemId": null,
         "status": "AutoClosed",
         "subject": {
            "id": "5fe2fb094f3f076cf97b546e",
            "description": "Ürün Özellikleri"
         },
         "lastContent": "Sorunuz satıcı tarafından yanıtlanmamıştır. Başka bir satıcıya soru sorabilir veya Çözüm Merkezi üzerinden ilgili sorulara cevap bulabilirsiniz.",
         "conversations": [
            {
               "id": "60feb319fb6dd1ddc76f5d7b",
               "createdAt": "2021-07-26T13:05:29.896Z",
               "content": "Lorem ipsum dolor sit amet 4",
               "from": "Customer",
               "files": [],
               "customerFeedback": null,
               "rejectReason": null,
               "schemaVersion": 1
            },
            {
               "id": "610154dbfb6dd1ddc76f5de5",
               "createdAt": "2021-07-28T13:00:11.935Z",
               "content": "Sorunuz satıcı tarafından yanıtlanmamıştır. Başka bir satıcıya soru sorabilir veya Çözüm Merkezi üzerinden ilgili sorulara cevap bulabilirsiniz.",
               "from": "System",
               "files": [],
               "customerFeedback": null,
               "rejectReason": null,
               "schemaVersion": 1
            }
         ],
         "merchant": {
            "id": "b6d61df6-e2b1-4efd-bc73-4a9f2ffe0f73",
            "name": "MPTakimitest_mu"
         },
         "product": {
            "sku": "TELCEPASZEN5-GD",
            "name": "Asus Zenfone 5",
            "imageUrl": null,
            "stockCode": null
         },
         "expireDate": "2021-07-28T13:00:00Z",
         "lastModifiedAt": "2021-07-28T13:00:11.937Z",
         "schemaVersion": 0
      },
     {
               "id": "60eee89cfb6dd1ddc76f5d39",
               "createdAt": "2021-07-14T13:37:32.741Z",
               "content": "Test amaçlıdır. Bilgi",
               "from": "Merchant",
               "files": [],
               "customerFeedback": null,
               "rejectReason": null,
               "schemaVersion": 1
            }
         ],
         "merchant": {
            "id": "b6d61df6-e2b1-4efd-bc73-4a9f2ffe0f73",
            "name": "MPTakimitest_mu"
         },
         "product": {
            "sku": "TELCEPASZEN5-GD",
            "name": "Asus Zenfone 5",
            "imageUrl": null,
            "stockCode": null
         },
         "expireDate": "2021-07-26T13:00:00Z",
         "lastModifiedAt": "2021-07-14T13:37:32.741Z",
         "schemaVersion": 0
      }
   ],
   "currentPage": 1,
   "currentPageSize": 25,
   "totalPageCount": 1,
   "totalItemCount": 10,
   "nextPage": null,
   "previousPage": null
}				
			

Soru Sorulma Tarihine Göre

Tarih parametreleri seçilerek , tarih bazlı sorulara erişilebilinir.

  1. minCreatedAt string ($date-time) (query)
    maxCreatedAt string ($date-time) (query)

Endpoint(GET) - Örnek İstek

				
					https://api-asktoseller-merchant-sit.hepsiburada.com/api/v1.0/issues?s?minCreatedAt=2021-07-26T00:00:00.000Z&maxCreatedAt=2021-07-29T00:00:00.000Z&status=1&page=1&size=25&sortBy=0&desc=true				
			

Response Body - 200 OK

				
					{
   "data": [
      {
         "id": "6100ead5fb6dd1ddc76f5dac",
         "createdAt": "2021-07-28T05:27:49.138Z",
         "issueNumber": 1000189,
         "customerId": "dfc8a27f-faae-4cb2-859c-8a7d50ee77be",
         "orderNumber": null,
         "lineItemId": null,
         "status": "WaitingForAnswer",
         "subject": {
            "id": "5fe2fb094f3f076cf97b546e",
            "description": "Ürün Özellikleri"
         },
         "lastContent": "Lorem ipsum dolor sit amet 4",
         "conversations": [
            {
               "id": "6100ead5fb6dd1ddc76f5dab",
               "createdAt": "2021-07-28T05:27:49.138Z",
               "content": "Lorem ipsum dolor sit amet 4",
               "from": "Customer",
               "files": [],
               "customerFeedback": null,
               "rejectReason": null,
               "schemaVersion": 1
            }
         ],
         "merchant": {
            "id": "b6d61df6-e2b1-4efd-bc73-4a9f2ffe0f73",
            "name": "integration_test"
         },
         "product": {
            "sku": "TELCEPASZEN5-GD",
            "name": "Asus Zenfone 5",
            "imageUrl": null,
            "stockCode": null
         },
         "expireDate": "2021-07-30T05:00:00Z",
         "lastModifiedAt": "2021-07-28T05:27:49.138Z",
         "schemaVersion": 0
      },
      {
         "id": "6100ead5fb6dd1ddc76f5da6",
         "createdAt": "2021-07-28T05:27:49.13Z",
         "issueNumber": 1000187,
         "customerId": "dfc8a27f-faae-4cb2-859c-8a7d50ee77be",
         "orderNumber": null,
         "lineItemId": null,
         "status": "WaitingForAnswer",
         "subject": {
            "id": "5fe2fb094f3f076cf97b546e",
            "description": "Ürün Özellikleri"
         },
         "lastContent": "Lorem ipsum dolor sit amet 2",
         "conversations": [
            {
               "id": "6100ead5fb6dd1ddc76f5da5",
               "createdAt": "2021-07-28T05:27:49.13Z",
               "content": "Lorem ipsum dolor sit amet 2",
               "from": "Customer",
               "files": [],
               "customerFeedback": null,
               "rejectReason": null,
               "schemaVersion": 1
            }
         ]
         "merchant": {
            "id": "b6d61df6-e2b1-4efd-bc73-4a9f2ffe0f73",
            "name": "MPTakimitest_mu"
         },
         "product": {
            "sku": "TELCEPASZEN5-GD",
            "name": "Asus Zenfone 5",
            "imageUrl": null,
            "stockCode": null
         },
         "expireDate": "2021-07-28T13:00:00Z",
         "lastModifiedAt": "2021-07-26T13:05:29.874Z",
         "schemaVersion": 0
      }
   ],
   "currentPage": 1,
   "currentPageSize": 25,
   "totalPageCount": 1,
   "totalItemCount": 13,
   "nextPage": null,
   "previousPage": null
}				
			
NOT

Encode edilmesi gerekmektedir, encode edilmiş örnek isteği aşağıdaki gibi olmalıdır.

				
					https://api-asktoseller-merchant-sit.hepsiburada.com/api/v1.0/issues?minCreatedAt=2021-06-29T00%3A00%3A00.000Z&maxCreatedAt=2021-07-01T00%3A00%3A00.000Z&status=1&page=1&size=25&sortBy=0&desc=true				
			

Son Güncellenme Tarihine Göre

  1. minModifiedAt string ($date-time) (query)
    maxModifiedAt string ($date-time) (query)

Endpoint(GET) - Örnek İstek

				
					https://api-asktoseller-merchant-sit.hepsiburada.com/api/v1.0/issues?minModifiedAt=2021-07-27T00:00:00.000Z&maxModifiedAt=2021-07-29T10:00:00.000Z&status=1&page=1&size=25&sortBy=0&desc=true&merchantId=b6d61df6-e2b1-4efd-bc73-4a9f2ffe0f73				
			

Response Body - 200 OK

				
					{
   "data": [
      {
         "id": "6100ead5fb6dd1ddc76f5dac",
         "createdAt": "2021-07-28T05:27:49.138Z",
         "issueNumber": 1000189,
         "customerId": "dfc8a27f-faae-4cb2-859c-8a7d50ee77be",
         "orderNumber": null,
         "lineItemId": null,
         "status": "WaitingForAnswer",
         "subject": {
            "id": "5fe2fb094f3f076cf97b546e",
            "description": "Ürün Özellikleri"
         },
         "lastContent": "Lorem ipsum dolor sit amet 4",
         "conversations": [
            {
               "id": "6100ead5fb6dd1ddc76f5dab",
               "createdAt": "2021-07-28T05:27:49.138Z",
               "content": "Lorem ipsum dolor sit amet 4",
               "from": "Customer",
               "files": [],
               "customerFeedback": null,
               "rejectReason": null,
               "schemaVersion": 1
            }
         ],
         "merchant": {
            "id": "b6d61df6-e2b1-4efd-bc73-4a9f2ffe0f73",
            "name": "integration_test"
         },
         "product": {
            "sku": "TELCEPASZEN5-GD",
            "name": "Asus Zenfone 5",
            "imageUrl": null,
            "stockCode": null
         },
         "expireDate": "2021-07-30T05:00:00Z",
         "lastModifiedAt": "2021-07-28T05:27:49.138Z",
         "schemaVersion": 0
      },
      {
         "id": "6100ead5fb6dd1ddc76f5da6",
         "createdAt": "2021-07-28T05:27:49.13Z",
         "issueNumber": 1000187,
         "customerId": "dfc8a27f-faae-4cb2-859c-8a7d50ee77be",
         "orderNumber": null,
         "lineItemId": null,
         "status": "WaitingForAnswer",
         "subject": {
            "id": "5fe2fb094f3f076cf97b546e",
            "description": "Ürün Özellikleri"
         },
         "lastContent": "Lorem ipsum dolor sit amet 2",
         "conversations": [
            {
               "id": "6100ead5fb6dd1ddc76f5da5",
               "createdAt": "2021-07-28T05:27:49.13Z",
               "content": "Lorem ipsum dolor sit amet 2",
               "from": "Customer",
               "files": [],
               "customerFeedback": null,
               "rejectReason": null,
               "schemaVersion": 1
            }
         ],
         "merchant": {
            "id": "b6d61df6-e2b1-4efd-bc73-4a9f2ffe0f73",
            "name": "MPTakimitest_mu"
         },
         "product": {
            "sku": "TELCEPASZEN5-GD",
            "name": "Asus Zenfone 5",
            "imageUrl": null,
            "stockCode": null
         },
         "expireDate": "2021-07-29T08:00:00Z",
         "lastModifiedAt": "2021-07-27T08:48:45.898Z",
         "schemaVersion": 0
      }
   ],
   "currentPage": 1,
   "currentPageSize": 25,
   "totalPageCount": 1,
   "totalItemCount": 8,
   "nextPage": null,
   "previousPage": null
}				
			
NOT

Encode edilmesi gerekmektedir, encode edilmiş örnek isteği aşağıdaki gibi olmalıdır.

				
					https://api-asktoseller-merchant-sit.hepsiburada.com/api/v1.0//issues?minModifiedAt=2021-06-29T00%3A00%3A00.000Z&maxModifiedAt=2021-07-01T00%3A00%3A00.000Z&status=1&page=1&size=25&sortBy=0&desc=true				
			

Konu başlığına Göre Listeleme

  1. subject string – burada geçilecek id ler için bu servis çağırılmalıdır

Endpoint(GET) - Örnek İstek

				
					https://api-asktoseller-merchant-sit.hepsiburada.com/api/v1.0/issues/subjects				
			

Response Body - 200 OK

				
					[
    {
        "id": "5fe2fb094f3f076cf97b546e",
        "description": "Ürün Özellikleri"
    },
    {
        "id": "5fe35f144f3f076cf97b5472",
        "description": "Servis ve Teknik Destek"
    },
    {
        "id": "5fe35edc4f3f076cf97b5471",
        "description": "İade ve İptal"
    },
    {
        "id": "5fe35e944f3f076cf97b5470",
        "description": "Teslimat ve Kargo"
    }
]				
			
NOT

Konu başlığına göre listeleme sonrasında gelen id’ler kullanılarak subject bilgisi ile filtreleme yapılabilir.

Endpoint(GET) - Örnek İstek

				
					https://api-asktoseller-merchant-sit.hepsiburada.com/api/v1.0/issues?subject=5fe2fb094f3f076cf97b546e&status=1&page=1&size=25&sortBy=0&desc=true				
			

Response Body - 200 OK

				
					{
   "data": [
      {
         "id": "61011ab6fb6dd1ddc76f5dc4",
         "createdAt": "2021-07-28T08:52:06.898Z",
         "issueNumber": 1000194,
         "customerId": "dfc8a27f-faae-4cb2-859c-8a7d50ee77be",
         "orderNumber": null,
         "lineItemId": null,
         "status": "WaitingForAnswer",
         "subject": {
            "id": "5fe2fb094f3f076cf97b546e",
            "description": "Ürün Özellikleri"
         },
         "lastContent": "Lorem ipsum dolor sit amet 4",
         "conversations": [
            {
               "id": "61011ab6fb6dd1ddc76f5dc3",
               "createdAt": "2021-07-28T08:52:06.898Z",
               "content": "Lorem ipsum dolor sit amet 4",
               "from": "Customer",
               "files": [],
               "customerFeedback": null,
               "rejectReason": null,
               "schemaVersion": 1
            }
         ]
         "merchant": {
            "id": "ac2a8cdd-5608-433e-8922-14c8a3db9de3",
            "name": "hamza_test"
         },
         "product": {
            "sku": "TELCEPASZEN5-GD",
            "name": "Asus Zenfone 5",
            "imageUrl": null,
            "stockCode": null
         },
         "expireDate": "2021-07-30T08:00:00Z",
         "lastModifiedAt": "2021-07-28T08:52:06.877Z",
         "schemaVersion": 0
      }
   ],
   "currentPage": 1,
   "currentPageSize": 25,
   "totalPageCount": 1,
   "totalItemCount": 5,
   "nextPage": null,
   "previousPage": null
}				
			

Mesaj Numarasına Göre Listeleme

Endpoint(GET) - Örnek İstek

				
					https://api-asktoseller-merchant-sit.hepsiburada.com/api/v1.0/issues?issueNumber=1000191&status=1&page=1&size=25&sortBy=0&desc=true				
			

Response Body - 200 OK

				
					{
    "data": [
        {
            "id": "61011ab6fb6dd1ddc76f5dbb",
            "createdAt": "2021-07-28T08:52:06.882Z",
            "issueNumber": 1000191,
            "customerId": "dfc8a27f-faae-4cb2-859c-8a7d50ee77be",
            "orderNumber": null,
            "lineItemId": null,
            "status": "WaitingForAnswer",
            "subject": {
                "id": "5fe2fb094f3f076cf97b546e",
                "description": "Ürün Özellikleri"
            },
            "lastContent": "Lorem ipsum dolor sit amet 1",
            "conversations": [
                {
                    "id": "61011ab6fb6dd1ddc76f5dba",
                    "createdAt": "2021-07-28T08:52:06.882Z",
                    "content": "Lorem ipsum dolor sit amet 1",
                    "from": "Customer",
                    "files": [],
                    "customerFeedback": null,
                    "rejectReason": null,
                    "schemaVersion": 1
                }
            ],
            "merchant": {
                "id": "ac2a8cdd-5608-433e-8922-14c8a3db9de3",
                "name": "hamza_test"
            },
            "product": {
                "sku": "TELCEPASZEN5-GD",
                "name": "Asus Zenfone 5",
                "imageUrl": null,
                "stockCode": null
            },
            "expireDate": "2021-07-30T08:00:00Z",
            "lastModifiedAt": "2021-07-28T08:52:06.882Z",
            "schemaVersion": 0
        }
    ],
    "currentPage": 1,
    "currentPageSize": 25,
    "totalPageCount": 1,
    "totalItemCount": 1,
    "nextPage": null,
    "previousPage": null
}				
			

Sayfa Başlıkları