Skip to content

API request logs

API request logs record the requests made to Flint in your environment: who called, what they sent, what came back, how long it took, and, for a failure, why it failed and how to recover. Resource timelines put every request, webhook event, and delivery attempt that touched one resource in order. Use them to debug a failed call, find a retry loop, audit what a key did, or work out how an order reached its current state.

To handle errors in code as they happen, read the error response itself; see Error handling. The Debugging guide walks through a full investigation.

Start from what you have#

You haveWhere to look
A request_id, such as req_01KWM608MR7CAZFETWS1RA3XPG, from a response's X-Request-Id header or bodyThe list, filtered by request_id. It returns at most one log.
An error.request_log_url from an error responseA GET to that path opens the log detail directly.
The X-Request-Id you sent, such as checkout-7f3a91The list, filtered by client_request_id. Your value isn't unique, so it can match several logs.
A trace ID from the traceparent you sentThe list, filtered by client_trace_id. One trace can span several requests.
An API key or other caller you want to auditThe list, filtered by caller_id or caller_type.
A customer whose session may have leakedThe list, filtered by customer_id, to review requests across their sessions.
A partner app you own, and its traffic in the merchants that installed itThe list, filtered by partner_app_id.
A resource ID, such as an order's ord_...The resource timeline for that ID.

Flint mints every request_id as req_ followed by 26 characters and returns it on every response. It doesn't echo the X-Request-Id you send: it stores your value on the log as client_request_id. Each log has its own api_request_log_id (rlog_...), which webhook events also carry, so you can join an event back to the request that caused it.

From an error to its log#

Open the log of a failed requestResponse
Your serverFlintPOST /v1/orders400 with request_log_urlGET request_log_urlthe log detail
  1. Your server sends POST /v1/orders to Flint
  2. Flint returns 400 with request_log_url to Your server
  3. Your server sends GET request_log_url to Flint
  4. Flint returns the log detail to Your server

An error response carries request_log_url when the credential holds developer.request_logs.read or developer.request_logs.self.read. Open it with the same credential. You can read the URL immediately: Flint waits up to three seconds for a log ID issued within the last 60 seconds. If the log is still unavailable, the 404 RESOURCE_NOT_FOUND response carries remediation.retry: same_request and Retry-After: 2.

Who sees what#

ScopeGrants
developer.request_logs.readThe list and detail of every caller's requests in the credential's environment, and the caller_type, caller_id, partner_app_id, and customer_id filters.
developer.request_logs.self.readThe list and detail of requests made with the calling credential only.
developer.resource_timelines.readResource timelines, together with the resource's own read scope, such as commerce.orders.read for an order.

A credential needs one of the two request log scopes, not both. The rules that span the three endpoints:

  • Everything stays in one environment. A live key reads live traffic, and a test key reads only its sandbox. Logs and resources from other merchants or environments return 404 RESOURCE_NOT_FOUND. The one exception is a partner app's owner filtering the list by partner_app_id, which covers the app's requests in every merchant that installed it, in the key's mode.
  • Own-only readers can't widen the view. With developer.request_logs.self.read, sending caller_type, caller_id, partner_app_id, or customer_id, or opening another caller's log, returns 403 INSUFFICIENT_SCOPE naming developer.request_logs.read.
  • Timelines follow the same request rule. A timeline's api_request entries cover every caller when the credential holds developer.request_logs.read, and only the calling credential's requests otherwise. Webhook event and delivery attempt entries aren't filtered by caller.
  • Partner app tokens can't call these endpoints. Their requests to your account still appear in your logs, with a partner_app_install caller and the app's partner_app_id. When your own app's token reads your app or revokes its installs, the request appears in your logs with a partner_app caller.
  • A partner app's owner reads the app's own traffic. See Review a partner app's requests.

For license key and device activation history, see Read a key's history.

The dashboard's request logs page reads the same data and shows every caller in the selected environment.

What a log records#

Flint logs a request once it identifies the credential, including scope failures and validation errors. Some requests leave no log:

  • Requests rejected before Flint identifies the credential, because the key is missing, unknown, revoked, or expired. Debug these from the 401 response.
  • Reads made in the dashboard. Writes from the dashboard, including API key changes, are logged with a user caller, and so are onboarding session requests.
  • Rate-limited buyer account and invoice access requests (429). Authenticated buyer reads and writes are logged with a customer_session or invoice caller. Session refreshes (POST /v1/customer-sessions/refresh) are logged with a customer_session caller, including a refresh that revokes a session because its refresh token was reused.
  • Reads of request logs and resource timelines, demo sessions, and sign-in and token requests under /v1/oauth/, apart from workload identity token exchanges.

Customer session requests carry customer_id on both the summary and detail; caller identifies the session. Other callers, including invoice access, omit customer_id. Filter by customer_id=cus_... to review every request made with a customer's sessions. The filter takes one exact customer ID; a well-formed ID with no matching requests returns an empty page.

The list returns summaries: caller, method, path and route, API versions, status, latency, the resource the request is attributed to, and on a failure a diagnosis with error_code, retry, and recommended_action. The detail adds:

  • query_params and request_headers, with sensitive values replaced. Buyer-side request headers keep only content metadata, API version, idempotency, request ID, and trace headers. Other headers, including authorization and client forwarding headers, are omitted.
  • request_body and response_body for most POST, PUT, and PATCH writes. Some routes never capture bodies, including those that handle secrets or verification codes, such as creating an API key or a webhook endpoint. Requests under /v1/me and session refreshes never store request or response bodies. Captured bodies stop at 64 KB and end with a [TRUNCATED] marker.
  • ip_address and user_agent whenever stored, for every caller. For a buyer-side caller (checkout_session, customer_session, or invoice), they are kept for 30 days and removed when the customer is deleted. When your server relays a buyer's request, the address is your server's address. Flint-hosted checkout and account pages use the buyer's forwarded client details when available.
  • reproduction, the request rebuilt for a replay.

