E-commerce
Recharge in your product and your AI agents, through one API
The Recharge toolkit covers subscriptions (list, read, create, update, cancel, reactivate, move the next charge date), customers and charges (list, read, skip). Connect stores each store's API key and logs every execution, so your product or AI agent manages recurring orders without building the integration.
15 days to try it. No credit card.
POST https://connect.reportei.com/api/tools/recharge_create_subscription/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json
{
"customer_toolkit": "<connection UUID>",
"arguments": {
"address_id": 1,
"external_variant_id": {},
"quantity": 1,
"next_charge_scheduled_at": "<next_charge_scheduled_at>",
"order_interval_unit": "day",
"order_interval_frequency": 1,
"charge_interval_frequency": 1
}
}How it works
From a connected customer to the first Recharge call.
- 1
Your customer connects the account
Your system opens a Connect session for the toolkit and your customer connects their Recharge account. You get the connection id.
- 2
Your product calls the tool
A POST to /api/tools/{tool}/execute with the connection id and arguments. On success, Connect preserves the app's response status and body.
- 3
Connect handles the rest
It stores the credential encrypted, renews tokens for OAuth connections that support renewal and records executions in an audit trail available through the API.
Use cases
What your product does with Recharge.
Self-service subscription portal
Show a customer's subscriptions, let them change frequency or quantity, skip the next charge or cancel, all from your own interface.
Win back cancelled subscribers
List cancelled subscriptions and reactivate one with Activate subscription, or set a new next charge date with Set subscription next charge date.
Support agent for subscription stores
An AI agent finds the customer by email, reads their charges and subscriptions and skips a queued charge when the customer asks.
Tools
12 Recharge tools
- List subscriptionsGETLists the subscriptions of the store with customer, address, product, quantity, price, frequency, status and next_charge_scheduled_at. Up to 250 per page: pass the next_cursor of the response as cursor to read the next page.
- Get subscriptionGETReturns one subscription with product, quantity, price, frequency, status, cancellation reason and next_charge_scheduled_at.
- Create subscriptionPOSTCreates a subscription on an address of a customer and returns it. The product needs at least one plan in Recharge. The frequency fields, the first charge date, the variant, the quantity and the address are required.
- Update subscriptionPUTChanges an active subscription and returns it. Changing order_interval_unit, order_interval_frequency or charge_interval_frequency needs all three, recalculates the next charge date and removes skipped and manually changed charges. To move only the next charge, use Set subscription next charge date.
- Cancel subscriptionPOSTCancels an active subscription and returns it. Recharge may email the customer and the store owner about it, unless send_email is false.
- Activate subscriptionPOSTReactivates a cancelled subscription and returns it, clearing the cancellation date and reason.
- Set subscription next charge datePOSTMoves the next charge of a subscription to another date and returns the subscription. When two active subscriptions of the same address end up on the same date, their charges are merged into a new charge with a new id.
- List customersGETLists the customers of the store with email, name, the count of active subscriptions and whether the payment method is valid or in dunning. Filter by email to find one customer. Up to 250 per page: pass the next_cursor of the response as cursor.
- Get customerGETReturns one customer. With include, the response also brings the addresses, subscriptions or payment methods of the customer; the id of each address is the address_id that Create subscription takes.
- List chargesGETLists the charges of the store, past and upcoming, with status, scheduled_at, processed_at, totals, customer and line items. Processed charges older than 90 days are not returned. Sorted by id ascending by default; up to 250 per page: pass the next_cursor of the response as cursor.
API key
Your customer pastes the app's key on a Connect screen, or your system sends the key with POST /api/customer-toolkits, with no screen.
Questions about the Recharge toolkit
Do I need to build against the Recharge API?
No. Connect ships 12 Recharge tools, described and ready. Your customer connects the account and your system calls every tool through the same endpoint, with the same request format.
How does my customer connect their Recharge account?
With the mode the toolkit accepts: API key. Connect stores the credential encrypted and never returns it to your system.
Does it work with AI agents?
Yes. Each tool's input is described in JSON Schema, which your agent uses directly as a tool definition. The agent picks the tool and the arguments, and your system makes the call to Connect.
Does my customer need a Reportei account?
No. Your customer connects the account on a Connect screen, or your system sends the credential through the API, and they keep using only your product.
See Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
