# Receipt\_Url not always returned

**URL:** <https://developer.squareup.com/forums/t/receipt-url-not-always-returned/4231>\
**Category:** Questions\
**Tags:** payments-api\
**Created:** [November 14, 2021, 2:53am UTC](https://developer.squareup.com/forums/t/receipt-url-not-always-returned/4231 "2021-11-14T02:53:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Salvatore](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@Salvatore](https://developer.squareup.com/forums/u/Salvatore)\
**Post date:** [November 14, 2021, 2:53am UTC](https://developer.squareup.com/forums/t/receipt-url-not-always-returned/4231/1 "2021-11-14T02:53:56Z")

</div>

Hi ,

I implemented TERMINAL API and also the SquarePayform ( Website ) for a client a while ago . I recently made a change to also capture the returned receipt\_url string and save it into a table so we can email later…

On occasion the returned json string doesn’t always contain the reciept\_url , but it does contain everything else , If I go and query the payment id later it’s there .

Is there anything else I should consider like implementing some form of wait …

Regards,  
Sam

---

<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 15, 2021, 4:49pm UTC](https://developer.squareup.com/forums/t/receipt-url-not-always-returned/4231/2 "2021-11-15T16:49:58Z")

</div>

I didn’t think a wait was necessary however if you do a retry is the URL in the next call? If so you could either do a wait or implement a retry method. 🙂

---

<div class="post-metadata">

**Author:** ![Salvatore](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@Salvatore](https://developer.squareup.com/forums/u/Salvatore)\
**Post date:** [November 15, 2021, 6:15pm UTC](https://developer.squareup.com/forums/t/receipt-url-not-always-returned/4231/3 "2021-11-15T18:15:48Z")

</div>

Hi Bryan,

I have implemented a slight wait and it seems to have done the trick so far . Will let you know if it re occurs.

Sam
