Get payment details

Returns one payment by ID, including customer and billing details, status, tax breakdown, the purchased price snapshot, and refund history when present.

GET/v1/payments/:paymentId

Authorization

api_key_auth
AuthorizationBearer <token>

API key authentication. Use "Bearer YOUR_API_KEY" format.

In: header

Path Parameters

paymentIdstringrequired

The ID of the payment to retrieve. Use the list payments endpoint first if you need to discover a payment ID by email, name, customer, page, product, or date range.

^[0-9a-fA-F]{24}$

Query Parameters

livemodestring

Set to false to return test-mode records created while a page was in test mode. Defaults to the mode of the API key. Test API keys can only read test data.

truefalse

Returns

Payment retrieved successfully

    • idstring

      Unique record ID. Use this for pagination cursors.

    • statusstring

      Payment status. paid: payment collected in full. partially_paid: some amount collected, but a balance remains. refunded: full refund issued. amountPaid still shows the original amount, not the net amount after refund. Use amountRefunded for the refund amount and lastRefundAt for the refund date. partial_refund: partial refund issued. Use amountRefunded for the refund amount and amountPaid - amountRefunded for the net amount retained. lastRefundAt, lastRefundReason, and lastRefundReasonNote describe the most recent refund action. draft: checkout in progress and not yet submitted. draft_expired: checkout started but expired before completion. created: payment record created, but no action taken yet. pending: payment submitted and awaiting processing. unpaid: manual or invoice payment created, but not yet paid. This is expected for invoice-based checkouts and is not a failure state. failed: payment attempt was rejected. Check paymentError for the most recent error message when present. canceled: payment was canceled.

      createdpendingunpaidpartially_paidpaidcanceledfailedpartial_refund
    • orderId?string, nullable

      Human-readable order number.

    • orderStatus?string, nullable

      Order lifecycle status. Valid values are active, canceled.

      activecanceled
    • customerEmail?string, nullable

      Customer's email address (e.g. andrew@example.com). Present on all records with a linked customer entity. Null on incomplete checkouts. Searchable via search

    • customerName?string, nullable

      Customer full name. Searchable via search.

    • customerId?string, nullable

      Customer ID.

    • sellerId?string, nullable

      Seller ID.

    • pageId?string, nullable

      ID of the page the payment was made on. A sale made through your store carries an ID that is not a checkout page in the API.

    • pageSlug?string, nullable

      Page URL slug. This is a URL fragment, not a human-friendly title.

    • clientIp?string, nullable

      Customer IP address.

    • currency?string, nullable

      Three-letter currency code.

    • amountnumber

      Total amount billed for the record, in the smallest currency unit.

    • amountPaid?number

      Amount collected toward amount, in the smallest currency unit. Refunded records retain their original amountPaid value; use amountRefunded to determine the refunded portion.

    • amountDue?number

      Outstanding amount still due, in the smallest currency unit.

    • amountRefunded?number, nullable

      Total amount refunded, in the smallest currency unit. Present on all records and 0 when no refund has been issued. NOTE: For records created before 2026-01-22T06:43:28.000Z, some refunds may have incomplete metadata and show amountRefunded: 0.

    • amountUsd?number, nullable

      The total amount in USD. Calculated using the exchange rate at the time of the transaction.

    • amountExcludingTax?number, nullable

      The total amount excluding tax.

    • taxAmount?number, nullable

      The total tax amount.

    • taxSource?string, nullable

      How tax was applied. fixed_tax_rate when tax rates were applied directly to the record. stripe_tax when tax was calculated by Stripe based on the transaction details and Stripe Tax settings.

      fixed_tax_ratestripe_tax
    • Fixed tax rates applied to this record. Populated when taxSource is fixed_tax_rate.

    • stripeTaxCalculationId?string, nullable
    • stripeTaxTransactionId?string, nullable
    • dynamicPrice?number, nullable

      The dynamic price controlled by query params at checkout that overrides the default price configured on the page.

    • Array of fee objects.

    • What the customer chose to add to cover the processing fee, worked out on the total with tax. Not one of fees.

    • Billing details, including name, email, phone, and address.

    • Shipping details, including name, phone, and address. Often empty.

    • Submitted form field responses.

    • Coupon details when a coupon was applied. amountOff is the fixed discount configured on the coupon, percentOff is the configured percentage discount, and discount is the total discount actually applied to this record.

    • livemode?boolean, nullable

      Whether this is a real transaction.

    • paymentError?string, nullable

      Last payment-specific error message. This field is not guaranteed to be set and persists after a later successful payment, so check status before interpreting paymentError.

    • Payment method details, such as gateway, method, brand, last4, country, and funding. This may be absent when a payment method was never initiated.

    • Payment option details. type is full for standard payments and manual for invoice or offline flows; when type is manual, a status: unpaid record is expected and does not indicate a failure.

    • locale?string, nullable

      Customer's browser locale.

    • sessionId?string, nullable

      Unique session ID.

    • userAgent?string, nullable

      Customer's browser user agent string.

    • screenWidth?number, nullable

      Customer's screen width in pixels.

    • visitId?string, nullable

      Unique visit ID to track a customer across multiple sessions.

    • queryParameters?Record<string, string>, nullable

      URL query parameters captured from the page link.

    • stripePaymentIntentId?string, nullable
    • stripeChargeId?string, nullable
    • upsell?boolean, nullable

      Whether this record is an upsell. Upsell records are included in results by default.

    • upsellPageId?string, nullable

      For an upsell record, the ID of the page the buyer paid on before accepting the upsell (the start of the funnel).

    • isComplimentary?boolean, nullable

      Whether this is a complimentary booking: issued by the merchant at no charge, recorded as paid with amount, amountPaid and amountDue of 0 while the ticket and add-on lines keep their face value. Always false on payments.

    • complimentaryDiscountAmount?number, nullable

      On a complimentary booking, the discount that brought the total to 0, in the smallest currency unit. Equal to the pre-discount subtotal of the ticket and add-on lines. Absent otherwise.

    • upsellChargeId?string, nullable

      For an upsell record, the ID of the payment made on the page before the upsell.

    • upsellSubscriptionId?string, nullable

      For an upsell record, the ID of the subscription created on the page before the upsell.

    • invoiceId?string, nullable

      Generated invoice ID when an invoice exists. This confirms that an invoice was created, but not that the invoice document itself is available here.

    • transactionIds?string[], nullable
    • paidAt?string, nullable

      When the payment was paid in full. For an invoice or cash payment this is when the merchant recorded the payment, which can be long after createdAt. Empty until fully paid, including a deposit with a balance still due.

      date-time

    • lastRefundAt?string, nullable

      Timestamp of the most recent refund action.

      date-time

    • lastRefundReason?string, nullable

      Reason code for the most recent refund action.

    • lastRefundReasonNote?string, nullable

      Free-text note for the most recent refund action. Refund reason fields reflect only the most recent refund action, not the full refund history.

    • canceledAt?string

      The date this was canceled.

    • canceledBy?string

      The userId that canceled this. If this is a booking, tickets were canceled in addition.

    • canceledByName?string, nullable

      Name of the user who voided this invoice, as it was at the time. Kept if the user is deleted later.

    • canceledByApiKey?string, nullable

      ID of the API key that canceled this, when it was canceled through the seller API. The key may have been deleted since; canceledByApiKeyName keeps its name.

    • canceledByApiKeyName?string, nullable

      Name of the API key that canceled this, as it was at the time. Kept when the key is deleted later.

    • source?string, nullable

      invoice when the payment was created from an invoice the merchant sent. Absent for other payments.

      checkoutinvoice
    • createdBy?string, nullable

      ID of the user who created and sent the invoice from the dashboard. Only set on invoices created by hand.

    • createdByName?string, nullable

      Name of the user who created and sent the invoice, as it was at the time. Kept if the user is deleted later.

    • createdByApiKey?string, nullable

      ID of the API key that created and sent the invoice, when it was created through the seller API. The key may have been deleted since; createdByApiKeyName keeps its name.

    • createdByApiKeyName?string, nullable

      Name of the API key that created and sent the invoice, as it was at the time. Kept when the key is deleted later.

    • canceledReason?string

      The reason for the cancellation

    • archivedAt?string

      When the merchant archived this, hiding it from their default bookings list in the dashboard. Archiving changes nothing else: the payment, tickets and orderStatus stay as they were. Absent unless archived.

    • archivedBy?string

      The userId of the team member who archived this. Absent unless archived.

    • isAbandoned?boolean, nullable

      Whether the checkout flow was abandoned.

    • recoveredAt?string, nullable

      The date at which the customer recovered their checkout through cart abandonment.

      date-time

    • abandonmentStatus?string, nullable

      'abandoned': checkout was started but not completed and not recovered yet. 'recovered': was abandoned but the customer returned and paid. Absent when the charge is not an abandoned cart.

      abandonedrecovered
    • abandonedCartEmailStatus?string, nullable

      The status of the abandonment email sent for this charge. pending: No email has been sent. Stays as pending if isAbandoned is false. first_sent: The first abandonment email has been sent. second_sent: The second abandonment email has been sent. third_sent: The third abandonment email has been sent. skipped: The abandonment email processed was skipped.

      pendingfirst_sentsecond_sentthird_sentskipped
    • abandonedCartEmailSentAt?string, nullable

      Timestamp of the most recent abandoned-cart recovery email, if applicable.

      date-time

    • createdAtstring

      ISO 8601 timestamp when this record was created.

      date-time

    • updatedAtstring

      ISO 8601 timestamp when this record was last updated.

      date-time

    • storeId?string

      ID of the store it was sold in. Absent for a sale made outside a store. Match this to find everything a store sold.

    • productId?string, nullable

      Product ID for the purchased item.

    • productTitle?string, nullable

      Human-readable product name.

    • productPrice?number, nullable

      Base product price in the smallest currency unit.

    • priceId?string, nullable

      Id of the price the customer selected at checkout.

    • Frozen snapshot of the purchased price at the point of purchase.

    • payWhatYouWantPrice?number, nullable

      Pay-what-you-want amount selected by the customer, in the smallest currency unit.

    • discountedFromPrice?number, nullable

      Original pre-discount price in the smallest currency unit. Marketing tool only.

    • setupFee?number, nullable

      One-time setup fee in the smallest currency unit.

    • quantity?number, nullable

      Quantity purchased for this payment record.

    • sku?string, nullable

      SKU for the purchased product or variant.

    • Selected product variants and chosen options.

    • licenseKeyId?string, nullable

      Associated license key ID, if generate license keys is enabled.

