Skip to content

Square: Disputes schemas

16 Square schemas with complete fields and constraints.

← Disputes operations · All schemas

Accept Dispute — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields in an `AcceptDispute` response.
disputeModelOptionalExpand Accept Dispute — response body — dispute
Details about the accepted dispute.
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

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

Create Dispute Evidence File — request body — body request

FieldTypePresenceDescription and constraints
$objectRootDefines the parameters for a `CreateDisputeEvidenceFile` request.
content_typestringOptionalThe MIME type of the uploaded file.
The type can be image/heic, image/heif, image/jpeg, application/pdf, image/png, or image/tiff.
Maximum length: 40
Minimum length: 1
evidence_typestringOptionalThe type of the dispute evidence.
The type of evidence you are uploading.
See [DisputeEvidenceType](#type-disputeevidencetype) for possible values
One of: GENERIC_EVIDENCE, ONLINE_OR_APP_ACCESS_LOG, AUTHORIZATION_DOCUMENTATION, CANCELLATION_OR_REFUND_DOCUMENTATION, CARDHOLDER_COMMUNICATION, CARDHOLDER_INFORMATION, PURCHASE_ACKNOWLEDGEMENT, DUPLICATE_CHARGE_DOCUMENTATION, PRODUCT_OR_SERVICE_DESCRIPTION, RECEIPT, SERVICE_RECEIVED_DOCUMENTATION, PROOF_OF_DELIVERY_DOCUMENTATION, RELATED_TRANSACTION_DOCUMENTATION, REBUTTAL_EXPLANATION, TRACKING_NUMBER
idempotency_keystringRequired within parentA unique key identifying the request. For more information, see [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency).
Maximum length: 45
Minimum length: 1

Create Dispute Evidence File — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields in a `CreateDisputeEvidenceFile` response.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
evidenceModelOptionalExpand Retrieve Dispute Evidence — response body — evidence
The metadata of the newly uploaded dispute evidence.

Referenced models: Retrieve Dispute Evidence — response body — evidence, Get Shift — response body — errors item

Create Dispute Evidence Text — request body — body

FieldTypePresenceDescription and constraints
$objectRootDefines the parameters for a `CreateDisputeEvidenceText` request.
evidence_textstringRequired within parentThe evidence string.
Maximum length: 500
Minimum length: 1
evidence_typestringOptionalThe type of the dispute evidence.
The type of evidence you are uploading.
See [DisputeEvidenceType](#type-disputeevidencetype) for possible values
One of: GENERIC_EVIDENCE, ONLINE_OR_APP_ACCESS_LOG, AUTHORIZATION_DOCUMENTATION, CANCELLATION_OR_REFUND_DOCUMENTATION, CARDHOLDER_COMMUNICATION, CARDHOLDER_INFORMATION, PURCHASE_ACKNOWLEDGEMENT, DUPLICATE_CHARGE_DOCUMENTATION, PRODUCT_OR_SERVICE_DESCRIPTION, RECEIPT, SERVICE_RECEIVED_DOCUMENTATION, PROOF_OF_DELIVERY_DOCUMENTATION, RELATED_TRANSACTION_DOCUMENTATION, REBUTTAL_EXPLANATION, TRACKING_NUMBER
idempotency_keystringRequired within parentA unique key identifying the request. For more information, see [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency).
Maximum length: 45
Minimum length: 1

Create Dispute Evidence Text — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields in a `CreateDisputeEvidenceText` response.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
evidenceModelOptionalExpand Retrieve Dispute Evidence — response body — evidence
The newly uploaded dispute evidence metadata.

Referenced models: Retrieve Dispute Evidence — response body — evidence, Get Shift — response body — errors item

Delete Dispute Evidence — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields in a `DeleteDisputeEvidence` response.
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item

Referenced models: Get Shift — response body — errors item

List Dispute Evidence — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields in a `ListDisputeEvidence` response.
cursorstringOptionalThe pagination cursor to be used in a subsequent request.
If unset, this is the final response. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).
errorsarrayOptionalInformation about errors encountered during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
evidencearrayOptionalThe list of evidence previously uploaded to the specified dispute.
evidence[]ModelEach itemExpand Retrieve Dispute Evidence — response body — evidence

Referenced models: Retrieve Dispute Evidence — response body — evidence, Get Shift — response body — errors item

List Disputes — response body

FieldTypePresenceDescription and constraints
$objectRootDefines fields in a `ListDisputes` response.
cursorstringOptionalThe pagination cursor to be used in a subsequent request.
If unset, this is the final response. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).
disputesarrayOptionalThe list of disputes.
disputes[]ModelEach itemExpand Accept Dispute — response body — dispute
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

