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.
Call through Alter
Section titled “Call through Alter”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 osfrom alter_sdk import Appfrom 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()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.dispute_id | string | Required within parent |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand Submit Evidence — response body |
Referenced models: Submit Evidence — response body
Schemas
Section titled “Schemas”1 more schema is linked from the tables above, on the schema pages.
Submit Evidence — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields in a `SubmitEvidence` response. |
dispute | Model | Optional | Expand Accept Dispute — response body — dispute The `Dispute` for which evidence was submitted. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Accept Dispute — response body — dispute, Get Shift — response body — errors item
Accept Dispute — response body — dispute
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a [dispute](https://developer.squareup.com/docs/disputes-api/overview) a cardholder initiated with their bank. |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
brand_dispute_id | JSON | Optional | |
brand_dispute_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
card_brand | JSON | Optional | |
card_brand (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
created_at | string | Optional | The timestamp when the dispute was created, in RFC 3339 format. Maximum length: 40 Minimum length: 1 Read only: true |
dispute_id | JSON | Optional | |
dispute_id (anyOf 1) | string | Alternative | The unique ID for this `Dispute`, generated by Square. Maximum length: 40 Minimum length: 1 |
dispute_id (anyOf 2) | null | Alternative | |
disputed_payment | JSON | Optional | |
disputed_payment (anyOf 1) | Model | Alternative | Expand Accept Dispute — response body — dispute disputed payment The payment the cardholder disputed The payment challenged in this dispute. |
disputed_payment (anyOf 2) | null | Alternative | |
due_at | JSON | Optional | |
due_at (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
evidence_ids | JSON | Optional | |
evidence_ids (anyOf 1) | array | Alternative | The IDs of the evidence associated with the dispute. |
evidence_ids (anyOf 1)[] | string | Each item | |
evidence_ids (anyOf 2) | null | Alternative | |
id | string | Optional | The unique ID for this `Dispute`, generated by Square. Maximum length: 40 Minimum length: 1 |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the location where the dispute originated. Maximum length: 40 Minimum length: 1 |
location_id (anyOf 2) | null | Alternative | |
reason | JSON | Optional | |
reason (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
reported_at | JSON | Optional | |
reported_at (anyOf 1) | string | Alternative | The timestamp when the dispute was reported, in RFC 3339 format. Maximum length: 40 Minimum length: 1 |
reported_at (anyOf 2) | null | Alternative | |
reported_date | JSON | Optional | |
reported_date (anyOf 1) | string | Alternative | The timestamp when the dispute was reported, in RFC 3339 format. Maximum length: 40 Minimum length: 1 |
reported_date (anyOf 2) | null | Alternative | |
state | JSON | Optional | |
state (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
updated_at | string | Optional | The timestamp when the dispute was last updated, in RFC 3339 format. Maximum length: 40 Minimum length: 1 Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | The current version of the `Dispute`. |
version (anyOf 2) | string | Alternative | Pattern: ^-?[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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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. |
category | string | Required within parent | Indicates 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 |
code | Model | Required within parent | Expand Get Shift — response body — errors item code The specific code of the error. See [ErrorCode](#type-errorcode) for possible values |
detail | string | Optional | A human-readable description of the error for debugging purposes. |
field | string | Optional | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The payment the cardholder disputed. |
payment_id | JSON | Optional | |
payment_id (anyOf 1) | string | Alternative | Square-generated unique ID of the payment being disputed. Maximum length: 192 Minimum length: 1 |
payment_id (anyOf 2) | null | Alternative |
Pay Order — response body — order total money
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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. |
amount | JSON | Optional | |
amount (anyOf 1) | JSON | Alternative | |
amount (anyOf 1) (anyOf 1) | integer | Alternative | The 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) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
amount (anyOf 2) | null | Alternative | |
currency | JSON | Optional | |
currency (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative |
Referenced models: Create Location — response body — location currency
Create Location — response body — location currency
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | Indicates 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 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”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"}