# Authorized payment actually succeeded but API returned GENERIC\_DECLINE error

**URL:** <https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916>\
**Category:** Questions\
**Tags:** payments-api\
**Created:** [July 4, 2023, 6:14pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916 "2023-07-04T18:14:36Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [July 4, 2023, 6:14pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/1 "2023-07-04T18:14:36Z")

</div>

Dear team,

We tried to make some authorized payments of $0.01 with payments api (exactly speaking, it’s through java sdk of payments api), in our application (prod env) with a new location,  
we noticed all these authorized payments with the new location failed with error GENERIC\_DECLINE like below, however we received the SMS saying $0.01 has been charged from the account (of a bank in CN), may i have your advice please whether we missed or mistook anything?

> [category=PAYMENT\_METHOD\_ERROR, code=GENERIC\_DECLINE, detail=Authorization error: ‘GENERIC\_DECLINE’, field=null]

btw, we also tried to make the same authorized payment with another old location and it was success, the new location is created referring to this old location, except for name different.

---

<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:** [July 5, 2023, 5:18pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/2 "2023-07-05T17:18:00Z")

</div>

What’s you’re `location_id`? A generic decline will sometimes trigger a pending charge on the customers card. That will fall off once the bank processes the cancelation request we sent to the bank. 🙂

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [July 5, 2023, 7:16pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/3 "2023-07-05T19:16:34Z")

</div>

hi Bryan,

thanks for reply,  
the location id is LC4W03NJBWBW5

> That will fall off once the bank processes the cancelation request we sent to the bank.

just would like to make it clear, do you mean the cancellation request will be sent automatically by square, or should be sent by us manually through square payment API?

---

<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:** [July 5, 2023, 7:25pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/4 "2023-07-05T19:25:43Z")

</div>

We send the cancelation request immediately. 🙂

---

<div class="post-metadata">

**Author:** ![umer](https://avatars.discourse-cdn.com/v4/letter/u/aca169/32.png) [@umer](https://developer.squareup.com/forums/u/umer)\
**Post date:** [July 5, 2023, 8:13pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/5 "2023-07-05T20:13:32Z")

</div>

Hi, please solve this issue as i am getting same error if i select a new location to create an order i get same error on payment api. i can send you location id if you want.

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [July 5, 2023, 9:08pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/6 "2023-07-05T21:08:36Z")

</div>

thanks for clarifying, that’s safe to our customers 🙂  
could you please also help to look into the new location id? as the pending charge has been done (although it’s cancelled as requested), i guess the payment request is acceptable to bank.

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [July 10, 2023, 3:39pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/7 "2023-07-10T15:39:31Z")

</div>

@Bryan-Square i tested the same payment again today and it looks the issue still existing, may i have your help please?  
thanks.

---

<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:** [July 10, 2023, 4:48pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/8 "2023-07-10T16:48:08Z")

</div>

What’s the `payment_id`? 🙂

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [July 10, 2023, 5:08pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/9 "2023-07-10T17:08:29Z")

</div>

sorry we didn’t get payment id, as the payment failed with below error

> [category=PAYMENT\_METHOD\_ERROR, code=GENERIC\_DECLINE, detail=Authorization error: ‘GENERIC\_DECLINE’, field=null]

we only have the location id LC4W03NJBWBW5

---

<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:** [July 10, 2023, 9:05pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/10 "2023-07-10T21:05:27Z")

</div>

Are you in the US when making these payments? 🙂

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [July 11, 2023, 8:40am UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/11 "2023-07-11T08:40:27Z")

</div>

no, i’m in Sweden using an account of chinese bank, when making these payments that failed with location LC4W03NJBWBW5.

however, with the same condition that i’m in Sweden using the same account of chinese bank, the payment can succeed with location id LN1P7NQ0X03TQ, the payment amount is also the same, $0.01.

---

<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:** [July 11, 2023, 1:05pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/12 "2023-07-11T13:05:10Z")

</div>

I just sent a message with additional details on the matter. 🙂

---

<div class="post-metadata">

**Author:** ![Alfred](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Alfred](https://developer.squareup.com/forums/u/Alfred)\
**Post date:** [July 11, 2023, 1:09pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/13 "2023-07-11T13:09:53Z")

</div>

appreciated your help! let me me check 😃

---

<div class="post-metadata">

**Author:** ![umer](https://avatars.discourse-cdn.com/v4/letter/u/aca169/32.png) [@umer](https://developer.squareup.com/forums/u/umer)\
**Post date:** [July 24, 2023, 1:39pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/15 "2023-07-24T13:39:27Z")

</div>

This issue is still not resolved i am still getting GENERIC ERROR but payment is deducted from my account

---

<div class="post-metadata">

**Author:** ![josh-square](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@josh-square](https://developer.squareup.com/forums/u/josh-square)\
**Post date:** [July 24, 2023, 9:54pm UTC](https://developer.squareup.com/forums/t/authorized-payment-actually-succeeded-but-api-returned-generic-decline-error/9916/16 "2023-07-24T21:54:37Z")

</div>

Are you getting charged the full amount, or is it something like a $0.01 payment? As Bryan said, failed payments may still show a pending charge, but it should be canceled if the payment is declined.

I recommend contacting your bank, as they’ll have more information into what caused a `GENERIC_DECLINE` 🙂