Credentials, tokens, signatures, card and bank account numbers, tax IDs, and personal data such as emails, phone numbers, and address lines are replaced with [REDACTED] before the log is stored. You can't recover them from your logs.

Part of a logKept for
Headers and bodies14 days. After that, the detail still opens, without request_headers, request_body, or response_body.
ip_address and user_agent on buyer-side requests30 days.
Summaries and the rest of the detail90 days. After that, the log returns 404 RESOURCE_NOT_FOUND.

Find a request by your own ID#

Filter by the X-Request-Id you sent to find every request that carried it:

cURL
curl "https://api.withflintpay.com/v1/api-request-logs?client_request_id=checkout-7f3a91" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "data": [
    {
      "api_request_log_id": "rlog_01KWM6WAHJAXHCHE87C0KBBY7G",
      "request_id": "req_01KWM608MR7CAZFETWS1RA3XPG",
      "client_request_id": "checkout-7f3a91",
      "caller": {
        "resource_type": "api_key",
        "resource_id": "key_01KWJ93G11C7MF8REX91MDS0CD"
      },
      "http_method": "POST",
      "path": "/v1/orders",
      "route_pattern": "POST /v1/orders",
      "requested_api_version": "2026-09-07",
      "requested_api_version_source": "merchant",
      "served_api_version": "2026-09-07",
      "status_code": 400,
      "latency_milliseconds": 6,
      "resource_type": "order",
      "error_code": "INVALID_REQUEST",
      "error_type": "validation_error",
      "error_summary": "One or more request inputs are invalid.",
      "retry": "none",
      "recommended_action": "Correct each input named by details[].param as its message says, then send the request again.",
      "created_at": "2026-07-03T14:42:16Z"
    }
  ],
  "request_id": "req_01KWM6CNFPWADA6RV8N4E4W26V"
}

retry is none, so the request has to change before you send it again. Open the log with GET /v1/api-request-logs/rlog_01KWM6WAHJAXHCHE87C0KBBY7G to see the body Flint received. Filters that take a list, such as status_bucket and http_method, accept repeated keys or comma-separated values; values within one filter are ORed, and separate filters are ANDed. An empty or unknown value returns 400 INVALID_REQUEST, so a typo can't silently widen a search.

Review a partner app's requests#

Every request made with a partner app token records the app as partner_app_id, and the install as its caller. When partner_app_id names an app your merchant owns, the list covers that app's partner app token requests in every merchant that installed it, not only your environment. A live key reads the app's live requests, and a test key its test mode requests in every installed merchant's sandbox. For any other app ID, including one that doesn't exist, the filter only narrows your own environment's requests.

cURL
curl "https://api.withflintpay.com/v1/api-request-logs?partner_app_id=papp_01KWM6EC1EQHB5YH0CNHC3G9WY&status_bucket=client_error" \
  -H "Authorization: Bearer YOUR_API_KEY"

Add caller_id with an install's partner_app_install_id to narrow to one merchant. The detail route still reads only your own environment, so another merchant's log returns 404 RESOURCE_NOT_FOUND. The summaries carry what an API version review needs: the route, the versions asked for and served, the status, and the diagnosis. The dashboard's Versions screen uses them to show which of a partner app's version changes touch routes the app called. Requests logged before Flint began recording partner_app_id don't carry it, so neither the list nor the review covers them.

Replay a request#

The detail's reproduction rebuilds the request with its Flint-Version set to the version Flint served. Its curl command uses the matching bearer placeholder: <CUSTOMER_SESSION_SECRET> for a customer session, <INVOICE_ACCESS_TOKEN> for invoice access, <CHECKOUT_CREDENTIAL> for checkout, or <API_KEY> for every other caller. Substitute the matching credential, the contents of reproduction.body for <REDACTED_OR_CAPTURED_BODY>, and a new value for <NEW_IDEMPOTENCY_KEY>. A new idempotency key makes Flint run the request again rather than return the stored response. When has_redactions is true, fill the redacted values back in first.

For POST /v1/customer-sessions/refresh, the reproduction omits Authorization and sends {"refresh_token":"<CUSTOMER_SESSION_REFRESH_TOKEN>"} as JSON. Substitute the session's refresh token.

Warning: Replay writes in a sandbox

Replaying any request other than a GET changes data. Replay with a credential for a sandbox, even when the original request was live.

Errors#

  • HTTP 400
    A filter or parameter is malformed or unknown, and param names it, such as a request_id that isn't a req_ ID or a timestamp that isn't RFC 3339. Correct the value and send the request again.
  • HTTP 403
    The credential lacks a scope the request needs, and the error names it. A developer.request_logs.self.read credential that sends caller_type, caller_id, partner_app_id, or customer_id, or opens another caller's log, gets this error naming developer.request_logs.read.
  • HTTP 404
    The log or resource isn't in the credential's merchant and environment, or the log is past its 90-day retention. For a log ID issued within the last 60 seconds, Flint waits up to three seconds before returning a missing-log response with remediation.retry: same_request and Retry-After: 2.

Scopes and errors lists the common causes of each.

Debug API requestsEvery filter, the detail fields, and reading a resource timeline from the bottom up.Error handlingThe error envelope, remediation hints, and retries.API key securityReview what a leaked key did, request by request.WebhooksInspect delivery attempts and resend events.