Bad request - Invalid request parameters

  • statusstring

    Indicates the request failed.

    error
  • typestring

    Machine-readable error category.

  • messagestring

    Human-readable error message.

  • Optional validation details for invalid requests.

Unauthorized - Missing or invalid API key

  • statusstring

    Indicates the request failed.

    error
  • typestring

    Machine-readable error category.

  • messagestring

    Human-readable error message.

  • Optional validation details for invalid requests.

Forbidden - Insufficient permissions or validation error

  • statusstring

    Indicates the request failed.

    error
  • typestring

    Machine-readable error category.

  • messagestring

    Human-readable error message.

  • Optional validation details for invalid requests.

Payment not found

  • statusstring

    Indicates the request failed.

    error
  • typestring

    Machine-readable error category.

  • messagestring

    Human-readable error message.

  • Optional validation details for invalid requests.

Rate Limit Exceeded - Please try again later.

  • messagestring

    Human-readable error message.

Internal server error

  • statusstring

    Indicates the request failed.

    error
  • typestring

    Machine-readable error category.

  • messagestring

    Human-readable error message.

  • Optional validation details for invalid requests.

import { createCheckoutPageClient } from '@checkoutpage/sdk';const checkoutpage = createCheckoutPageClient({  apiKey: process.env.CHECKOUTPAGE_API_KEY!,});const response = await checkoutpage.payments.get('6812fe6e9f39b6760576f01c');
{
  "data": {
    "id": "string",
    "status": "created",
    "orderId": "string",
    "orderStatus": "active",
    "customerEmail": "string",
    "customerName": "string",
    "customerId": "string",
    "sellerId": "string",
    "pageId": "string",
    "pageSlug": "string",
    "clientIp": "string",
    "currency": "string",
    "amount": 0,
    "amountPaid": 0,
    "amountDue": 0,
    "amountRefunded": 0,
    "amountUsd": 0,
    "amountExcludingTax": 0,
    "taxAmount": 0,
    "taxBreakdown": [
      {
        "taxType": "string",
        "taxabilityReason": "string",
        "taxableAmount": 0,
        "taxAmount": 0,
        "taxRateDetails": {
          "country": "string",
          "percentageDecimal": 0,
          "state": "string",
          "taxType": "string"
        }
      }
    ],
    "taxSource": "fixed_tax_rate",
    "taxRates": [
      {
        "taxRate": "65f4a1c2e4a9f3d2b1c0a9e8",
        "stripeId": "string",
        "displayName": "VAT",
        "default": true,
        "active": true,
        "inclusive": true,
        "percentage": 0,
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z"
      }
    ],
    "stripeTaxCalculationId": "string",
    "stripeTaxTransactionId": "string",
    "dynamicPrice": 0,
    "fees": [
      {
        "name": "string",
        "amount": 0,
        "percentage": 0,
        "percentageAmount": 0,
        "fixedAmount": 0
      }
    ],
    "processingFeeContribution": {
      "name": "string",
      "amount": 0,
      "percentage": 0,
      "percentageAmount": 0,
      "fixedAmount": 0
    },
    "billing": {
      "name": "string",
      "companyName": "string",
      "email": "string",
      "billingEmail": "string",
      "phone": "string",
      "address": {
        "line1": "string",
        "line2": "string",
        "city": "string",
        "state": "string",
        "postalCode": "string",
        "country": "string"
      }
    },
    "shipping": {
      "name": "string",
      "phone": "string",
      "address": {
        "line1": "string",
        "line2": "string",
        "city": "string",
        "state": "string",
        "postalCode": "string",
        "country": "string"
      }
    },
    "fields": [
      {
        "fieldId": "string",
        "label": "string",
        "value": "string",
        "values": [
          "string"
        ],
        "element": "checkbox",
        "type": "",
        "meta": {
          "property1": null,
          "property2": null
        },
        "reference": "string"
      }
    ],
    "coupon": {
      "id": "string",
      "label": "string",
      "code": "string",
      "amountOff": 0,
      "percentOff": 0,
      "discount": 0
    },
    "discount": {
      "minQuantity": 0,
      "maxQuantity": 0,
      "percentOff": 0,
      "amountOff": 0,
      "amount": 0
    },
    "livemode": true,
    "paymentError": "string",
    "paymentMethod": {
      "gateway": "stripe",
      "method": "string",
      "wallet": "string",
      "mode": "default",
      "brand": "string",
      "last4": "string",
      "country": "string",
      "expMonth": 0,
      "expYear": 0,
      "funding": "string"
    },
    "paymentOption": {
      "type": "manual",
      "name": "string",
      "description": "string",
      "instructions": "string",
      "partialAmount": 0,
      "manualType": "invoice"
    },
    "locale": "string",
    "sessionId": "string",
    "userAgent": "string",
    "screenWidth": 0,
    "visitId": "string",
    "queryParameters": {
      "property1": "string",
      "property2": "string"
    },
    "stripePaymentIntentId": "string",
    "stripeChargeId": "string",
    "upsell": true,
    "upsellPageId": "string",
    "isComplimentary": true,
    "complimentaryDiscountAmount": 0,
    "upsellChargeId": "string",
    "upsellSubscriptionId": "string",
    "invoiceId": "string",
    "transactionIds": [
      "string"
    ],
    "paidAt": "2019-08-24T14:15:22Z",
    "lastRefundAt": "2019-08-24T14:15:22Z",
    "lastRefundReason": "string",
    "lastRefundReasonNote": "string",
    "canceledAt": "string",
    "canceledBy": "string",
    "canceledByName": "string",
    "canceledByApiKey": "string",
    "canceledByApiKeyName": "string",
    "source": "checkout",
    "createdBy": "string",
    "createdByName": "string",
    "createdByApiKey": "string",
    "createdByApiKeyName": "string",
    "canceledReason": "string",
    "archivedAt": "string",
    "archivedBy": "string",
    "isAbandoned": true,
    "recoveredAt": "2019-08-24T14:15:22Z",
    "abandonmentStatus": "abandoned",
    "abandonedCartEmailStatus": "pending",
    "abandonedCartEmailSentAt": "2019-08-24T14:15:22Z",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "storeId": "string",
    "productId": "string",
    "productTitle": "string",
    "productPrice": 0,
    "priceId": "string",
    "priceSnapshot": {
      "priceId": "string",
      "label": "string",
      "description": "string",
      "badge": "string",
      "reference": "string",
      "billingType": "string",
      "amount": 0,
      "currency": "string",
      "discountedFromPrice": 0,
      "setupFee": 0,
      "setupFeeMultipliesWithQuantity": true,
      "stripePriceId": "string",
      "stripePriceLivemode": true,
      "managedInStripe": true,
      "payWhatYouWant": true,
      "pwywSuggestedPrice": 0,
      "recurring": {
        "interval": "string",
        "intervalCount": 0,
        "trialPeriodDays": 0,
        "billingCycleAnchorConfig": {
          "enabled": true,
          "dayOfMonth": 0,
          "month": 0
        },
        "startDate": "2019-08-24T14:15:22Z"
      },
      "paymentPlan": {
        "interval": "string",
        "intervalCount": 0,
        "trialPeriodDays": 0,
        "billingCycleAnchorConfig": {
          "enabled": true,
          "dayOfMonth": 0,
          "month": 0
        },
        "startDate": "2019-08-24T14:15:22Z",
        "planIterations": 0
      }
    },
    "payWhatYouWantPrice": 0,
    "discountedFromPrice": 0,
    "setupFee": 0,
    "quantity": 0,
    "sku": "string",
    "variants": [
      {
        "name": "string",
        "variantId": "string",
        "reference": "string",
        "selectionType": "single",
        "selectedOptions": [
          {
            "optionId": "string",
            "optionName": "string",
            "sku": "string",
            "quantity": 0,
            "additionalChargeAmount": 0,
            "originalAdditionalChargeAmount": 0,
            "discount": {
              "minQuantity": 0,
              "maxQuantity": 0,
              "percentOff": 0,
              "amountOff": 0,
              "amount": 0
            }
          }
        ]
      }
    ],
    "licenseKeyId": "string"
  }
}
{
  "status": "error",
  "type": "ValidationError",
  "message": "Bad request - Invalid body: Field 'email' must be a valid email address",
  "errors": [
    {
      "param": "email",
      "message": "must be a valid email address"
    }
  ]
}
{
  "status": "error",
  "type": "error",
  "message": "Missing or invalid API key"
}
{
  "status": "error",
  "type": "error",
  "message": "Insufficient permissions requires: BOOKINGS_WRITE"
}
{
  "status": "error",
  "type": "error",
  "message": "Payment not found"
}
{
  "message": "API key rate limit exceeded. Please try again later."
}
{
  "status": "error",
  "type": "error",
  "message": "Internal server error"
}