Skip to content
LogiRates

Purchases via API and AI agents

API and integrations

A key can buy and cancel labels only after you turn purchases on for it. Each purchase is paid from your LogiRates balance first, and the rest is charged to your default card without asking you again.

Turn on purchases

  1. Open Settings → Integrations.
  2. Next to the key, turn on Purchases via API, or Purchases by AI agents for an MCP key.
  3. Enter a daily limit in US dollars.
  4. Tick I agree that purchases made with this key are charged to my default card without further confirmation.
  5. Confirm with your current password and, if it is on, your two-factor code.
  6. Choose Allow purchases.

To stop purchases, turn the switch off. It takes effect at once, with no confirmation.

Daily limit

  • For an API key the limit is optional. Leave it empty for no limit.
  • For an MCP key the limit is required. The default is 100 USD.
  • The day resets at 00:00 UTC. A purchase that goes over what is left for the day is refused.
  • The list shows Up to $… a day or No daily limit next to each key.

How a purchase is paid

  1. The balance pays first.
  2. If it isn't enough, the rest is charged to your default saved card, provided automatic charges are on for that card.
  3. If there is no such card, the purchase is refused and nothing is charged.

You save a card and manage automatic charges in Settings → Payments. See Saved cards and automatic charges.

AI agents

An AI agent buys in two steps. It first gets the price and a confirmation code, which is valid for 10 minutes. The agent is told to show you the summary and to buy only after you agree. If the price changes in between, it asks you again. The daily limit is what caps its spending.

Rules

  • Cancelling a label through the API also needs purchases turned on, but it doesn't use the daily limit.
  • New accounts have a spending limit for their first 24 hours. It applies to the site and the API together.
  • Purchases and cancellations appear in Finances like any others.

If something goes wrong

  • Purchases are not enabled for this API key. Turn on purchases for the key.
  • Add a default card in your LogiRates account to buy labels via the API. Your balance isn't enough and there is no default card with automatic charges. Pay for a label on the site, save the card, and make it the default.
  • The bank requires the payment to be confirmed in a browser. Your bank wants you to confirm this charge. Buy this label on the site.
  • A purchase limit is exceeded. The key's daily limit is used up, or the spending limit for new accounts is reached. For the key limit, wait until 00:00 UTC or change it in Settings → Integrations.
  • Purchases on this account are paused because of a card dispute. Please contact support. Write to support.