The API request log detail object#

Full detail for one logged API request visible to the calling credential: headers, bodies, error summary, and how to reproduce it.

Returned by GET /v1/api-request-logs/{api_request_log_id} and carried by the endpoints below.

Attributes

api_request_log_idstringRequired

Stable identifier of this log entry.

callerobject

Who made this request. An API key, workload token, or partner app token records that API key, workload identity, or partner app installation. A Dashboard write, CLI login, or onboarding session records the user. A buyer checkout request records the checkout session. A buyer account request records the customer session. A request made with invoice access records the invoice. Absent when Flint cannot attribute the request.

client_request_idstring

The caller's X-Request-Id, matched exactly and case-sensitively. Absent when the caller sent none.

client_trace_idstring

The trace ID from a valid W3C traceparent, for correlation with the caller's tracing. Flint starts its own trace. Absent when no valid traceparent was sent.

created_atstringRequired

RFC3339 timestamp.

customer_idstring

The customer whose customer session made this request; `caller` is the session. Absent for every other caller.

error_codestring

The response's top-level error `code`. Absent for successful requests.

error_summarystring

A concise explanation of why the request failed.

error_typeenum

The error envelope's `type` for this response.

  • authentication_error
  • authorization_error
  • validation_error
  • not_found_error
  • conflict_error
  • rate_limit_error
  • external_service_error
  • timeout_error
  • unavailable_error
  • internal_error
  • protocol_error
expandarray of string

Normalized expand paths Flint applied. Absent when the request did not use expand.

http_methodstringRequired

HTTP method of the request.

ip_addressstring

The client IP address the request came from. When your server relays a buyer's request, this is your server's address. For a buyer-side caller (a checkout session, customer session, or invoice) it is kept for 30 days and removed when the customer is deleted. Absent when `caller` is absent.

latency_millisecondsintegerRequired

Time Flint spent handling the request, in milliseconds.

partner_app_idstring

The partner app whose partner app token made this request; `caller` is the install. Absent for every other caller.

pathstringRequired

Request path as sent, with real IDs, such as /v1/orders/ord_123.

query_paramsarray of objectRequired

Query parameters as received, with sensitive values replaced.

recommended_actionstring

The next step to resolve this failure.

reference_urlstring

A Flint guide that explains this failure. Absent when no guide applies.

reproductionobjectRequired

What you need to resend this request: its method, path, query parameters, headers, body, and a curl command.

request_bodyone of

The captured body. A JSON object or array body is returned as redacted JSON. Any other body, or a body Flint truncated or could not parse, is returned as a string. Absent when there was no body or the route does not capture bodies. Requests under /v1/me never store bodies.

request_headersmap of string

Captured request headers, keyed by header name. Buyer-side callers keep only content metadata, API version, idempotency, request ID, and trace headers; other headers are omitted. For other callers, sensitive values read [REDACTED].

request_idstringRequired

Records created before server-minted request IDs keep their original ID.

requested_api_versionstring

The API version Flint resolved for the request.

requested_api_version_sourceenum

Where `requested_api_version` came from. Absent when Flint did not record one.

  • header
  • partner_app
  • merchant
  • current
resource_idstring

The ID of the resource the request is about, when Flint can attribute it to one. A failed create can have a `resource_type` and no ID.

resource_typeenum

The kind of resource the request is about, when Flint can attribute it to one.

  • api_key
  • api_request_log
  • balance
  • balance_transaction
  • bundle
  • bundle_component
  • category
  • checkout_session
  • checkout_session_customer_verification
  • credit_note
  • credit_note_allocation
  • custom_domain
  • customer
  • customer_address
  • customer_deletion_request
  • customer_email_preferences
  • customer_session
  • customer_tax_exemption
  • customer_verification
  • delivery_choice_group
  • delivery_location_set
  • delivery_method
  • delivery_profile
  • delivery_quote
  • delivery_rate
  • delivery_rate_callback
  • delivery_revocation
  • delivery_selection
  • delivery_zone
  • demo_session
  • device
  • discount
  • dispute
  • email_change_request
  • environment_grant
  • file
  • flint_wallet
  • flint_wallet_card
  • fraud_warning
  • fulfillment
  • fulfillment_event
  • fulfillment_notification
  • gift_card
  • gift_card_funding_disposition
  • gift_card_load
  • gift_card_notification
  • gift_card_redemption
  • gift_card_transaction
  • image
  • inventory_adjustment
  • inventory_allocation_policy
  • inventory_allocation_policy_revision
  • inventory_count
  • inventory_item
  • inventory_level
  • inventory_movement
  • inventory_receipt
  • inventory_reservation
  • inventory_reservation_line
  • inventory_transfer
  • inventory_transfer_line
  • invoice
  • invoice_delivery_attempt
  • invoice_late_fee
  • invoice_line_item
  • invoice_manual_payment
  • invoice_payment_attempt
  • invoice_payment_term
  • license_key
  • license_key_activation
  • license_key_pool
  • license_key_pool_key
  • location
  • merchant
  • merchant_billing_balance
  • merchant_billing_entry
  • merchant_billing_invoice
  • merchant_signup
  • modifier
  • modifier_group
  • modifier_set
  • order
  • order_charge
  • order_edit
  • order_line_item
  • order_line_item_modifier
  • order_payment_attempt
  • package
  • package_item
  • partner_app
  • partner_app_credential
  • partner_app_install
  • payment_attempt
  • payment_intent
  • payment_link
  • payment_link_custom_field
  • payment_link_line_item
  • payment_method
  • payment_method_domain
  • payment_review
  • payment_split
  • payout
  • payout_destination
  • payout_settings
  • platform_fee
  • platform_fee_balance_transaction
  • platform_fee_payout
  • price_list
  • price_list_price
  • product
  • product_option
  • product_option_value
  • product_variant
  • promotion
  • promotion_code
  • purchase_refund_allocation
  • reader
  • refund
  • refund_allocation
  • refund_line_item_adjustment
  • remembered_buyer
  • report
  • report_download
  • return
  • return_activity
  • return_disposition
  • return_inspection
  • return_inspection_line_item
  • return_line_item
  • return_policy
  • return_policy_revision
  • return_reason
  • return_receipt
  • return_receipt_line_item
  • return_resolution
  • risk_list
  • risk_list_item
  • risk_rule
  • sandbox
  • settings
  • shipment
  • shop
  • shop_listing
  • subscription
  • subscription_delivery_migration
  • subscription_line_item
  • subscription_offer
  • subscription_payment_retry
  • subscription_plan
  • subscription_plan_line_item
  • tax_calculation_callback
  • tax_connection
  • tax_registration
  • test_clock
  • ticket
  • user
  • webhook_delivery
  • webhook_endpoint
  • webhook_event
  • workload_identity
