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

    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 referencePagination

    Pagination

    List endpoints in the Anytime Capital Payments API return the newest objects first, a page at a time. Page with limit and the opaque nextCursor.

    View as MarkdownOpen in Claude

    Every list endpoint (payments, payment links, invoices and customers) returns the newest objects first, a page at a time, in one shape. Pass limit (1–100, default 25) and, for the next page, the previous page's nextCursor as cursor. When hasMore is false you have everything.

    A page
    {
      "object": "list",
      "data": [
        {
          "object": "payment",
          "id": "pay_7Hq2LmX9cR4tVb",
          "…": "…"
        }
      ],
      "hasMore": true,
      "nextCursor": "pay_7Hq2LmX9cR4tVb"
    }
    FieldTypeMeaning
    objectstringAlways "list".
    dataarrayThis page's objects, newest first.
    hasMorebooleanWhether there is another page after this one.
    nextCursorstring or nullThe id of the last object on this page; pass it as cursor to get the next page. Null on the last page.

    Fetching the next page

    Shell
    curl "https://anytime-capital.com/api/v1/payments?limit=100&cursor=pay_7Hq2LmX9cR4tVb" \
      -H "Authorization: Bearer $ANYTIME_API_KEY"

    A cursor is only valid for the list it came from and for your own business. An empty, over-long or unknown cursor answers 400 INVALID_INPUT with the message Invalid cursor.; a limit outside 1–100 answers the same code naming limit.

    Reading every page

    Node.js 18+
    async function* listAll(path, params = {}) {
      let cursor = null;
      do {
        const query = new URLSearchParams({ ...params, limit: "100", ...(cursor ? { cursor } : {}) });
        const res = await fetch(`https://anytime-capital.com/api/v1${path}?${query}`, {
          headers: { Authorization: `Bearer ${process.env.ANYTIME_API_KEY}` },
        });
        const page = await res.json();
        if (!res.ok) throw new Error(`${page.error.code}: ${page.error.message}`);
        yield* page.data;
        cursor = page.hasMore ? page.nextCursor : null;
      } while (cursor);
    }
    
    for await (const payment of listAll("/payments", { status: "paid", createdFrom: "2026-10-01" })) {
      console.log(payment.id, payment.amountCents);
    }

    Each page is one request against your rate limit. Use the largest limit you need and filter on the server (status, createdFrom, createdTo, email, active) rather than paging through everything.

    PreviousErrorsNext Idempotency

    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

    • Fetching the next page
    • Reading every page
    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