Skip to content

Stripe: Report payment attempt informational

Stripe paymentRecords.postPaymentRecordsIdReportPaymentAttemptInformational: arguments, response, policy and SDK examples.

← Payment records operations · Get started

Operation stripe.postpaymentrecordsidreportpaymentattemptinformational

Provider route: POST /v1/payment_records/{id}/report_payment_attempt_informational. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/stripe with npm, or alter-sdk-stripe with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { StripeIntegration } from "@alter-ai/stripe";
async function execute(input: Parameters<StripeIntegration["paymentRecords"]["postPaymentRecordsIdReportPaymentAttemptInformational"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new StripeIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.paymentRecords.postPaymentRecordsIdReportPaymentAttemptInformational(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_stripe import StripeIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = StripeIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.payment_records.post_payment_records_id_report_payment_attempt_informational(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.idstringRequired within parentMaximum length: 5000
headersobjectOptionalAdditional keys: not allowed
headers.Idempotency-KeystringOptionalMinimum length: 1
Maximum length: 255
bodyobjectOptionalAdditional keys: not allowed
body.customer_detailsobjectOptionalCustomer information for this payment.
body.customer_details.customerstringOptionalMaximum length: 5000
body.customer_details.emailstringOptional
body.customer_details.namestringOptionalMaximum length: 5000
body.customer_details.phonestringOptional
body.descriptionJSONOptionalAn arbitrary string attached to the object. Often useful for displaying to users.
body.description (anyOf 1)stringAlternativeMaximum length: 5000
body.description (anyOf 2)stringAlternativeOne of:
body.expandarrayOptionalSpecifies which fields in the response should be expanded.
body.expand[]stringEach itemMaximum length: 5000
body.metadataJSONOptionalSet of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
body.metadata (anyOf 1)objectAlternativeAdditional keys: see wildcard field
body.metadata (anyOf 1).*stringAdditional keys
body.metadata (anyOf 2)stringAlternativeOne of:
body.shipping_detailsJSONOptionalShipping information for this payment.
body.shipping_details (anyOf 1)objectAlternative
body.shipping_details (anyOf 1).addressobjectOptional
body.shipping_details (anyOf 1).address.citystringOptionalMaximum length: 5000
body.shipping_details (anyOf 1).address.countrystringOptionalMaximum length: 5000
body.shipping_details (anyOf 1).address.line1stringOptionalMaximum length: 5000
body.shipping_details (anyOf 1).address.line2stringOptionalMaximum length: 5000
body.shipping_details (anyOf 1).address.postal_codestringOptionalMaximum length: 5000
body.shipping_details (anyOf 1).address.statestringOptionalMaximum length: 5000
body.shipping_details (anyOf 1).namestringOptionalMaximum length: 5000
body.shipping_details (anyOf 1).phonestringOptional
body.shipping_details (anyOf 2)stringAlternativeOne of:

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Report a refund — response body

Referenced models: Report a refund — response body

703 more schemas are linked from the tables above, on the schema pages.

Report a refund — response body
FieldTypePresenceDescription and constraints
$objectRootA Payment Record is a resource that allows you to represent payments that occur on- or off-Stripe.
For example, you can create a Payment Record to model a payment made on a different payment processor,
in order to mark an Invoice as paid and a Subscription as active. Payment Records consist of one or
more Payment Attempt Records, which represent individual attempts made on a payment network.
amountModelRequired within parentExpand Report a refund — response body — amount
amount_authorizedModelRequired within parentExpand Report a refund — response body — amount
amount_canceledModelRequired within parentExpand Report a refund — response body — amount
amount_failedModelRequired within parentExpand Report a refund — response body — amount
amount_guaranteedModelRequired within parentExpand Report a refund — response body — amount
amount_refundedModelRequired within parentExpand Report a refund — response body — amount
amount_requestedModelRequired within parentExpand Report a refund — response body — amount
applicationJSONOptional
application (anyOf 1)stringAlternativeID of the Connect application that created the PaymentRecord.
Maximum length: 5000
application (anyOf 2)nullAlternative
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
customer_detailsJSONOptional
customer_details (anyOf 1)JSONAlternativeCustomer information for this payment.
customer_details (anyOf 1) (anyOf 1)ModelAlternativeExpand Report a refund — response body — customer details Customer information for this payment Information about the customer for this payment
customer_details (anyOf 2)nullAlternative
customer_presenceJSONOptional
customer_presence (anyOf 1)stringAlternativeIndicates whether the customer was present in your checkout flow during this payment.
Known values: off_session, on_session
customer_presence (anyOf 2)nullAlternative
descriptionJSONOptional
description (anyOf 1)stringAlternativeAn arbitrary string attached to the object. Often useful for displaying to users.
Maximum length: 5000
description (anyOf 2)nullAlternative
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
latest_payment_attempt_recordJSONOptional
latest_payment_attempt_record (anyOf 1)stringAlternativeID of the latest Payment Attempt Record attached to this Payment Record.
Maximum length: 5000
latest_payment_attempt_record (anyOf 2)nullAlternative
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
metadataobjectRequired within parentSet of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Additional keys: see wildcard field
metadata.*stringAdditional keysMaximum length: 500
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: payment_record
payment_method_detailsJSONOptional
payment_method_details (anyOf 1)JSONAlternativeInformation about the Payment Method debited for this payment.
payment_method_details (anyOf 1) (anyOf 1)ModelAlternativeExpand Report a refund — response body — payment method details value ach credit transfer, ach debit, acss debit, affirm, afterpay clearpay, alipay, alma, amazon pay, au becs debit, bacs debit, bancontact, billie, billing details, bizum, blik, boleto, card, card present, cashapp, crypto, custom, customer balance, eps, fpx, giropay, grabpay, ideal, interac present, kakao pay, klarna, konbini, kr card, link, mb way, mobilepay, momo, multibanco, naver pay, nz bank account, oxxo, p24, pay by bank, payco, payment method, paynow, paypal, paypay, payto, pix, promptpay, revolut pay, samsung pay, satispay, scalapay, sepa debit, sequra, sofort, stripe account, sunbit, swish, twint, type, upi, us bank account, wechat, wechat pay, zip
payment_method_details (anyOf 2)nullAlternative
processor_detailsModelRequired within parentExpand Report a refund — response body — processor details
reported_bystringRequired within parentIndicates who reported the payment.
Known values: self, stripe
shipping_detailsJSONOptional
shipping_details (anyOf 1)JSONAlternativeShipping information for this payment.
shipping_details (anyOf 1) (anyOf 1)ModelAlternativeExpand Report a refund — response body — shipping details Shipping information for this payment address, name, phone
shipping_details (anyOf 2)nullAlternative

Referenced models: Report a refund — response body — amount, Report a refund — response body — customer details Customer information for this payment Information about the customer for this payment, Report a refund — response body — payment method details value ach credit transfer, ach debit, acss debit, affirm, afterpay clearpay, alipay, alma, amazon pay, au becs debit, bacs debit, bancontact, billie, billing details, bizum, blik, boleto, card, card present, cashapp, crypto, custom, customer balance, eps, fpx, giropay, grabpay, ideal, interac present, kakao pay, klarna, konbini, kr card, link, mb way, mobilepay, momo, multibanco, naver pay, nz bank account, oxxo, p24, pay by bank, payco, payment method, paynow, paypal, paypay, payto, pix, promptpay, revolut pay, samsung pay, satispay, scalapay, sepa debit, sequra, sofort, stripe account, sunbit, swish, twint, type, upi, us bank account, wechat, wechat pay, zip, Report a refund — response body — processor details, Report a refund — response body — shipping details Shipping information for this payment address, name, phone

Report a refund — response body — amount
FieldTypePresenceDescription and constraints
$objectRootA representation of an amount of money, consisting of an amount and a currency.
currencystringRequired within parentThree-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Format: currency
valueJSONRequired within parent
value (anyOf 1)integerAlternativeA positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
value (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Report a refund — response body — customer details Customer information for this payment Information about the customer for this payment
FieldTypePresenceDescription and constraints
$objectRootInformation about the customer for this payment.
customerJSONOptional
customer (anyOf 1)stringAlternativeID of the Stripe Customer associated with this payment.
Maximum length: 5000
customer (anyOf 2)nullAlternative
emailJSONOptional
email (anyOf 1)stringAlternativeThe customer's email address.
Maximum length: 5000
email (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe customer's name.
Maximum length: 5000
name (anyOf 2)nullAlternative
phoneJSONOptional
phone (anyOf 1)stringAlternativeThe customer's phone number.
Maximum length: 5000
phone (anyOf 2)nullAlternative
Report a refund — response body — processor details
FieldTypePresenceDescription and constraints
$objectRootProcessor information associated with this payment.
customModelOptionalExpand Report a refund — response body — processor details custom
typestringRequired within parentThe processor used for this payment attempt.
Known values: custom

Referenced models: Report a refund — response body — processor details custom

Create a Payment Method — response body — zip
FieldTypePresenceDescription and constraints
$objectRoot
Create a Payment Method — response body — blik
FieldTypePresenceDescription and constraints
$objectRoot
buyer_idJSONOptional
buyer_id (anyOf 1)stringAlternativeA unique and immutable identifier assigned by BLIK to every buyer.
Maximum length: 5000
buyer_id (anyOf 2)nullAlternative

SDK function policy ID: stripe.postpaymentrecordsidreportpaymentattemptinformational. Catalog operation: PostPaymentRecordsIdReportPaymentAttemptInformational. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Pinned headers: {"Stripe-Version": "2026-09-30.endive"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.