response_bodyone of

The captured body. A JSON object or array body is returned as redacted JSON. Any other body, or a body Flint truncated or could not parse, is returned as a string. Absent when there was no body or the route does not capture bodies. Requests under /v1/me never store bodies.

response_content_typestring

Content-Type of the response.

retryenum

Whether sending this request again can succeed, and how. It depends only on code and details[0].reason; the errors reference lists the value for each.

  • same_request
  • after_refresh
  • none
route_patternstringRequired

The matched route as a method and path template, such as `POST /v1/orders`.

served_api_versionstring

The API version Flint used to encode the response.

status_codeintegerRequired

HTTP status Flint returned.

user_agentstring

The User-Agent header the request sent. For a buyer-side caller it is kept for 30 days and removed when the customer is deleted. Absent when the request sent none or `caller` is absent.

JSON
{
  "api_request_log_id": "rlog_01KEZF7C00SMPBXVMJEG4SRRD2",
  "caller": {
    "resource_id": "key_01ARZ3NDEKTSV4RRFFQ69G5FAV",
    "resource_type": "api_key"
  },
  "created_at": "2026-03-17T14:30:00Z",
  "error_code": "INVALID_REQUEST",
  "error_summary": "One or more request inputs are invalid.",
  "error_type": "validation_error",
  "http_method": "POST",
  "latency_milliseconds": 42,
  "path": "/v1/payment-intents/pi_01KEZF7C0050JFFB0HNCWWV1G3/confirm",
  "query_params": [],
  "recommended_action": "Correct each input named by details[].param as its message says, then send the request again.",
  "reproduction": {
    "body": {
      "payment_source": {
        "credential_type": "stripe_payment_method",
        "stripe": {
          "payment_method": "[REDACTED]"
        }
      }
    },
    "curl": "curl -X 'POST' 'https://api.withflintpay.com/v1/payment-intents/pi_01KEZF7C0050JFFB0HNCWWV1G3/confirm' -H 'Authorization: Bearer <API_KEY>' -H 'Idempotency-Key: <NEW_IDEMPOTENCY_KEY>' --data-raw '<REDACTED_OR_CAPTURED_BODY>'",
    "has_redactions": true,
    "headers": {
      "Authorization": "Bearer <API_KEY>",
      "Idempotency-Key": "<NEW_IDEMPOTENCY_KEY>"
    },
    "http_method": "POST",
    "path": "/v1/payment-intents/pi_01KEZF7C0050JFFB0HNCWWV1G3/confirm",
    "query_params": []
  },
  "request_body": {
    "payment_source": {
      "credential_type": "stripe_payment_method",
      "stripe": {
        "payment_method": "[REDACTED]"
      }
    }
  },
  "request_headers": {
    "content-type": "application/json"
  },
  "request_id": "req_01KWM6NGSNES0064SEXR602030",
  "resource_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
  "resource_type": "payment_intent",
  "response_body": {
    "error": {
      "code": "INVALID_REQUEST",
      "details": [
        {
          "code": "INVALID_VALUE",
          "message": "payment_source.stripe.payment_method is invalid.",
          "param": "payment_source.stripe.payment_method"
        }
      ],
      "doc_url": "https://developers.withflintpay.com/docs/errors#invalid_request",
      "error_source": "merchant",
      "message": "payment_source.stripe.payment_method is invalid.",
      "param": "payment_source.stripe.payment_method",
      "remediation": {
        "next_steps": "Correct each input named by details[].param as its message says, then send the request again.",
        "retry": "none"
      },
      "request_id": "req_01KWM6ZESBDJBBPHH8QEW2E60F",
      "type": "validation_error"
    }
  },
  "response_content_type": "application/json",
  "retry": "none",
  "route_pattern": "POST /v1/payment-intents/{payment_intent_id}/confirm",
  "status_code": 400
}

The Resource timeline object#

The activity timeline for one resource, such as API requests, webhook events and deliveries, and image changes. Request entries include the resource itself and one level of directly owned resources, resolved when the timeline is read: orders include their payment intents, public refunds, fulfillments, returns, invoices, and disputes; payment intents include their public refunds and disputes. Included requests require the caller's read access to each owned resource type. Types the caller cannot read are excluded before pagination. Ownership follows the child resource's order_id or payment_intent_id. Other resource types include only directly attributed requests. Internal payment-refund children are excluded. attributed_resource always names the resource the request log is attributed to. Webhook and image entries remain scoped to the timeline resource. Page sizes and ordering are unchanged.

