# Testing Retrieve Gift Card From Nonce Endpoint

**URL:** <https://developer.squareup.com/forums/t/testing-retrieve-gift-card-from-nonce-endpoint/19452>\
**Category:** Questions\
**Tags:** gift-cards-api\
**Created:** [November 4, 2024, 9:24pm UTC](https://developer.squareup.com/forums/t/testing-retrieve-gift-card-from-nonce-endpoint/19452 "2024-11-04T21:24:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![icarlthiscode](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@icarlthiscode](https://developer.squareup.com/forums/u/icarlthiscode)\
**Post date:** [November 4, 2024, 9:24pm UTC](https://developer.squareup.com/forums/t/testing-retrieve-gift-card-from-nonce-endpoint/19452/1 "2024-11-04T21:24:16Z")

</div>

Currently, there is no documentation for testing the ‘Retrieve gift card from nonce’ (POST /v2/gift-cards/from-nonce) endpoint in a sandbox account.

How can querying a gift card from the Web Payments SDK be tested in a sandbox account? It seems that the Web Payments SDK sandbox script only accepts the test card number, 7783 3200 0000 0000, and returns a random GAN and card nonce. Forwarding this nonce to the the ‘Retrieve gift card from nonce’ endpoint will result in a 404, as the made up GAN does not exist in the sandbox account.

How can this API transaction be tested in development without a production Square account?

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [November 4, 2024, 9:24pm UTC](https://developer.squareup.com/forums/t/testing-retrieve-gift-card-from-nonce-endpoint/19452/2 "2024-11-04T21:24:40Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Sandbox Payments](https://developer.squareup.com/docs/devtools/sandbox/payments)**
>
> A quick reference of test credit card numbers and payment tokens you can use to make test payments with the Square Sandbox.

> **[Test in the Sandbox](https://developer.squareup.com/docs/devtools/sandbox/testing)**
>
> A quick reference for walkthroughs for various Square APIs that use the Sandbox for testing.

> **Additional Documentation**
>
> [Sell a Gift Card](https://developer.squareup.com/docs/gift-cards/walkthrough-1)  
> [Square Sandbox](https://developer.squareup.com/docs/devtools/sandbox/overview)  
> [Retrieve Gift Cards and Track Activity](https://developer.squareup.com/docs/gift-cards/retrieve-gift-cards-and-activities)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.

---

<div class="post-metadata">

**Author:** ![icarlthiscode](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@icarlthiscode](https://developer.squareup.com/forums/u/icarlthiscode)\
**Post date:** [November 4, 2024, 9:26pm UTC](https://developer.squareup.com/forums/t/testing-retrieve-gift-card-from-nonce-endpoint/19452/3 "2024-11-04T21:26:44Z")

</div>

As stated in the question, this documentation provides no clear solution.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [November 4, 2024, 9:31pm UTC](https://developer.squareup.com/forums/t/testing-retrieve-gift-card-from-nonce-endpoint/19452/4 "2024-11-04T21:31:25Z")

</div>

At this time the ability to test `RetrieveGiftCardFromNonce` isn’t currently available in sandbox. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. 🙂

---

<div class="post-metadata">

**Author:** ![icarlthiscode](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@icarlthiscode](https://developer.squareup.com/forums/u/icarlthiscode)\
**Post date:** [November 30, 2024, 1:35am UTC](https://developer.squareup.com/forums/t/testing-retrieve-gift-card-from-nonce-endpoint/19452/5 "2024-11-30T01:35:36Z")

</div>

Thanks Bryan,

From feedback on our side, using the secure Web Payments SDK for all customer card inputs is a much more consistent, reliable customer experience. But, needing to do proof-of-concept test in production really limits feature development.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [December 2, 2024, 5:19pm UTC](https://developer.squareup.com/forums/t/testing-retrieve-gift-card-from-nonce-endpoint/19452/6 "2024-12-02T17:19:44Z")

</div>

We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. 🙂
