<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.tatadigital.com/api/order/v2/%7BcustomerHash%7D/order-history',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{"pageNumber":0,"recordsPerPage":15,"filter":{"instrumentType":[],"category":[],"transactionStatus":[],"startDate":"","endDate":"","refunds":[]}}',
  CURLOPT_HTTPHEADER => array(
    'Accept: application/json',
    'Content-Type: application/json',
    'client_id: TCP-WEB-APP',
    'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:134.0) Gecko/20100101 Firefox/134.0',
    'Authorization: Bearer bc8f7a87-896e-4acc-9fb9-e250183cfb48',
    'Cookie: _abck=F5219942B444077A848263F08031C2A2~-1~YAAQl0w5F/oe/rCUAQAAgIxrxQ0xc4lrPGxpNHLp96E3Mae/gQCj8Rc9skuQJm9dFwgbhTVcPMXnHhLTZ7zLDxvwlab8D1Af0Ai9mgeFcqtnWOgYab/1gaMnRqJqrlu4WoHwK99PZG+JvyTRn9aOa3GT6RhLeTEoE8b67r+imIjRxiLsuZcyAkIuvKHrIXdImat+7CXX6sPwA/EL4j5IdS2CyAA72R3ptTVY5EHTjrCLNTSAFQDHpJLEsoDhLPXqrKpmRdgh75PsLRI8efck+z5CcGKjTK0vRtyyUf1Q8Y+aQfO0rYHPs2tmO1em/zPDxoUkBrZU6AYIc7dyXU+jw3CQ9Kszurj+AAu4RxRK1eLFjbz4NPfrE226fDReuhuyA3yf8BMRpXHzJpdlqbOYlt+LHE1WB6UV4CLvUmn+EnwK9ED8q0YYGKQLiLkHs6OuIJBt89SXhm6gQeezDFp3w4AaYoGM6WiHjdqruVnmct9FjIHuN0nDUecRRL6muLIlSosEeD0UjD5QzBt10Pk4PxE0+sLXnskeKD3lDiC1UhvPc945VawYioB7y4kRn82b7f2R+8J9QHqY6fhPKEegBuBz4Z50oxtHHtYud6HLsRMNfGFX+AZDFTVgiR68nfRTydZp2uUKzJFvRUypX+d7m+8QF2ocSX1w+es9Jcn1HtTtfWqWx5vqWXiSkyQ98XAvOZeictU8GS79DJm3xaAwJUaUYsrOfjmmy+QfOv9QIgI3sXbv2V/nA2gW4Z/l2WtK9qZxgYcV0peFB68q~-1~-1~-1; ak_bmsc=49FB79A9352A26D6A44349C9904B6FCF~000000000000000000000000000000~YAAQl0w5F10X/rCUAQAASXNrxRr01ZhLUcAuZIqW6Km3/PCw/AtigXwZ3h/cw+I/ClmOkFioB1QIQBGgGl5f7V9wY8TjBZy+R6coI66xq2G3DFXeZPpIhbgD4K51eoS9IZoBgfRWig4nArpPSu3LXMnOQu3ozMy9X+utJPoPyuNfj0T0iq/HS5VIiL9bjl9nPZKRCCD21ZursIM2ch298MFXB1klotkzZqRbI7YPOtiv/rPWea4V701lzv7TQTNGeYjdYZ7BhWg/c9FdferPlHMJwZmLJ7ywaRZR+6ffwzZtJQyJVLGi8XfdoS0GTgsa0taP3egoe+swmoF8KDyqndx9E2KMu5OHhLU4a+Kfqf4F; bm_sv=D66F5F70675C292D53A902099257C9E6~YAAQnkw5F+saAqWUAQAAcuOTxRrFb9to4syrITIGoBnxcoVb2eN38TeU15QSik+VEYr4hCniIJAj9BVfabzuEc/mUt0dleKSUNiYJhvpQLkk8lFSeiiAUxEICH137kbAtFQvTXHYzMcfxpF/TPp2Z3fYhZSVD3QwPwZz9x0ppO3C2RudZSSgVmCz9o2MMuBvNGU6HYBFz760ZnztGsMPDuK5HDKwsfhRGkd8ze1dKrBYE05Emyji/Ym/0c0VW+zRdMM84ms=~1; bm_sz=49F10DE2BA4E9A48847B855684C6D0C8~YAAQl0w5F/we/rCUAQAAgIxrxRpcCyB0qigycb1URGn4ppwWCiBFGqrttMz07Jvm9+sMuyuvei82Z7f4CBxcy34oZjkq6jyzMOeMgeA3cEn1P45FMN56nuAh9FA2sExNfK39a1SlHS9hUBN/jMFvfLnEHKR9iIXzHvM1f6TZNTTVqvQFSpQAh0wfRXA41zA1P9lu3rlvv/DkP9dwHQKOX1d376Lzpt69yMcdMRGY+4dhjnerPUgFSqwk2naJ28wMrObMD4yQQkTmxVMKmjZukm8IIdbwnKbv9rH7ZCMSQ2LmDqeVj2OrTztVAM1RcGX7S/VkUh8GyR4ZyM8stCDYPglqpEnp5jPaOBNXBWr/G/pPjnVv4QRPobgNq8NfNgOLF6ia0Nrp9ZDkKg==~4276531~4601158'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;