Returned by GET /v1/resource-timelines/{resource_id} and carried by the endpoints below.

Attributes

entriesarray of one ofRequired

Timeline entries for the resource, each tagged by `entry_type`. Narrowed by `include`, `occurred_after`, and `occurred_before`.

license_key_pool_attestationsarray of object

Seller authorizations on this page, present for license key pools when any confirmations match the selected filters.

license_key_restriction_changesarray of object

Restriction changes on this page. Present for license keys when the include filter selects restriction changes.

resource_idstringRequired

ID of the resource this timeline is for.

resource_typeenumRequired

Type of the resource this timeline is for.

  • api_key
  • api_request_log
  • balance
  • balance_transaction
  • bundle
  • bundle_component
  • category
  • checkout_session
  • checkout_session_customer_verification
  • credit_note
  • credit_note_allocation
  • custom_domain
  • customer
  • customer_address
  • customer_deletion_request
  • customer_email_preferences
  • customer_session
  • customer_tax_exemption
  • customer_verification
  • delivery_choice_group
  • delivery_location_set
  • delivery_method
  • delivery_profile
  • delivery_quote
  • delivery_rate
  • delivery_rate_callback
  • delivery_revocation
  • delivery_selection
  • delivery_zone
  • demo_session
  • device
  • discount
  • dispute
  • email_change_request
  • environment_grant
  • file
  • flint_wallet
  • flint_wallet_card
  • fraud_warning
  • fulfillment
  • fulfillment_event
  • fulfillment_notification
  • gift_card
  • gift_card_funding_disposition
  • gift_card_load
  • gift_card_notification
  • gift_card_redemption
  • gift_card_transaction
  • image
  • inventory_adjustment
  • inventory_allocation_policy
  • inventory_allocation_policy_revision
  • inventory_count
  • inventory_item
  • inventory_level
  • inventory_movement
  • inventory_receipt
  • inventory_reservation
  • inventory_reservation_line
  • inventory_transfer
  • inventory_transfer_line
  • invoice
  • invoice_delivery_attempt
  • invoice_late_fee
  • invoice_line_item
  • invoice_manual_payment
  • invoice_payment_attempt
  • invoice_payment_term
  • license_key
  • license_key_activation
  • license_key_pool
  • license_key_pool_key
  • location
  • merchant
  • merchant_billing_balance
  • merchant_billing_entry
  • merchant_billing_invoice
  • merchant_signup
  • modifier
  • modifier_group
  • modifier_set
  • order
  • order_charge
  • order_edit
  • order_line_item
  • order_line_item_modifier
  • order_payment_attempt
  • package
  • package_item
  • partner_app
  • partner_app_credential
  • partner_app_install
  • payment_attempt
  • payment_intent
  • payment_link
  • payment_link_custom_field
  • payment_link_line_item
  • payment_method
  • payment_method_domain
  • payment_review
  • payment_split
  • payout
  • payout_destination
  • payout_settings
  • platform_fee
  • platform_fee_balance_transaction
  • platform_fee_payout
  • price_list
  • price_list_price
  • product
  • product_option
  • product_option_value
  • product_variant
  • promotion
  • promotion_code
  • purchase_refund_allocation
  • reader
  • refund
  • refund_allocation
  • refund_line_item_adjustment
  • remembered_buyer
  • report
  • report_download
  • return
  • return_activity
  • return_disposition
  • return_inspection
  • return_inspection_line_item
  • return_line_item
  • return_policy
  • return_policy_revision
  • return_reason
  • return_receipt
  • return_receipt_line_item
  • return_resolution
  • risk_list
  • risk_list_item
  • risk_rule
  • sandbox
  • settings
  • shipment
  • shop
  • shop_listing
  • subscription
  • subscription_delivery_migration
  • subscription_line_item
  • subscription_offer
  • subscription_payment_retry
  • subscription_plan
  • subscription_plan_line_item
  • tax_calculation_callback
  • tax_connection
  • tax_registration
  • test_clock
  • ticket
  • user
  • webhook_delivery
  • webhook_endpoint
  • webhook_event
  • workload_identity
testbooleanRequired

`true` when the timeline is for test mode data and `false` for live data.