Retrieve Dispute Evidence — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields in a `RetrieveDisputeEvidence` response.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
evidenceModelOptionalExpand Retrieve Dispute Evidence — response body — evidence
Metadata about the dispute evidence file.

Referenced models: Retrieve Dispute Evidence — response body — evidence, Get Shift — response body — errors item

Retrieve Dispute Evidence — response body — evidence

FieldTypePresenceDescription and constraints
$objectRoot
dispute_idJSONOptional
dispute_id (anyOf 1)stringAlternativeThe ID of the dispute the evidence is associated with.
Maximum length: 40
Minimum length: 1
dispute_id (anyOf 2)nullAlternative
evidence_fileJSONOptional
evidence_file (anyOf 1)ModelAlternativeExpand Retrieve Dispute Evidence — response body — evidence evidence file A file to be uploaded as dispute evidence
Image, PDF, TXT
evidence_file (anyOf 2)nullAlternative
evidence_idJSONOptional
evidence_id (anyOf 1)stringAlternativeThe Square-generated ID of the evidence.
Maximum length: 40
Minimum length: 1
evidence_id (anyOf 2)nullAlternative
evidence_textJSONOptional
evidence_text (anyOf 1)stringAlternativeRaw text
Maximum length: 500
Minimum length: 1
evidence_text (anyOf 2)nullAlternative
evidence_typeJSONOptional
evidence_type (anyOf 1)ModelAlternativeExpand Retrieve Dispute Evidence — response body — evidence evidence type The type of the dispute evidence
The type of the evidence.
See [DisputeEvidenceType](#type-disputeevidencetype) for possible values
evidence_type (anyOf 2)nullAlternative
idstringOptionalThe Square-generated ID of the evidence.
Maximum length: 40
Minimum length: 1
uploaded_atJSONOptional
uploaded_at (anyOf 1)stringAlternativeThe time when the evidence was uploaded, in RFC 3339 format.
Maximum length: 40
Minimum length: 1
uploaded_at (anyOf 2)nullAlternative

Referenced models: Retrieve Dispute Evidence — response body — evidence evidence file A file to be uploaded as dispute evidence, Retrieve Dispute Evidence — response body — evidence evidence type The type of the dispute evidence

Retrieve Dispute Evidence — response body — evidence evidence file A file to be uploaded as dispute evidence

FieldTypePresenceDescription and constraints
$objectRootA file to be uploaded as dispute evidence.
filenameJSONOptional
filename (anyOf 1)stringAlternativeThe file name including the file extension. For example: "receipt.tiff".
Maximum length: 40
Minimum length: 1
filename (anyOf 2)nullAlternative
filetypeJSONOptional
filetype (anyOf 1)stringAlternativeDispute evidence files must be application/pdf, image/heic, image/heif, image/jpeg, image/png, or image/tiff formats.
Maximum length: 40
Minimum length: 1
filetype (anyOf 2)nullAlternative

Retrieve Dispute Evidence — response body — evidence evidence type The type of the dispute evidence

FieldTypePresenceDescription and constraints
$stringRootThe type of the dispute evidence.
Known values: GENERIC_EVIDENCE, ONLINE_OR_APP_ACCESS_LOG, AUTHORIZATION_DOCUMENTATION, CANCELLATION_OR_REFUND_DOCUMENTATION, CARDHOLDER_COMMUNICATION, CARDHOLDER_INFORMATION, PURCHASE_ACKNOWLEDGEMENT, DUPLICATE_CHARGE_DOCUMENTATION, PRODUCT_OR_SERVICE_DESCRIPTION, RECEIPT, SERVICE_RECEIVED_DOCUMENTATION, PROOF_OF_DELIVERY_DOCUMENTATION, RELATED_TRANSACTION_DOCUMENTATION, REBUTTAL_EXPLANATION, TRACKING_NUMBER

Retrieve Dispute — response body

FieldTypePresenceDescription and constraints
$objectRootDefines fields in a `RetrieveDispute` response.
disputeModelOptionalExpand Accept Dispute — response body — dispute
Details about the requested `Dispute`.
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

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

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.