{"section":"known-issues","requestedLocale":"en","requestedSlug":"the-search-route-of-the-gift-card-system-intermittently-does-not-return-vouchers-when-the-restrange-header-is-less-than-10","locale":"en","slug":"the-search-route-of-the-gift-card-system-intermittently-does-not-return-vouchers-when-the-restrange-header-is-less-than-10","path":"docs/en/known-issues/Payments/the-search-route-of-the-gift-card-system-intermittently-does-not-return-vouchers-when-the-restrange-header-is-less-than-10.md","branch":"main","content":"## Summary\n\n\nIn a scenario where the customer has loyalty vouchers and reaches the checkout, it is expected that the /_search route returns all vouchers linked to that user. However, the checkout passes the header with REST-range = 0-9. In some accounts, this range is not sufficient and the API returns an empty array. When we simulate the call directly to the API with a range greater than 10, we are able to retrieve at least one voucher.\n\n\n##\n\n## Simulation\n\n\nTo have a store in this situation and make a POST to this route https://developers.vtex.com/docs/api-reference/giftcard-api#post-/giftcards/_search passing the header REST-range=giftcard=0-9.\n\n\n##\n\n## Workaround\n\n\nUse a number larger than the range of 0-9. However, the checkout does not customize this field."}