Skip to content

Stripe: Create a dispute

Stripe issuing.postIssuingDisputes: arguments, response, policy and SDK examples.

← Issuing operations · Get started

Operation stripe.postissuingdisputes

Provider route: POST /v1/issuing/disputes. 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["issuing"]["postIssuingDisputes"]>[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.issuing.postIssuingDisputes(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.issuing.post_issuing_disputes(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
headersobjectOptionalAdditional keys: not allowed
headers.Idempotency-KeystringOptionalMinimum length: 1
Maximum length: 255
bodyobjectOptionalAdditional keys: not allowed
body.amountintegerOptionalThe dispute amount in the card’s currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). If not set, defaults to the full transaction amount.
body.evidenceModelOptionalExpand Create a dispute — request body — body evidence
body.expandarrayOptionalSpecifies which fields in the response should be expanded.
body.expand[]stringEach itemMaximum length: 5000
body.metadataobjectOptionalSet 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`.
Additional keys: see wildcard field
body.metadata.*stringAdditional keys
body.transactionstringOptionalThe ID of the issuing transaction to create a dispute for. For transaction on Treasury FinancialAccounts, use `treasury.received_debit`.
Maximum length: 5000
body.treasuryobjectOptionalParams for disputes related to Treasury FinancialAccounts
body.treasury.received_debitstringRequired within parentMaximum length: 5000

Referenced models: Create a dispute — request body — body evidence

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Create a dispute — response body

Referenced models: Create a dispute — response body

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

Create a dispute — response body
FieldTypePresenceDescription and constraints
$objectRootAs a [card issuer](https://docs.stripe.com/issuing), you can dispute transactions that the cardholder does not recognize, suspects to be fraudulent, or has other issues with.

Related guide: [Issuing disputes](https://docs.stripe.com/issuing/purchases/disputes)
amountJSONRequired within parent
amount (anyOf 1)integerAlternativeDisputed amount in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Usually the amount of the `transaction`, but can differ (usually because of currency fluctuation).
amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
balance_transactionsJSONOptional
balance_transactions (anyOf 1)arrayAlternativeList of balance transactions associated with the dispute.
balance_transactions (anyOf 1)[]ModelEach itemExpand Retrieve a balance transaction — balance get Balance History Id — response body
balance_transactions (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]+)?$
currencystringRequired within parentThe currency the `transaction` was made in.
Format: currency
evidenceModelRequired within parentExpand Create a dispute — response body — evidence
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
loss_reasonstringOptionalThe enum that describes the dispute loss outcome. If the dispute is not lost, this field will be absent. New enum values may be added in the future, so be sure to handle unknown values.
Known values: cardholder_authentication_issuer_liability, eci5_token_transaction_with_tavv, excess_disputes_in_timeframe, has_not_met_the_minimum_dispute_amount_requirements, invalid_duplicate_dispute, invalid_incorrect_amount_dispute, invalid_no_authorization, invalid_use_of_disputes, merchandise_delivered_or_shipped, merchandise_or_service_as_described, not_cancelled, other, refund_issued, submitted_beyond_allowable_time_limit, transaction_3ds_required, transaction_approved_after_prior_fraud_dispute, transaction_authorized, transaction_electronically_read, transaction_qualifies_for_visa_easy_payment_service, transaction_unattended
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: issuing.dispute
statusstringRequired within parentCurrent status of the dispute.
Known values: expired, lost, submitted, unsubmitted, won
transactionJSONRequired within parentThe transaction being disputed.
transaction (anyOf 1)stringAlternativeMaximum length: 5000
transaction (anyOf 2)ModelAlternativeExpand Update a transaction — response body
treasuryJSONOptional
treasury (anyOf 1)JSONAlternative[Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](https://docs.stripe.com/api/treasury/financial_accounts)
treasury (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a dispute — response body — treasury value debit reversal, received debit
treasury (anyOf 2)nullAlternative

Referenced models: Retrieve a balance transaction — balance get Balance History Id — response body, Update a transaction — response body, Create a dispute — response body — evidence, Create a dispute — response body — treasury value debit reversal, received debit

Create a dispute — request body — body evidence
FieldTypePresenceDescription and constraints
$objectRootEvidence provided for the dispute.
canceledJSONOptional
canceled (anyOf 1)ModelAlternativeExpand Create a dispute — request body — body / evidence / canceled / product_type: , merchandise, service, return status: , merchant rejected, successful
canceled (anyOf 2)stringAlternativeOne of:
duplicateJSONOptional
duplicate (anyOf 1)ModelAlternativeExpand Create a dispute — request body — body evidence duplicate additional documentation, card statement, cash receipt, check image, explanation, original transaction
duplicate (anyOf 2)stringAlternativeOne of:
fraudulentJSONOptional
fraudulent (anyOf 1)objectAlternative
fraudulent (anyOf 1).additional_documentationJSONOptional
fraudulent (anyOf 1).additional_documentation (anyOf 1)stringAlternative
fraudulent (anyOf 1).additional_documentation (anyOf 2)stringAlternativeOne of:
fraudulent (anyOf 1).explanationJSONOptional
fraudulent (anyOf 1).explanation (anyOf 1)stringAlternativeMaximum length: 2500
fraudulent (anyOf 1).explanation (anyOf 2)stringAlternativeOne of:
fraudulent (anyOf 2)stringAlternativeOne of:
merchandise_not_as_describedJSONOptional
merchandise_not_as_described (anyOf 1)ModelAlternativeExpand Create a dispute — request body — body / evidence / merchandise_not_as_described / return_status: , merchant rejected, successful
merchandise_not_as_described (anyOf 2)stringAlternativeOne of:
no_valid_authorizationJSONOptional
no_valid_authorization (anyOf 1)objectAlternative
no_valid_authorization (anyOf 1).additional_documentationJSONOptional
no_valid_authorization (anyOf 1).additional_documentation (anyOf 1)stringAlternative
no_valid_authorization (anyOf 1).additional_documentation (anyOf 2)stringAlternativeOne of:
no_valid_authorization (anyOf 1).explanationJSONOptional
no_valid_authorization (anyOf 1).explanation (anyOf 1)stringAlternativeMaximum length: 2500
no_valid_authorization (anyOf 1).explanation (anyOf 2)stringAlternativeOne of:
no_valid_authorization (anyOf 2)stringAlternativeOne of:
not_receivedJSONOptional
not_received (anyOf 1)ModelAlternativeExpand Create a dispute — request body — body / evidence / not_received / product_type: , merchandise, service
not_received (anyOf 2)stringAlternativeOne of:
otherJSONOptional
other (anyOf 1)objectAlternative
other (anyOf 1).additional_documentationJSONOptional
other (anyOf 1).additional_documentation (anyOf 1)stringAlternative
other (anyOf 1).additional_documentation (anyOf 2)stringAlternativeOne of:
other (anyOf 1).explanationJSONOptional
other (anyOf 1).explanation (anyOf 1)stringAlternativeMaximum length: 2500
other (anyOf 1).explanation (anyOf 2)stringAlternativeOne of:
other (anyOf 1).product_descriptionJSONOptional
other (anyOf 1).product_description (anyOf 1)stringAlternativeMaximum length: 2500
other (anyOf 1).product_description (anyOf 2)stringAlternativeOne of:
other (anyOf 1).product_typestringOptionalOne of: , merchandise, service
other (anyOf 2)stringAlternativeOne of:
reasonstringOptionalOne of: canceled, duplicate, fraudulent, merchandise_not_as_described, no_valid_authorization, not_received, other, service_not_as_described
service_not_as_describedJSONOptional
service_not_as_described (anyOf 1)ModelAlternativeExpand Create a dispute — request body — body evidence service not as described additional documentation, canceled at, cancellation reason, explanation, received at
service_not_as_described (anyOf 2)stringAlternativeOne of:

Referenced models: Create a dispute — request body — body / evidence / canceled / product_type: , merchandise, service, return status: , merchant rejected, successful, Create a dispute — request body — body evidence duplicate additional documentation, card statement, cash receipt, check image, explanation, original transaction, Create a dispute — request body — body / evidence / merchandise_not_as_described / return_status: , merchant rejected, successful, Create a dispute — request body — body / evidence / not_received / product_type: , merchandise, service, Create a dispute — request body — body evidence service not as described additional documentation, canceled at, cancellation reason, explanation, received at

Create a cardholder — response body — company value tax id provided
FieldTypePresenceDescription and constraints
$objectRoot
tax_id_providedbooleanRequired within parentWhether the company's business ID number was provided.

SDK function policy ID: stripe.postissuingdisputes. Catalog operation: PostIssuingDisputes. 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.