JSON
{
  "entries": [
    {
      "api_request_log_id": "rlog_01KEZF7C00SMPBXVMJEG4SRRD2",
      "attributed_resource": {
        "resource_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
        "resource_type": "payment_intent"
      },
      "entry_type": "api_request",
      "http_method": "POST",
      "latency_milliseconds": 42,
      "occurred_at": "2026-03-17T14:30:00Z",
      "path": "/v1/payment-intents/pi_01KEZF7C0050JFFB0HNCWWV1G3/confirm",
      "request_id": "req_01KWM6SXEYHGFRSKBZJ1QS5F6X",
      "resource_timeline_entry_id": "rlog_01KEZF7C00SMPBXVMJEG4SRRD2",
      "route_pattern": "POST /v1/payment-intents/{payment_intent_id}/confirm",
      "status_code": 200
    },
    {
      "actor": null,
      "api_request_log_id": "rlog_01KEZF7C00SMPBXVMJEG4SRRD2",
      "entry_type": "webhook_event",
      "event_type": "payment_intent.succeeded",
      "occurred_at": "2026-03-17T14:30:01Z",
      "request_id": "req_01KWM66CGFDT25SZS86VFG0E6C",
      "resource_timeline_entry_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81",
      "webhook_event_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81"
    },
    {
      "api_request_log_id": "rlog_01KEZF7C00SMPBXVMJEG4SRRD2",
      "attempt_number": 1,
      "delivery_trigger": "automatic_delivery",
      "duration_milliseconds": 98,
      "entry_type": "webhook_delivery_attempt",
      "occurred_at": "2026-03-17T14:30:02Z",
      "request_id": "req_01KWM6E31H96AF2RVHKPJJQF7T",
      "resource_timeline_entry_id": "watt_01KEZF7C00DT9B86AS1BFP23QQ",
      "status": "delivered",
      "status_code": 200,
      "webhook_delivery_attempt_id": "watt_01KEZF7C00DT9B86AS1BFP23QQ",
      "webhook_delivery_id": "wdel_01KEZF7C009Q5YXV9EMB35BQ13",
      "webhook_endpoint_id": "whep_01KEZF7C00940MBDY86SCZ1NW9",
      "webhook_event_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81"
    },
    {
      "entry_type": "image_mutation",
      "image_version": 2,
      "mutation_kind": "replaced",
      "occurred_at": "2026-03-17T14:30:03Z",
      "resource_timeline_entry_id": "iomevt_01KEZF7C0025J1C0PSZXHBJ8RK"
    }
  ],
  "resource_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
  "resource_type": "payment_intent",
  "test": true
}

List API request logs#

GET/v1/api-request-logs

Requires scope developer.request_logs.read or developer.request_logs.self.read

Also requires developer.request_logs.read when filtering by caller_type, caller_id, partner_app_id, or customer_id.

Rate limit: read

Returns request summaries, newest first. With developer.request_logs.read the list covers every caller in the credential's environment. With developer.request_logs.self.read it covers only the calling credential's requests. With partner_app_id naming a partner app your merchant owns, the list instead covers that app's partner app token requests in every merchant that installed it, in the credential's mode; the detail route still reads only the credential's environment. Headers, bodies and a reproduction are on the detail route. Default order: created_at descending, then api_request_log_id descending.

Query parameters

page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

caller_typearray of enum

Filter by one or more caller resource types. Requires developer.request_logs.read. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • api_key
  • user
  • partner_app_install
  • partner_app
  • checkout_session
  • customer_session
  • invoice
  • workload_identity
caller_idstring

Filter by the exact public ID of the caller. Requires developer.request_logs.read.

customer_idstring

Filter to requests made with this customer's sessions. Requires developer.request_logs.read.

partner_app_idstring

Filter to requests made with this partner app's tokens. For an app your merchant owns, the list covers the app's requests in every merchant that installed it, in the credential's mode; otherwise it covers the credential's environment. Requires developer.request_logs.read.

request_idstring

Filter by Flint request ID. To find your own X-Request-Id, use client_request_id.

client_request_idstring

Filter by the exact, case-sensitive X-Request-Id you sent.

client_trace_idstring

Filter by a W3C traceparent trace ID, 32 lowercase hexadecimal characters, excluding all zeros.

http_methodarray of enum

Filter by HTTP method. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • GET
  • HEAD
  • POST
  • PUT
  • PATCH
  • DELETE
  • OPTIONS
  • CONNECT
  • TRACE
querystring

Case-insensitive substring search on path. The characters %, _, and backslash match literally.

resource_typearray of enum

Filter by resource type. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • api_key
  • api_request_log
  • balance
  • balance_transaction
  • bundle
  • bundle_component
  • category
  • checkout_session
  • checkout_session_customer_verification
  • credit_note
  • credit_note_allocation
  • custom_domain
  • customer
  • customer_address
  • customer_deletion_request
  • customer_email_preferences
  • customer_session
  • customer_tax_exemption
  • customer_verification
  • delivery_choice_group
  • delivery_location_set
  • delivery_method
  • delivery_profile
  • delivery_quote
  • delivery_rate
  • delivery_rate_callback
  • delivery_revocation
  • delivery_selection
  • delivery_zone
  • demo_session
  • device
  • discount
  • dispute
  • email_change_request
  • environment_grant
  • file
  • flint_wallet
  • flint_wallet_card
  • fraud_warning
  • fulfillment
  • fulfillment_event
  • fulfillment_notification
  • gift_card
  • gift_card_funding_disposition
  • gift_card_load
  • gift_card_notification
  • gift_card_redemption
  • gift_card_transaction
  • image
  • inventory_adjustment
  • inventory_allocation_policy
  • inventory_allocation_policy_revision
  • inventory_count
  • inventory_item
  • inventory_level
  • inventory_movement
  • inventory_receipt
  • inventory_reservation
  • inventory_reservation_line
  • inventory_transfer
  • inventory_transfer_line
  • invoice
  • invoice_delivery_attempt
  • invoice_late_fee
  • invoice_line_item
  • invoice_manual_payment
  • invoice_payment_attempt
  • invoice_payment_term
  • license_key
  • license_key_activation
  • license_key_pool
  • license_key_pool_key
  • location
  • merchant
  • merchant_billing_balance
  • merchant_billing_entry
  • merchant_billing_invoice
  • merchant_signup
  • modifier
  • modifier_group
  • modifier_set
  • order
  • order_charge
  • order_edit
  • order_line_item
  • order_line_item_modifier
  • order_payment_attempt
  • package
  • package_item
  • partner_app
  • partner_app_credential
  • partner_app_install
  • payment_attempt
  • payment_intent
  • payment_link
  • payment_link_custom_field
  • payment_link_line_item
  • payment_method
  • payment_method_domain
  • payment_review
  • payment_split
  • payout
  • payout_destination
  • payout_settings
  • platform_fee
  • platform_fee_balance_transaction
  • platform_fee_payout
  • price_list
  • price_list_price
  • product
  • product_option
  • product_option_value
  • product_variant
  • promotion
  • promotion_code
  • purchase_refund_allocation
  • reader
  • refund
  • refund_allocation
  • refund_line_item_adjustment
  • remembered_buyer
  • report
  • report_download
  • return
  • return_activity
  • return_disposition
  • return_inspection
  • return_inspection_line_item
  • return_line_item
  • return_policy
  • return_policy_revision
  • return_reason
  • return_receipt
  • return_receipt_line_item
  • return_resolution
  • risk_list
  • risk_list_item
  • risk_rule
  • sandbox
  • settings
  • shipment
  • shop
  • shop_listing
  • subscription
  • subscription_delivery_migration
  • subscription_line_item
  • subscription_offer
  • subscription_payment_retry
  • subscription_plan
  • subscription_plan_line_item
  • tax_calculation_callback
  • tax_connection
  • tax_registration
  • test_clock
  • ticket
  • user
  • webhook_delivery
  • webhook_endpoint
  • webhook_event
  • workload_identity
