import { apiShopeeSeller } from '@/api/shopee/seller/init';

export const getShopeePrintPdf = async (jobId) => {
  const result = await apiShopeeSeller.get('/api/v3/logistics/download_sd_job', {
    params: {
      job_id: jobId,
      is_first_time: 0,
    },
    responseType: 'arraybuffer',
    headers: {
      'accept': 'application/json, application/force-download, text/plain, */*',
    },
  });

  return result;
};
