# API

**URL:** <https://community.shopify.com/t/api/364655>\
**Category:** Subscriptions\
**Tags:** troubleshooting, Setting-Up\
**Created:** [October 8, 2024, 1:28pm UTC](https://community.shopify.com/t/api/364655 "2024-10-08T13:28:22Z")\
**Posts on this page:** 5\
**Page:** 1

## AI-generated summary

Goal: surface ReCharge subscription payment details (e.g., failed payment reason, number of retry attempts) inside Shopify (customer note, order note, or customer metafields).

Key clarification: Both ReCharge API and Shopify Admin API are needed. ReCharge holds the payment failure data; Shopify displays it.

Proposed approach:
- Use middleware (a small service that connects two systems) to pull data from ReCharge via API key and write it into Shopify.
- Preferred target is customer metafields (custom data fields), though customer or order notes are also options.

Implementation steps:
1) Obtain a ReCharge API key and fetch the required failure/retry data. 2) Use Shopify Admin API to update customer metafields (or notes) with these values.

No-code/low-code option: If not working with a developer, use a customer field or workflow automation app that integrates with ReCharge and can run the sync.

Status/outcome: Guidance provided; implementation not yet completed. Open items: choose the exact Shopify field(s) to store the data and set up middleware or an appropriate app.

<div class="post-metadata">

**Author:** ![CatherineWise](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@CatherineWise](https://community.shopify.com/u/CatherineWise)\
**Post date:** [October 8, 2024, 1:28pm UTC](https://community.shopify.com/t/api/364655/1 "2024-10-08T13:28:22Z")

</div>

I want to do an automated integration of information from recharge to shopify such as reason of failed payment and number of trials to proceed with the payment. I was told by recharge team that I need to do so through shopify API and by yours through recharge API so I am lost.

---

<div class="post-metadata">

**Author:** ![AchieveApplabs](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/achieveapplabs/32/60286_2.png) [@AchieveApplabs](https://community.shopify.com/u/AchieveApplabs)\
**Post date:** [October 8, 2024, 2:33pm UTC](https://community.shopify.com/t/api/364655/2 "2024-10-08T14:33:43Z")

</div>

Hi Catherine,

Yes it’s true would need to use both ReCharge and Shopify Admin API. I’ve worked with both so I can help.

It’s not clear exactly what you’re asking, can we start with the reason of failed payment? Where would you like that to appear in Shopify?

---

<div class="post-metadata">

**Author:** ![CatherineWise](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@CatherineWise](https://community.shopify.com/u/CatherineWise)\
**Post date:** [October 8, 2024, 2:44pm UTC](https://community.shopify.com/t/api/364655/3 "2024-10-08T14:44:27Z")

</div>

What I need is to make this information available on shopify through customer  
note, order note, or customer metafield

---

<div class="post-metadata">

**Author:** ![CatherineWise](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@CatherineWise](https://community.shopify.com/u/CatherineWise)\
**Post date:** [October 10, 2024, 6:04am UTC](https://community.shopify.com/t/api/364655/4 "2024-10-10T06:04:59Z")

</div>

And how will this help me show these information on shopify?

---

<div class="post-metadata">

**Author:** ![AchieveApplabs](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/achieveapplabs/32/60286_2.png) [@AchieveApplabs](https://community.shopify.com/u/AchieveApplabs)\
**Post date:** [October 13, 2024, 3:42pm UTC](https://community.shopify.com/t/api/364655/5 "2024-10-13T15:42:01Z")

</div>

You’re going to need middleware to bridge ReCharge with Shopify customer fields.

As a developer first I would get an API key from ReCharge then pull the data I want out. Then I would update Shopify customer meta fields with those values.

If you’re not working with a developer then look for a customer field app or workflow app that integrates with recharge and can run that automation.
