Square: Disputes schemas
16 Square schemas with complete fields and constraints.
← Disputes operations · All schemas
Accept Dispute — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields in an `AcceptDispute` response. |
dispute | Model | Optional | Expand Accept Dispute — response body — dispute Details about the accepted dispute. |
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
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 |
Create Dispute Evidence File — request body — body request
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the parameters for a `CreateDisputeEvidenceFile` request. |
content_type | string | Optional | The 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_type | string | Optional | The 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_key | string | Required within parent | A 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields in a `CreateDisputeEvidenceFile` response. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
evidence | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the parameters for a `CreateDisputeEvidenceText` request. |
evidence_text | string | Required within parent | The evidence string. Maximum length: 500 Minimum length: 1 |
evidence_type | string | Optional | The 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_key | string | Required within parent | A 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields in a `CreateDisputeEvidenceText` response. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
evidence | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields in a `DeleteDisputeEvidence` response. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Get Shift — response body — errors item
List Dispute Evidence — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields in a `ListDisputeEvidence` response. |
cursor | string | Optional | The 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). |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
evidence | array | Optional | The list of evidence previously uploaded to the specified dispute. |
evidence[] | Model | Each item | Expand Retrieve Dispute Evidence — response body — evidence |
Referenced models: Retrieve Dispute Evidence — response body — evidence, Get Shift — response body — errors item
List Disputes — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines fields in a `ListDisputes` response. |
cursor | string | Optional | The 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). |
disputes | array | Optional | The list of disputes. |
disputes[] | Model | Each item | Expand Accept Dispute — response body — dispute |
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
Retrieve Dispute Evidence — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields in a `RetrieveDisputeEvidence` response. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
evidence | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
dispute_id | JSON | Optional | |
dispute_id (anyOf 1) | string | Alternative | The ID of the dispute the evidence is associated with. Maximum length: 40 Minimum length: 1 |
dispute_id (anyOf 2) | null | Alternative | |
evidence_file | JSON | Optional | |
evidence_file (anyOf 1) | Model | Alternative | Expand Retrieve Dispute Evidence — response body — evidence evidence file A file to be uploaded as dispute evidence Image, PDF, TXT |
evidence_file (anyOf 2) | null | Alternative | |
evidence_id | JSON | Optional | |
evidence_id (anyOf 1) | string | Alternative | The Square-generated ID of the evidence. Maximum length: 40 Minimum length: 1 |
evidence_id (anyOf 2) | null | Alternative | |
evidence_text | JSON | Optional | |
evidence_text (anyOf 1) | string | Alternative | Raw text Maximum length: 500 Minimum length: 1 |
evidence_text (anyOf 2) | null | Alternative | |
evidence_type | JSON | Optional | |
evidence_type (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
id | string | Optional | The Square-generated ID of the evidence. Maximum length: 40 Minimum length: 1 |
uploaded_at | JSON | Optional | |
uploaded_at (anyOf 1) | string | Alternative | The time when the evidence was uploaded, in RFC 3339 format. Maximum length: 40 Minimum length: 1 |
uploaded_at (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A file to be uploaded as dispute evidence. |
filename | JSON | Optional | |
filename (anyOf 1) | string | Alternative | The file name including the file extension. For example: "receipt.tiff". Maximum length: 40 Minimum length: 1 |
filename (anyOf 2) | null | Alternative | |
filetype | JSON | Optional | |
filetype (anyOf 1) | string | Alternative | Dispute 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) | null | Alternative |
Retrieve Dispute Evidence — response body — evidence evidence type The type of the dispute evidence
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines fields in a `RetrieveDispute` response. |
dispute | Model | Optional | Expand Accept Dispute — response body — dispute Details about the requested `Dispute`. |
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
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