Skip to content

Square: Submit Evidence

Square disputes.submitEvidence: arguments, response, policy and SDK examples.

← Disputes operations · Get started

Operation square.submitevidence

Provider route: POST /v2/disputes/{dispute_id}/submit-evidence. Alter supplies the connection’s credentials and routing.

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

import { App } from "@alter-ai/sdk";
import { SquareIntegration } from "@alter-ai/square";
async function execute(input: Parameters<SquareIntegration["disputes"]["submitEvidence"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new SquareIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.disputes.submitEvidence(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_square import SquareIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = SquareIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.disputes.submit_evidence(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.dispute_idstringRequired within parent

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Submit Evidence — response body

Referenced models: Submit Evidence — response body

1 more schema is linked from the tables above, on the schema pages.

Submit Evidence — response body
FieldTypePresenceDescription and constraints
$objectRootDefines the fields in a `SubmitEvidence` response.
disputeModelOptionalExpand Accept Dispute — response body — dispute
The `Dispute` for which evidence was submitted.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Accept Dispute — response body — dispute, Get Shift — response body — errors item

Accept Dispute — response body — dispute
FieldTypePresenceDescription and constraints
$objectRootRepresents a [dispute](https://developer.squareup.com/docs/disputes-api/overview) a cardholder initiated with their bank.
amount_moneyJSONOptional
amount_money (anyOf 1)ModelAlternativeExpand Pay Order — response body — order total money
The disputed amount, which can be less than the total transaction amount.
For instance, if multiple items were purchased but the cardholder only initiates a dispute over some of the items.
amount_money (anyOf 2)nullAlternative
brand_dispute_idJSONOptional
brand_dispute_id (anyOf 1)stringAlternativeThe ID of the dispute in the card brand system, generated by the card brand.
Maximum length: 40
Minimum length: 1
brand_dispute_id (anyOf 2)nullAlternative
card_brandJSONOptional
card_brand (anyOf 1)stringAlternativeIndicates a card's brand, such as `VISA` or `MASTERCARD`.
The card brand used in the disputed payment.
See [CardBrand](#type-cardbrand) for possible values
Known values: OTHER_BRAND, VISA, MASTERCARD, AMERICAN_EXPRESS, DISCOVER, DISCOVER_DINERS, JCB, CHINA_UNIONPAY, SQUARE_GIFT_CARD, SQUARE_CAPITAL_CARD, INTERAC, EFTPOS, FELICA, EBT, QUICPAY, ID, TRANSPORTATION_IC, CARNET
card_brand (anyOf 2)nullAlternative
created_atstringOptionalThe timestamp when the dispute was created, in RFC 3339 format.
Maximum length: 40
Minimum length: 1
Read only: true
dispute_idJSONOptional
dispute_id (anyOf 1)stringAlternativeThe unique ID for this `Dispute`, generated by Square.
Maximum length: 40
Minimum length: 1
dispute_id (anyOf 2)nullAlternative
disputed_paymentJSONOptional
disputed_payment (anyOf 1)ModelAlternativeExpand Accept Dispute — response body — dispute disputed payment The payment the cardholder disputed
The payment challenged in this dispute.
disputed_payment (anyOf 2)nullAlternative
due_atJSONOptional
due_at (anyOf 1)stringAlternativeThe deadline by which the seller must respond to the dispute, in [RFC 3339 format](https://developer.squareup.com/docs/build-basics/common-data-types/working-with-dates).
Maximum length: 40
Minimum length: 1
due_at (anyOf 2)nullAlternative
evidence_idsJSONOptional
evidence_ids (anyOf 1)arrayAlternativeThe IDs of the evidence associated with the dispute.
evidence_ids (anyOf 1)[]stringEach item
evidence_ids (anyOf 2)nullAlternative
idstringOptionalThe unique ID for this `Dispute`, generated by Square.
Maximum length: 40
Minimum length: 1
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe ID of the location where the dispute originated.
Maximum length: 40
Minimum length: 1
location_id (anyOf 2)nullAlternative
reasonJSONOptional
reason (anyOf 1)stringAlternativeThe list of possible reasons why a cardholder might initiate a
dispute with their bank.
The reason why the cardholder initiated the dispute.
See [DisputeReason](#type-disputereason) for possible values
Known values: AMOUNT_DIFFERS, CANCELLED, DUPLICATE, NO_KNOWLEDGE, NOT_AS_DESCRIBED, NOT_RECEIVED, PAID_BY_OTHER_MEANS, CUSTOMER_REQUESTS_CREDIT, EMV_LIABILITY_SHIFT
reason (anyOf 2)nullAlternative
reported_atJSONOptional
reported_at (anyOf 1)stringAlternativeThe timestamp when the dispute was reported, in RFC 3339 format.
Maximum length: 40
Minimum length: 1
reported_at (anyOf 2)nullAlternative
reported_dateJSONOptional
reported_date (anyOf 1)stringAlternativeThe timestamp when the dispute was reported, in RFC 3339 format.
Maximum length: 40
Minimum length: 1
reported_date (anyOf 2)nullAlternative
stateJSONOptional
state (anyOf 1)stringAlternativeThe list of possible dispute states.
The current state of this dispute.
See [DisputeState](#type-disputestate) for possible values
Known values: INQUIRY_EVIDENCE_REQUIRED, INQUIRY_PROCESSING, INQUIRY_CLOSED, EVIDENCE_REQUIRED, PROCESSING, WON, LOST, ACCEPTED
state (anyOf 2)nullAlternative
updated_atstringOptionalThe timestamp when the dispute was last updated, in RFC 3339 format.
Maximum length: 40
Minimum length: 1
Read only: true
versionJSONOptional
version (anyOf 1)integerAlternativeThe current version of the `Dispute`.
version (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Accept Dispute — response body — dispute disputed payment The payment the cardholder disputed, Pay Order — response body — order total money

Get Shift — response body — errors item
FieldTypePresenceDescription and constraints
$objectRootRepresents an error encountered during a request to the Connect API.

See [Handling errors](https://developer.squareup.com/docs/build-basics/handling-errors) for more information.
categorystringRequired within parentIndicates which high-level category of error has occurred during a
request to the Connect API.
The high-level category for the error.
See [ErrorCategory](#type-errorcategory) for possible values
Known values: API_ERROR, AUTHENTICATION_ERROR, INVALID_REQUEST_ERROR, RATE_LIMIT_ERROR, PAYMENT_METHOD_ERROR, REFUND_ERROR, MERCHANT_SUBSCRIPTION_ERROR, EXTERNAL_VENDOR_ERROR
codeModelRequired within parentExpand Get Shift — response body — errors item code
The specific code of the error.
See [ErrorCode](#type-errorcode) for possible values
detailstringOptionalA human-readable description of the error for debugging purposes.
fieldstringOptionalThe name of the field provided in the original request (if any) that
the error pertains to.

Referenced models: Get Shift — response body — errors item code

Accept Dispute — response body — dispute disputed payment The payment the cardholder disputed
FieldTypePresenceDescription and constraints
$objectRootThe payment the cardholder disputed.
payment_idJSONOptional
payment_id (anyOf 1)stringAlternativeSquare-generated unique ID of the payment being disputed.
Maximum length: 192
Minimum length: 1
payment_id (anyOf 2)nullAlternative
Pay Order — response body — order total money
FieldTypePresenceDescription and constraints
$objectRootRepresents an amount of money. `Money` fields can be signed or unsigned.
Fields that do not explicitly define whether they are signed or unsigned are
considered unsigned and can only hold positive amounts. For signed fields, the
sign of the value indicates the purpose of the money transfer. See
[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)
for more information.
amountJSONOptional
amount (anyOf 1)JSONAlternative
amount (anyOf 1) (anyOf 1)integerAlternativeThe amount of money, in the smallest denomination of the currency
indicated by `currency`. For example, when `currency` is `USD`, `amount` is
in cents. Monetary amounts can be positive or negative. See the specific
field description to determine the meaning of the sign in a particular case.
Format: int64
amount (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
amount (anyOf 2)nullAlternative
currencyJSONOptional
currency (anyOf 1)ModelAlternativeExpand Create Location — response body — location currency
The type of currency, in __ISO 4217 format__. For example, the currency
code for US dollars is `USD`.

See [Currency](entity:Currency) for possible values.
See [Currency](#type-currency) for possible values
currency (anyOf 2)nullAlternative

Referenced models: Create Location — response body — location currency

Create Location — response body — location currency
FieldTypePresenceDescription and constraints
$stringRootIndicates the associated currency for an amount of money. Values correspond
to [ISO 4217](https://wikipedia.org/wiki/ISO_4217).
Known values: UNKNOWN_CURRENCY, AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYR, BZD, CAD, CDF, CHE, CHF, CHW, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LTL, LVL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MXV, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SLE, SOS, SRD, SSP, STD, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, USN, USS, UYI, UYU, UZS, VEF, VND, VUV, WST, XAF, XAG, XAU, XBA, XBB, XBC, XBD, XCD, XDR, XOF, XPD, XPF, XPT, XTS, XXX, YER, ZAR, ZMK, ZMW, BTC, XUS

SDK function policy ID: square.submitevidence. Catalog operation: SubmitEvidence. 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.

Required provider scopes: ["DISPUTES_WRITE"]

Pinned headers: {"Square-Version": "2026-11-18"}

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 how our website, product, and documentation are used.

Performance diagnostics

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

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

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