PersonalBusinessEnterprise
    In a rush? Schedule an Appointment
    Fetching local time...
    Anytime CapitalforBusiness
    Pricing

    Get started

    • Overview
    • Quickstart
    • Test mode
    • Guides & recipes
    • Switch from Stripe
    • Import from Shopify
    • Import from WooCommerce
    • Import from Square
    • Import a CSV file
    • Stripe API mapping
    • Pricing
    • Support
    • FAQ

    Payments

    • Checkout & website
    • Guide: Next.js checkout
    • In person (QR)
    • Payment methods
    • Stablecoin checkout
    • Guide: take stablecoins
    • Fraud rules & 3D Secure
    • Dispute evidence
    • International customers
    • Guide: safe refunds
    • Bank transfers on invoices

    Billing

    • Subscription discounts
    • Guide: sell subscriptions
    • Usage billing
    • Guide: report usage

    Money movement

    • Payout options
    • Guide: reconcile payouts
    • Accounting sync
    • Revenue analytics

    Developers

    • Authentication
    • Errors & retries
    • Pagination
    • Idempotency
    • Rate limits
    • Webhooks
    • Verify webhooks
    • Node SDK (preview)
    • CLI (preview)
    • Postman collection

    AI

    • AI agents hub
    • Safe AI agents
    • Custom agents
    • Prompt library

    Integrations

    • Website builders
    • Shopify
    • Shopify orders by invoice
    • WooCommerce
    • Zapier
    • Slack, Discord and Teams

    Reference

    • Payments
    • Refunds
    • Disputes
    • Payment links
    • Invoices
    • Customers
    • Products
    • Subscriptions & plans
    • Discount codes
    • Meters & usage events
    • Payouts & balance
    • Webhook endpoints
    • Events
    • Test helpers
    • OpenAPI spec
    • Error codes
    • Changelog
    • Glossary

    For AI tools

    • llms-full.txt
    • MCP server
    • openapi.json
    Docs menu · Payments

    Get started

    • Overview
    • Quickstart
    • Test mode
    • Guides & recipes
    • Switch from Stripe
    • Import from Shopify
    • Import from WooCommerce
    • Import from Square
    • Import a CSV file
    • Stripe API mapping
    • Pricing
    • Support
    • FAQ

    Payments

    • Checkout & website
    • Guide: Next.js checkout
    • In person (QR)
    • Payment methods
    • Stablecoin checkout
    • Guide: take stablecoins
    • Fraud rules & 3D Secure
    • Dispute evidence
    • International customers
    • Guide: safe refunds
    • Bank transfers on invoices

    Billing

    • Subscription discounts
    • Guide: sell subscriptions
    • Usage billing
    • Guide: report usage

    Money movement

    • Payout options
    • Guide: reconcile payouts
    • Accounting sync
    • Revenue analytics

    Developers

    • Authentication
    • Errors & retries
    • Pagination
    • Idempotency
    • Rate limits
    • Webhooks
    • Verify webhooks
    • Node SDK (preview)
    • CLI (preview)
    • Postman collection

    AI

    • AI agents hub
    • Safe AI agents
    • Custom agents
    • Prompt library

    Integrations

    • Website builders
    • Shopify
    • Shopify orders by invoice
    • WooCommerce
    • Zapier
    • Slack, Discord and Teams

    Reference

    • Payments
    • Refunds
    • Disputes
    • Payment links
    • Invoices
    • Customers
    • Products
    • Subscriptions & plans
    • Discount codes
    • Meters & usage events
    • Payouts & balance
    • Webhook endpoints
    • Events
    • Test helpers
    • OpenAPI spec
    • Error codes
    • Changelog
    • Glossary

    For AI tools

    • llms-full.txt
    • MCP server
    • openapi.json
    DocsReferencePayments

    Payments API

    List and retrieve payments with the Anytime Capital Payments API: status, amounts, net after fees, method, customer, metadata and disputes, filtered by date.

    View as MarkdownOpen in Claude

    A payment is one charge (by card, card wallet, bank account or stablecoin) on a payment link, an invoice or a subscription. Customers create payments at checkout; the API reads them. To give money back, see Refunds; to follow chargebacks, Disputes.

    TopicDetail
    Endpoints`GET /api/v1/payments`, `GET /api/v1/payments/{id}`
    Key permissionspayments:read
    Samplescurl; Node.js 18+ with the built-in fetch (in an ES module); the Node SDK (preview: not on npm yet); Python with requests.
    Every request can also answer401 UNAUTHORIZED, 401 API_KEY_EXPIRED, 403 NOT_ENROLLED, 403 PERMISSION_DENIED, 403 IP_NOT_ALLOWED, 429 RATE_LIMITED, 500 INTERNAL_ERROR. See Error codes.

    The payment object

    JSON
    {
      "object": "payment",
      "livemode": true,
      "id": "pay_7Hq2LmX9cR4tVb",
      "status": "paid",
      "amountCents": 12500,
      "amountRefundedCents": 0,
      "netCents": 12088,
      "currency": "usd",
      "description": "Consulting — October",
      "source": {
        "type": "payment_link",
        "id": "pl_4kTz8QwN2xYb6RcD1mPa"
      },
      "paymentLinkId": "pl_4kTz8QwN2xYb6RcD1mPa",
      "customer": {
        "name": "Jordan Lee",
        "email": "jordan@example.com",
        "country": "US"
      },
      "card": {
        "brand": "visa",
        "last4": "4242"
      },
      "paymentMethod": {
        "type": "card",
        "label": "Visa •••• 4242"
      },
      "clientReference": "order_1042",
      "metadata": {
        "campaign": "fall-launch"
      },
      "amountDetails": {
        "subtotalCents": 12500,
        "discountCents": 0,
        "shippingCents": 0,
        "taxCents": 0,
        "customerFeeCents": 0
      },
      "dispute": null,
      "failureMessage": null,
      "createdAt": "2026-10-14T16:02:11.000Z",
      "paidAt": "2026-10-14T16:02:15.000Z"
    }
    FieldTypeDescription
    objectstringThe type of object. Always payment.
    livemodebooleanFalse for test-mode data (an ak_test_ key); true for live data.
    idstringpay_…
    statusstringpaid, pending, failed, canceled, refunded, partially_refunded, disputed: the payment's state now, as Orders shows it.
    amountCentsintegerWhat the customer paid. Integer cents.
    amountRefundedCentsintegerRefunded so far. Integer cents.
    netCentsinteger or nullWhat you keep after fees, once known; null until then.
    currencystringLower-case ISO 4217, e.g. usd.
    descriptionstringThe link's title or Invoice INV-0001.
    sourceobject
    source.typestringOne of payment_link, invoice, subscription, manual.
    source.idstring or nullThe payment link, invoice or subscription id.
    paymentLinkIdstring or nullThe payment link it was paid on; null for invoices, subscriptions and manual charges. With metadata, how a shop matches a payment to its order.
    customerobject
    customer.namestring or nullBilling name.
    customer.emailstringCustomer email.
    customer.countrystring or nullBilling country, ISO 3166-1 alpha-2.
    paymentMethodobject or null
    paymentMethod.typestringcard, apple_pay, google_pay, us_bank_account or stablecoin; more may be added.
    paymentMethod.labelstringVisa •••• 4242.
    cardobject or null
    card.brandstring or nullCard network.
    card.last4string or nullLast four digits.
    clientReferencestring or nullYour own reference, from ?ref= on the link or data-ref on your website's Pay button.
    metadataobjectThe payment link's metadata when the payment was made; {} when it had none.
    amountDetailsobject
    amountDetails.subtotalCentsinteger or nullBefore discount, shipping and fees. Integer cents.
    amountDetails.discountCentsintegerDiscount code savings. Integer cents.
    amountDetails.shippingCentsintegerShipping. Integer cents.
    amountDetails.taxCentsintegerSales tax. Integer cents.
    amountDetails.customerFeeCentsintegerA surcharge the customer paid. Integer cents.
    disputeobject or null
    dispute.statusstringOne of needs_response, under_review, won, lost, closed.
    failureMessagestring or nullWhy the latest attempt failed.
    createdAtstring (date-time)When the payment was started.
    paidAtstring (date-time) or nullWhen it went through.

    Some payments take days

    A bank account payment (us_bank_account) stays pending for 3–5 business days before it is paid or failed. Fulfil on the payment.succeeded webhook, not when checkout finishes.

    Endpoints

    List payments

    GET/api/v1/payments
    Permission payments:read

    Card, wallet and bank payments on links, invoices and subscriptions, newest first.

    Query

    status
    string
    Only payments with this status. One of paid, pending, failed, canceled, refunded, partially_refunded, disputed.
    createdFrom
    string
    Created at or after: a date such as 2026-10-01 (midnight UTC) or an ISO 8601 date-time with its offset, such as 2026-10-01T12:00:00Z.
    createdTo
    string
    Created before (exclusive), in the same format. Must be after createdFrom.
    limit
    integer
    How many objects per page, 1–100. Default 25. See Pagination.
    cursor
    string
    The previous page's nextCursor, for the page after it.
    Request
    curl "https://anytime-capital.com/api/v1/payments?status=paid&createdFrom=2026-10-01&createdTo=2026-11-01" \
      -H "Authorization: Bearer $ANYTIME_API_KEY"
    const res = await fetch("https://anytime-capital.com/api/v1/payments?status=paid&createdFrom=2026-10-01&createdTo=2026-11-01", {
      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}`);
    import { AnytimeCapital } from "@anytimecapital/node";
    
    const client = new AnytimeCapital({ apiKey: process.env.ANYTIME_API_KEY! });
    
    const page = await client.payments.list(
      { status: "paid", createdFrom: "2026-10-01", createdTo: "2026-11-01" },
    );
    import os
    
    import requests
    
    res = requests.get(
        "https://anytime-capital.com/api/v1/payments",
        headers={"Authorization": f"Bearer {os.environ['ANYTIME_API_KEY']}"},
        params={
            "status": "paid",
            "createdFrom": "2026-10-01",
            "createdTo": "2026-11-01",
        },
        timeout=30,
    )
    page = res.json()
    if not res.ok:
        raise RuntimeError(f"{page['error']['code']}: {page['error']['message']}")
    Response 200
    {
      "object": "list",
      "data": [
        {
          "object": "payment",
          "livemode": true,
          "id": "pay_7Hq2LmX9cR4tVb",
          "status": "paid",
          "amountCents": 12500,
          "amountRefundedCents": 0,
          "netCents": 12088,
          "currency": "usd",
          "description": "Consulting — October",
          "source": {
            "type": "payment_link",
            "id": "pl_4kTz8QwN2xYb6RcD1mPa"
          },
          "paymentLinkId": "pl_4kTz8QwN2xYb6RcD1mPa",
          "customer": {
            "name": "Jordan Lee",
            "email": "jordan@example.com",
            "country": "US"
          },
          "card": {
            "brand": "visa",
            "last4": "4242"
          },
          "paymentMethod": {
            "type": "card",
            "label": "Visa •••• 4242"
          },
          "clientReference": "order_1042",
          "metadata": {
            "campaign": "fall-launch"
          },
          "amountDetails": {
            "subtotalCents": 12500,
            "discountCents": 0,
            "shippingCents": 0,
            "taxCents": 0,
            "customerFeeCents": 0
          },
          "dispute": null,
          "failureMessage": null,
          "createdAt": "2026-10-14T16:02:11.000Z",
          "paidAt": "2026-10-14T16:02:15.000Z"
        }
      ],
      "hasMore": true,
      "nextCursor": "pay_7Hq2LmX9cR4tVb"
    }

    Errors

    400INVALID_INPUT
    A field, filter, limit or cursor is missing or invalid. The message starts with the field's name, as in amountCents: …, or reads Invalid cursor. Fix the named field. Don't retry the same request unchanged.

    Get a payment

    GET/api/v1/payments/{id}
    Permission payments:read

    One payment by id.

    Path

    id
    stringrequired
    The payment's id, pay_….
    Request
    curl https://anytime-capital.com/api/v1/payments/pay_7Hq2LmX9cR4tVb \
      -H "Authorization: Bearer $ANYTIME_API_KEY"
    const res = await fetch("https://anytime-capital.com/api/v1/payments/pay_7Hq2LmX9cR4tVb", {
      headers: { Authorization: `Bearer ${process.env.ANYTIME_API_KEY}` },
    });
    const payment = await res.json();
    if (!res.ok) throw new Error(`${payment.error.code}: ${payment.error.message}`);
    import { AnytimeCapital } from "@anytimecapital/node";
    
    const client = new AnytimeCapital({ apiKey: process.env.ANYTIME_API_KEY! });
    
    const payment = await client.payments.retrieve("pay_7Hq2LmX9cR4tVb");
    import os
    
    import requests
    
    res = requests.get(
        "https://anytime-capital.com/api/v1/payments/pay_7Hq2LmX9cR4tVb",
        headers={"Authorization": f"Bearer {os.environ['ANYTIME_API_KEY']}"},
        timeout=30,
    )
    payment = res.json()
    if not res.ok:
        raise RuntimeError(f"{payment['error']['code']}: {payment['error']['message']}")
    Response 200
    {
      "object": "payment",
      "livemode": true,
      "id": "pay_7Hq2LmX9cR4tVb",
      "status": "paid",
      "amountCents": 12500,
      "amountRefundedCents": 0,
      "netCents": 12088,
      "currency": "usd",
      "description": "Consulting — October",
      "source": {
        "type": "payment_link",
        "id": "pl_4kTz8QwN2xYb6RcD1mPa"
      },
      "paymentLinkId": "pl_4kTz8QwN2xYb6RcD1mPa",
      "customer": {
        "name": "Jordan Lee",
        "email": "jordan@example.com",
        "country": "US"
      },
      "card": {
        "brand": "visa",
        "last4": "4242"
      },
      "paymentMethod": {
        "type": "card",
        "label": "Visa •••• 4242"
      },
      "clientReference": "order_1042",
      "metadata": {
        "campaign": "fall-launch"
      },
      "amountDetails": {
        "subtotalCents": 12500,
        "discountCents": 0,
        "shippingCents": 0,
        "taxCents": 0,
        "customerFeeCents": 0
      },
      "dispute": null,
      "failureMessage": null,
      "createdAt": "2026-10-14T16:02:11.000Z",
      "paidAt": "2026-10-14T16:02:15.000Z"
    }

    Errors

    404NOT_FOUND
    No such object on your business (an id from another business reads the same), or no such endpoint under /api/v1, which still answers in JSON. Check the id and the path. Ids are case-sensitive.

    Related

    Accept a payment in Next.jsA payment link per order and a verified webhook, end to end.Reconcile payoutsA nightly job over payments, refunds and payouts.Webhookspayment.succeeded, payment.failed, payment.refunded and more.
    PreviousSlack, Discord and TeamsNext Refunds

    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

    • The payment object
    • Endpoints
    • List payments
    • Get a payment
    • Related
    Anytime Capital
    (470) 748-2530
    App Store

    Business

    • Business Checking
    • Business Debit Cards
    • Payments
    • Ecommerce Payments
    • Invoicing
    • 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

    • Platform Agreement
    • 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.

    • English
    • Español
    • 한국어
    Mastercard