In a rush? Schedule an Appointment
    Fetching local time...
    Anytime Capital

    Get started

    • Overview
    • Quickstart
    • Pricing
    • Support

    Accept payments

    • Checkout & website
    • In person (QR)
    • Payment methods
    • Fraud rules & 3D Secure

    Get paid out

    • Payout options

    API reference

    • Authentication
    • Errors
    • Pagination
    • Idempotency
    • Rate limits
    • Payment links
    • Invoices
    • Customers
    • Payments
    • Webhooks

    Build with AI

    • MCP server & AI tools

    FAQ

    • FAQ

    For AI tools

    • llms-full.txt
    • MCP server
    Docs menu · Idempotency

    Get started

    • Overview
    • Quickstart
    • Pricing
    • Support

    Accept payments

    • Checkout & website
    • In person (QR)
    • Payment methods
    • Fraud rules & 3D Secure

    Get paid out

    • Payout options

    API reference

    • Authentication
    • Errors
    • Pagination
    • Idempotency
    • Rate limits
    • Payment links
    • Invoices
    • Customers
    • Payments
    • Webhooks

    Build with AI

    • MCP server & AI tools

    FAQ

    • FAQ

    For AI tools

    • llms-full.txt
    • MCP server
    DocsAPI referenceIdempotency

    Idempotent requests

    Send an Idempotency-Key header on every POST to the Anytime Capital Payments API so a retried request never creates a second link, invoice or email.

    View as MarkdownOpen in Claude

    Every POST accepts an Idempotency-Key header: any unique string of 1 to 255 printable characters, such as a UUID. If a request times out or the connection drops, send it again with the same key. You get the original response back, with the header Idempotent-Replayed: true, instead of creating a second payment link or emailing an invoice twice.

    Shell
    curl -X POST https://anytime-capital.com/api/v1/payment-links \
      -H "Authorization: Bearer $ANYTIME_API_KEY" \
      -H "Idempotency-Key: 5f1c3e0a-7b2d-4c8e-9a61-2d4b8f0e7c13" \
      -H "Content-Type: application/json" \
      -d '{"title": "Consulting — October", "amountCents": 12500}'

    How keys behave

    SituationWhat you get
    First request with a keyThe request runs and, if it succeeds, its response is remembered with the key.
    Same key, same request, within the windowThe remembered response, with Idempotent-Replayed: true. Nothing runs again.
    Same key, different body or endpoint422 IDEMPOTENCY_KEY_REUSED. Use a new key for a new request.
    Same key while the first request is still runningThe second request waits for the first, then gets its result.
    The first request failedErrors are not remembered, so you can fix the problem and retry with the same key.
    More than 24 hours laterThe key is forgotten and the request runs as new.
    Empty, too long or unprintable key400 INVALID_IDEMPOTENCY_KEY.
    No headerThe request simply runs. It is still recorded in your activity log.

    Choosing keys

    • Generate one key per operation you mean to happen once, such as “create the payment link for order 1042”, and store it with that order before you call the API.
    • Reuse the stored key on every retry of that operation, including after your own process restarts.
    • Never reuse a key for a different operation, even for the same customer.
    • Keys are scoped to your business: another business using the same string doesn't collide with you.

    MCP tools take the same key

    The MCP tools that change something (create, update, deactivate and send) accept an idempotencyKey argument and send it as this header, with the same behaviour. See Build with AI.

    PreviousPaginationNext Rate limits

    Anytime Capital is a fintech company, not a bank. Payment processing, banking and payout services are provided by Anytime Capital's licensed partners. Rates shown are for US card payments; international cards, currency conversion and disputes may carry additional fees shown in your dashboard before you accept a payment.

    On this page

    • How keys behave
    • Choosing keys
    Anytime Capital
    (470) 748-2530
    App Store

    Business

    • Business Checking
    • Business Debit Cards
    • Payments
    • Pricing
    • In-Person Payments
    • Invoicing
    • Global Payouts
    • Bill Pay
    • Expense Management
    • Developer Docs

    Solutions

    • CPAs & Accountants
    • Financial Advisors
    • Boat & Auto Dealerships
    • Dental & Medical Practices
    • Creators & Coaches
    • All solutions

    Crypto

    • Crypto Wallet
    • Tether Wallet
    • Buy Digital Assets
    • Explore Markets
    • Security & Licenses
    • Compare Platforms
    • Bitcoin ATM Alternative

    Company

    • Our Story
    • Schedule Appointment
    • Careers
    • Media & Press
    • Investor Relations
    • FAQ

    Branches

    • Atlanta, Georgia
    • Miami, Florida
    • Houston, Texas
    • All branches

    Legal

    • Terms & Conditions
    • Privacy Policy
    • Your Privacy Choices
    • Fraud Notice

    © 2026 Anytime Capital LLC. Anytime Capital is a fintech company, not a bank.

    The Anytime Capital Mastercard® Prepaid Card is issued by Pathward®, N.A., Member FDIC. Mastercard® is a registered trademark of Mastercard International Incorporated. All other trademarks and service marks belong to their respective owners.

    Mastercard