resource_idstring

Filter by resource ID.

status_bucketarray of enum

Filter by response status bucket. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • success
  • client_error
  • server_error
created_afterstring

Inclusive lower bound on created_at.

created_beforestring

Exclusive upper bound on created_at.

Response · 200

A page of API request log summaries for the credential's visibility.

dataarray of objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/api-request-logs \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

A page of API request log summaries for the credential's visibility.

JSON
{
  "data": [
    {
      "api_request_log_id": "rlog_01KEZF7C00SMPBXVMJEG4SRRD2",
      "caller": {
        "resource_id": "key_01ARZ3NDEKTSV4RRFFQ69G5FAV",
        "resource_type": "api_key"
      },
      "created_at": "2026-03-17T14:30:00Z",
      "http_method": "GET",
      "latency_milliseconds": 12,
      "path": "/v1/orders/ord_01KEZF7C00JBKMARG3P06Z224B",
      "request_id": "req_01KWM6FVKX1A9AY3YSKAN37AZX",
      "resource_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
      "resource_type": "order",
      "route_pattern": "GET /v1/orders/{order_id}",
      "status_code": 200
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "next_page_token": "example",
  "request_id": "req_01KWM6KYE5RDJX3W4PMMNQ0Z0R"
}

Get API request log#

GET/v1/api-request-logs/{api_request_log_id}

Requires scope developer.request_logs.read or developer.request_logs.self.read

Rate limit: read

Returns one request with redacted headers, the redacted request and response bodies for write routes that capture them, and a curl reproduction. Detail older than 14 days has no headers or bodies.

Path parameters

api_request_log_idstringRequired

Flint API request log ID. Must be a valid ID with prefix rlog_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Response · 200

Redacted API request log detail for the credential's visibility.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/api-request-logs/rlog_01KEZF7C008XJCH6BHA224X46F \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Redacted API request log detail for the credential's visibility.

JSON
{
  "data": {
    "api_request_log_id": "rlog_01KEZF7C00SMPBXVMJEG4SRRD2",
    "caller": {
      "resource_id": "key_01ARZ3NDEKTSV4RRFFQ69G5FAV",
      "resource_type": "api_key"
    },
    "created_at": "2026-03-17T14:30:00Z",
    "error_code": "INVALID_REQUEST",
    "error_summary": "One or more request inputs are invalid.",
    "error_type": "validation_error",
    "http_method": "POST",
    "latency_milliseconds": 42,
    "path": "/v1/payment-intents/pi_01KEZF7C0050JFFB0HNCWWV1G3/confirm",
    "query_params": [],
    "recommended_action": "Correct each input named by details[].param as its message says, then send the request again.",
    "reproduction": {
      "body": {
        "payment_source": {
          "credential_type": "stripe_payment_method",
          "stripe": {
            "payment_method": "[REDACTED]"
          }
        }
      },
      "curl": "curl -X 'POST' 'https://api.withflintpay.com/v1/payment-intents/pi_01KEZF7C0050JFFB0HNCWWV1G3/confirm' -H 'Authorization: Bearer <API_KEY>' -H 'Idempotency-Key: <NEW_IDEMPOTENCY_KEY>' --data-raw '<REDACTED_OR_CAPTURED_BODY>'",
      "has_redactions": true,
      "headers": {
        "Authorization": "Bearer <API_KEY>",
        "Idempotency-Key": "<NEW_IDEMPOTENCY_KEY>"
      },
      "http_method": "POST",
      "path": "/v1/payment-intents/pi_01KEZF7C0050JFFB0HNCWWV1G3/confirm",
      "query_params": []
    },
    "request_body": {
      "payment_source": {
        "credential_type": "stripe_payment_method",
        "stripe": {
          "payment_method": "[REDACTED]"
        }
      }
    },
    "request_headers": {
      "content-type": "application/json"
    },
    "request_id": "req_01KWM6NGSNES0064SEXR602030",
    "resource_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
    "resource_type": "payment_intent",
    "response_body": {
      "error": {
        "code": "INVALID_REQUEST",
        "details": [
          {
            "code": "INVALID_VALUE",
            "message": "payment_source.stripe.payment_method is invalid.",
            "param": "payment_source.stripe.payment_method"
          }
        ],
        "doc_url": "https://developers.withflintpay.com/docs/errors#invalid_request",
        "error_source": "merchant",
        "message": "payment_source.stripe.payment_method is invalid.",
        "param": "payment_source.stripe.payment_method",
        "remediation": {
          "next_steps": "Correct each input named by details[].param as its message says, then send the request again.",
          "retry": "none"
        },
        "request_id": "req_01KWM6ZESBDJBBPHH8QEW2E60F",
        "type": "validation_error"
      }
    },
    "response_content_type": "application/json",
    "retry": "none",
    "route_pattern": "POST /v1/payment-intents/{payment_intent_id}/confirm",
    "status_code": 400
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM68P1JSHGCRY99VCHDV8SM"
}

Get a resource timeline#

GET/v1/resource-timelines/{resource_id}

Requires scope developer.resource_timelines.read

Rate limit: read

Returns summary-only API request, webhook event, webhook delivery attempt, image mutation, license key restriction change, and license key pool authorization entries for a single public API resource. The caller must have developer.resource_timelines.read and the matching read scope for the requested resource type. License key timelines include entries for the key and its device activations. Default order: occurred_at descending, then resource_timeline_entry_id descending.

Path parameters

resource_idstringRequired

Flint public API resource ID.

Query parameters

resource_typeenum

Optional resource type. Must match the resource_id prefix when present.

  • balance
  • balance_transaction
  • bundle
  • category
  • checkout_session
  • credit_note
  • credit_note_allocation
  • customer
  • delivery_method
  • dispute
  • fraud_warning
  • inventory_count
  • inventory_level
  • inventory_receipt
  • inventory_reservation
  • inventory_reservation_line
  • inventory_transfer
  • invoice
  • invoice_payment_term
  • license_key
  • license_key_activation
  • license_key_pool
  • merchant_billing_balance
  • merchant_billing_invoice
  • merchant_signup
  • modifier
  • modifier_group
  • modifier_set
  • order
  • payment_intent
  • payment_link
  • payment_method
  • payment_method_domain
  • payment_review
  • payout
  • payout_destination
  • payout_settings
  • product
  • product_variant
  • promotion
  • promotion_code
  • reader
  • refund
  • return
  • return_activity
  • return_disposition
  • return_inspection
  • return_receipt
  • return_resolution
  • risk_list
  • risk_list_item
  • risk_rule
  • shop
  • subscription
  • subscription_plan
  • test_clock
includearray of enum

Timeline entry groups to include. Defaults to all applicable groups.

  • requests
  • webhooks
  • attempts
  • image_mutations
  • license_key_pool_attestations
  • license_key_restriction_changes
page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

occurred_afterstring

Inclusive lower bound on occurred_at.

occurred_beforestring

Exclusive upper bound on occurred_at.

Response · 200

A summary-only timeline for the requested resource.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/resource-timelines/ord_01KEZF7C0054GQKJ142A8X367A \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

A summary-only timeline for the requested resource.

JSON
{
  "data": {
    "entries": [
      {
        "api_request_log_id": "rlog_01KEZF7C00SMPBXVMJEG4SRRD2",
        "attributed_resource": {
          "resource_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
          "resource_type": "payment_intent"
        },
        "entry_type": "api_request",
        "http_method": "POST",
        "latency_milliseconds": 42,
        "occurred_at": "2026-03-17T14:30:00Z",
        "path": "/v1/payment-intents/pi_01KEZF7C0050JFFB0HNCWWV1G3/confirm",
        "request_id": "req_01KWM6SXEYHGFRSKBZJ1QS5F6X",
        "resource_timeline_entry_id": "rlog_01KEZF7C00SMPBXVMJEG4SRRD2",
        "route_pattern": "POST /v1/payment-intents/{payment_intent_id}/confirm",
        "status_code": 200
      },
      {
        "actor": null,
        "api_request_log_id": "rlog_01KEZF7C00SMPBXVMJEG4SRRD2",
        "entry_type": "webhook_event",
        "event_type": "payment_intent.succeeded",
        "occurred_at": "2026-03-17T14:30:01Z",
        "request_id": "req_01KWM66CGFDT25SZS86VFG0E6C",
        "resource_timeline_entry_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81",
        "webhook_event_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81"
      },
      {
        "api_request_log_id": "rlog_01KEZF7C00SMPBXVMJEG4SRRD2",
        "attempt_number": 1,
        "delivery_trigger": "automatic_delivery",
        "duration_milliseconds": 98,
        "entry_type": "webhook_delivery_attempt",
        "occurred_at": "2026-03-17T14:30:02Z",
        "request_id": "req_01KWM6E31H96AF2RVHKPJJQF7T",
        "resource_timeline_entry_id": "watt_01KEZF7C00DT9B86AS1BFP23QQ",
        "status": "delivered",
        "status_code": 200,
        "webhook_delivery_attempt_id": "watt_01KEZF7C00DT9B86AS1BFP23QQ",
        "webhook_delivery_id": "wdel_01KEZF7C009Q5YXV9EMB35BQ13",
        "webhook_endpoint_id": "whep_01KEZF7C00940MBDY86SCZ1NW9",
        "webhook_event_id": "whev_01KEZF7C00BW7XQJ98PQ8EHA81"
      },
      {
        "entry_type": "image_mutation",
        "image_version": 2,
        "mutation_kind": "replaced",
        "occurred_at": "2026-03-17T14:30:03Z",
        "resource_timeline_entry_id": "iomevt_01KEZF7C0025J1C0PSZXHBJ8RK"
      }
    ],
    "resource_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
    "resource_type": "payment_intent",
    "test": true
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "next_page_token": "example",
  "request_id": "req_01KWM6B2MBK8R2YZA4CMRC57NN"
}

Was this helpful?