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 · Errors

    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 referenceErrors

    Errors

    Every Anytime Capital Payments API error has one JSON shape: a stable code to branch on and a message for people. Status codes, codes and retries.

    View as MarkdownOpen in Claude

    Successful requests answer 200, or 201 when something was created. Every error, on every endpoint, has the same shape: a stable code to branch on and a message written for people. Validation messages name the field that needs fixing.

    Error response
    {
      "error": {
        "code": "INVALID_INPUT",
        "message": "amountCents: The smallest link is $1.00"
      }
    }

    Status codes

    StatusCodesWhat happened
    400INVALID_INPUT, INVALID_JSON, NOT_EDITABLE, INVALID_IDEMPOTENCY_KEYThe request is malformed, or a field is invalid or can't be changed. The message names the field.
    401UNAUTHORIZEDThe API key is missing, invalid or revoked.
    403NOT_ENROLLEDCard payments aren't set up for this business yet.
    404NOT_FOUNDNo such object for your business, or no such endpoint.
    409INVOICE_CLOSED, TERMS_URL_REQUIREDThe request conflicts with the object's state or your settings.
    422IDEMPOTENCY_KEY_REUSEDThe Idempotency-Key was already used with a different request.
    429RATE_LIMITED, TOO_SOONSlow down: wait the number of seconds in the Retry-After header.
    5xxINTERNAL_ERROR, EMAIL_FAILEDSomething failed on our side. Retrying with the same Idempotency-Key is safe.

    Error codes

    CodeMeaning and what to do
    INVALID_INPUTA field is missing or invalid, e.g. amountCents: The smallest link is $1.00. Fix the named field.
    INVALID_JSONThe body isn't valid JSON. Send Content-Type: application/json and a JSON object.
    NOT_EDITABLEYou tried to change a payment link's price or another field that is fixed once a link exists. Create a new link instead.
    INVALID_IDEMPOTENCY_KEYThe Idempotency-Key header is empty, too long or has unprintable characters. Use a UUID.
    UNAUTHORIZEDSend a live key as Authorization: Bearer ak_live_….
    NOT_ENROLLEDFinish verification in the dashboard; the API opens once card payments are set up.
    NOT_FOUNDThe id doesn't belong to your business, or the path isn't an endpoint. Unknown paths under /api/v1 answer this JSON too, never an HTML page.
    INVOICE_CLOSEDThe invoice is already paid, refunded or void, so it can't be sent again.
    TERMS_URL_REQUIREDrequireTermsConsent needs a link to your terms in Settings → Payments first.
    IDEMPOTENCY_KEY_REUSEDUse a new Idempotency-Key for a new request.
    RATE_LIMITEDThe key made too many requests this minute. Wait for Retry-After.
    TOO_SOONThe invoice was already emailed in the last 24 hours. Wait for Retry-After.
    EMAIL_FAILEDWe couldn't send the email. Try again.
    INTERNAL_ERRORSomething went wrong on our side. Try again with the same Idempotency-Key.

    Handling errors

    • Branch on error.code, never on the message text, which may be reworded.
    • Show error.message to the person who can fix it; it is written to be read.
    • On 429, wait the number of seconds in Retry-After, then retry.
    • On 5xx or a network failure, retry the same request with the same Idempotency-Key: you get the original result if the first attempt went through.
    • Don't retry other 4xx errors unchanged: fix the request first.
    A small client with retries (Node.js 18+)
    const API = "https://anytime-capital.com/api/v1";
    
    export async function anytime(path, { method = "GET", body, idempotencyKey } = {}) {
      for (let attempt = 1; ; attempt++) {
        const res = await fetch(API + path, {
          method,
          headers: {
            Authorization: `Bearer ${process.env.ANYTIME_API_KEY}`,
            ...(body ? { "Content-Type": "application/json" } : {}),
            ...(idempotencyKey ? { "Idempotency-Key": idempotencyKey } : {}),
          },
          body: body ? JSON.stringify(body) : undefined,
        });
        const data = await res.json();
        if (res.ok) return data;
    
        const retryable = res.status === 429 || res.status >= 500;
        if (!retryable || attempt === 3) {
          const error = new Error(`${data.error.code}: ${data.error.message}`);
          error.code = data.error.code;
          error.status = res.status;
          throw error;
        }
        const wait = Number(res.headers.get("Retry-After") ?? 2 ** attempt);
        await new Promise((resolve) => setTimeout(resolve, wait * 1000));
      }
    }
    PreviousAuthenticationNext Pagination

    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

    • Status codes
    • Error codes
    • Handling errors
    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