Square Payments API is one of 45 APIs that Square publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.
Tagged areas include Payments. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and an AsyncAPI specification.
This API exposes
7 operations
across 5 paths,
and defines 45 schemas.
It is described by OpenAPI 3.2.0, at version 2.0.
Requests are made against a single base URL, https://connect.squareup.com.
The identity and technical contract details declared by the specification.
Currency
string
Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://wikipedia.org/wiki/ISO4217).
CardBrand
string
Indicates a card's brand, such as VISA or MASTERCARD.
GetPaymentResponse
object
Defines the response returned by [GetPayment](api-endpoint:Payments-GetPayment).
2 properties
ExternalPaymentDetails
object
Stores details about an external payment. Contains only non-confidential information. For more information, see [Take External Payments](https://developer.squa…
4 properties
2 required
ProcessingFee
object
Represents the Square processing fee.
3 properties
UpdatePaymentRequest
object
Describes a request to update a payment using [UpdatePayment](api-endpoint:Payments-UpdatePayment).
2 properties
1 required
CardType
string
Indicates a card's type, such as CREDIT or DEBIT.
CompletePaymentResponse
object
Defines the response returned by[CompletePayment](api-endpoint:Payments-CompletePayment).
2 properties
CreatePaymentResponse
object
Defines the response returned by [CreatePayment](api-endpoint:Payments-CreatePayment). If there are errors processing the request, the payment field might not…
2 properties
ClearpayDetails
object
Additional details about Clearpay payments.
1 property
CardPrepaidType
string
Indicates a card's prepaid type, such as NOTPREPAID or PREPAID.
CancelPaymentByIdempotencyKeyRequest
object
Describes a request to cancel a payment using [CancelPaymentByIdempotencyKey](api-endpoint:Payments-CancelPaymentByIdempotencyKey).
1 property
1 required
BuyNowPayLaterDetails
object
Additional details about a Buy Now Pay Later payment type.
3 properties
Country
string
Indicates the country associated with another entity, such as a business. Values are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/count…
BankAccountPaymentDetails
object
Additional details about BANKACCOUNT type payments.
8 properties
CustomerDetails
object
Details about the customer making the payment.
2 properties
Money
object
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…
2 properties
ApplicationDetailsExternalSquareProduct
string
A list of products to return to external callers.
RiskEvaluation
object
Represents fraud risk information for the associated payment. When you take a payment through Square's Payments API (using the CreatePayment endpoint), Square…
2 properties
1 required
AfterpayDetails
object
Additional details about Afterpay payments.
1 property
UpdatePaymentResponse
object
Defines the response returned by [UpdatePayment](api-endpoint:Payments-UpdatePayment).
2 properties
CashPaymentDetails
object
Stores details about a cash payment. Contains only non-confidential information. For more information, see [Take Cash Payments](https://developer.squareup.com/…
2 properties
1 required
CreatePaymentRequest
object
Describes a request to create a payment using [CreatePayment](api-endpoint:Payments-CreatePayment).
25 properties
2 required
Payment
object
Represents a payment processed by the Square API.
44 properties
CancelPaymentByIdempotencyKeyResponse
object
Defines the response returned by [CancelPaymentByIdempotencyKey](api-endpoint:Payments-CancelPaymentByIdempotencyKey). On success, errors is empty.
1 property
Address
object
Represents a postal address in a country. For more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addr…
14 properties
CashAppDetails
object
Additional details about WALLET type payments with the brand of CASHAPP.
3 properties
ACHDetails
object
ACH-specific details about BANKACCOUNT type payments with the transfertype of ACH.
3 properties
SquareAccountDetails
object
Additional details about Square Account payments.
2 properties
CardCoBrand
string
Indicates the brand for a co-branded card.
CancelPaymentResponse
object
Defines the response returned by [CancelPayment](api-endpoint:Payments-CancelPayment).
2 properties
ApplicationDetails
object
Details about the application that took the payment.
2 properties
RiskEvaluationRiskLevel
string
Error
object
Represents an error encountered during a request to the Connect API. See [Handling errors](https://developer.squareup.com/docs/build-basics/handling-errors) fo…
4 properties
2 required
ErrorCode
string
Indicates the specific error that occurred during a request to a Square API.
OfflinePaymentDetails
object
Details specific to offline payments.
1 property
DeviceDetails
object
Details about the device that took the payment.
3 properties
Card
object
Represents the payment details of a card to be used for payments. These details are determined by the payment token generated by Web Payments SDK.
17 properties
ListPaymentsResponse
object
Defines the response returned by [ListPayments](api-endpoint:Payments-ListPayments).
3 properties
CardPaymentTimeline
object
The timeline for card payments.
3 properties
ErrorCategory
string
Indicates which high-level category of error has occurred during a request to the Connect API.
CompletePaymentRequest
object
Describes a request to complete (capture) a payment using [CompletePayment](api-endpoint:Payments-CompletePayment). By default, payments are set to autocomplet…
1 property
CardPaymentDetails
object
Reflects the current status of a card payment. Contains only non-confidential information.
16 properties
DigitalWalletDetails
object
Additional details about WALLET type payments. Contains only non-confidential information.
3 properties
The full machine-readable OpenAPI contract behind this narrative.
Other APIs Square publishes across the network.