Missing Link header in response from paginated request to the REST Admin API

Highlighted
New Member
1 0 0

Hi,

 

I try to change to Cursor-based pagination but no luck... Missing Link header.

Request: 

https://boxtal-maxime-store-2.myshopify.com/admin/api/2020-04/orders.json?status=open&fulfillment_status=unfulfilled&limit=100

Response header: 

[Date: Fri, 29 May 2020 09:09:45 GMT, Content-Type: application/json; charset=utf-8, Transfer-Encoding: chunked, Connection: keep-alive, Set-Cookie: __cfduid=d3b3fcd6d873ff45311903c422ddf5c031590743385; expires=Sun, 28-Jun-20 09:09:45 GMT; path=/; domain=.myshopify.com; HttpOnly; SameSite=Lax, X-Sorting-Hat-PodId: 74, X-Sorting-Hat-ShopId: 28854681675, Vary: Accept-Encoding, Referrer-Policy: origin-when-cross-origin, X-Frame-Options: DENY, X-ShopId: 28854681675, X-ShardId: 74, X-Stats-UserId: , X-Stats-ApiClientId: 3026193, X-Stats-ApiPermissionId: 209417076811, HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT: 1/40, X-Shopify-Shop-Api-Call-Limit: 1/40, X-Shopify-API-Version: 2020-04, Strict-Transport-Security: max-age=7889238, X-Shopify-Stage: production, Content-Security-Policy: default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; frame-ancestors 'none'; img-src 'self' data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopify.cn https://checkout.shopifycs.com https://js-agent.newrelic.com https://bam.nr-data.net https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v.shopify.com https://widget.intercom.io https://js.intercomcdn.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=index&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=87e922fc-be41-4a5c-8b0c-3b8d5dbbaf7b, X-Content-Type-Options: nosniff, X-Download-Options: noopen, X-Permitted-Cross-Domain-Policies: none, X-XSS-Protection: 1; mode=block; report=/xss-report?source%5Baction%5D=index&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=87e922fc-be41-4a5c-8b0c-3b8d5dbbaf7b, X-Dc: gcp-us-east1,gcp-us-central1,gcp-us-central1, NEL: {"report_to":"network-errors","max_age":2592000,"failure_fraction":0.01,"success_fraction":0.0001}, Report-To: {"group":"network-errors","max_age":2592000,"endpoints":[{"url":"https://monorail-edge.shopifycloud.com/v1/reports/nel/20190325/shopify"}]}, X-Request-ID: 87e922fc-be41-4a5c-8b0c-3b8d5dbbaf7b, NEL: {"report_to":"network-errors","max_age":2592000,"failure_fraction":0.01,"success_fraction":0.0001}, Report-To: {"group":"network-errors","max_age":2592000,"endpoints":[{"url":"https://monorail-edge.shopifycloud.com/v1/reports/nel/20190325/shopify"}]}, CF-Cache-Status: DYNAMIC, cf-request-id: 03014add150000cd8f42a14200000001, Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct", Server: cloudflare, CF-RAY: 59af140e8c83cd8f-CDG, alt-svc: h3-27=":443"; ma=86400]

Can you help me with this?

 

Thanks!

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1031 138 160

There are only 6 orders. Change the limit to <6 and you'll see a next link.

1 Like