# Getting error in production

**URL:** <https://community.rapyd.net/t/getting-error-in-production/55543>\
**Category:** ⚙️ API\
**Tags:** collect-api\
**Created:** [September 4, 2022, 1:17pm UTC](https://community.rapyd.net/t/getting-error-in-production/55543 "2022-09-04T13:17:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ritikranjan12](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/ritikranjan12/32/20250_2.png) [@ritikranjan12](https://community.rapyd.net/u/ritikranjan12)\
**Post date:** [September 4, 2022, 1:17pm UTC](https://community.rapyd.net/t/getting-error-in-production/55543/1 "2022-09-04T13:17:56Z")

</div>

Getting this error when using Production Credentials

```auto
"body": {
      "status": {
        "error_code": "UNAUTHENTICATED_API_CALL",
        "status": "ERROR",
        "message": "access_key header is not valid",
        "response_code": "UNAUTHENTICATED_API_CALL",
        "operation_id": "692ed239-6cfb-41f9-b9d6-d82851daa5d6"
      }
    }

```

---

<div class="post-metadata">

**Author:** ![CharlesDorsett](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/charlesdorsett/32/47_2.png) [@CharlesDorsett](https://community.rapyd.net/u/CharlesDorsett)\
**Post date:** [September 4, 2022, 2:01pm UTC](https://community.rapyd.net/t/getting-error-in-production/55543/2 "2022-09-04T14:01:55Z")

</div>

Sorry if I’m stating the obvious, but are you using production credentials in the production environment? If so, then I would need to see the request that generated this.

---

<div class="post-metadata">

**Author:** ![ritikranjan12](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/ritikranjan12/32/20250_2.png) [@ritikranjan12](https://community.rapyd.net/u/ritikranjan12)\
**Post date:** [September 5, 2022, 2:41pm UTC](https://community.rapyd.net/t/getting-error-in-production/55543/3 "2022-09-05T14:41:20Z")

</div>

Yeah, I solve that there is some silly mistake anyway thanks @CharlesDorsett for your help. But now I am getting another problem in production as when request the API to get the payment method types sorted by country it is giving empty data.

---

<div class="post-metadata">

**Author:** ![CharlesDorsett](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/charlesdorsett/32/47_2.png) [@CharlesDorsett](https://community.rapyd.net/u/CharlesDorsett)\
**Post date:** [September 6, 2022, 7:02am UTC](https://community.rapyd.net/t/getting-error-in-production/55543/4 "2022-09-06T07:02:44Z")

</div>

Ah - that’s another easy one. In production, you need to specifically enable the payment methods you want to use. You do this in the Client Portal. Set the toggle so that you are looking at production (not sandbox) and navigate to **Settings \> Payment Methods**. I’m not sure but I think you have to be the account owner to do this.

If you are working on the hackathon, you should only concentrate on the sandbox for everything.

---

<div class="post-metadata">

**Author:** ![ritikranjan12](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/ritikranjan12/32/20250_2.png) [@ritikranjan12](https://community.rapyd.net/u/ritikranjan12)\
**Post date:** [September 6, 2022, 8:50am UTC](https://community.rapyd.net/t/getting-error-in-production/55543/5 "2022-09-06T08:50:36Z")

</div>

Thanks @CharlesDorsett I am working on the hackathon but just trying to integrate the real payment to make more sense.

---

<div class="post-metadata">

**Author:** ![CharlesDorsett](https://sea2.discourse-cdn.com/flex016/user_avatar/community.rapyd.net/charlesdorsett/32/47_2.png) [@CharlesDorsett](https://community.rapyd.net/u/CharlesDorsett)\
**Post date:** [September 6, 2022, 9:06am UTC](https://community.rapyd.net/t/getting-error-in-production/55543/6 "2022-09-06T09:06:29Z")

</div>

Your whole effort should be aimed at your 5-minute video, which will be demonstrating your project as it works in the sandbox. Every minute you spend trying to make things work in production will be valuable time that you are not spending towards winning. After you win, of course you will want to make your app work in production, and we are here to help you with that. But first, win!
