Categorygithub.com/square/square-go-sdk
modulepackage
1.1.1
Repository: https://github.com/square/square-go-sdk.git
Documentation: pkg.go.dev

# README

Square Go Library

fern shield go shield

The Square Go library provides convenient access to the Square API from Go.

Requirements

This module requires Go version >= 1.18.

Installation

Run the following command to use the Square Go library in your module:

go get github.com/square/square-go-sdk

Usage

package main

import (
    "github.com/square/square-go-sdk"
    squareclient "github.com/square/square-go-sdk/client"
    "github.com/square/square-go-sdk/option"

    "context"
    "fmt"
)


func main() {
	client := squareclient.NewClient(
		option.WithToken("<YOUR_ACCESS_TOKEN>"),
	)
	
	response, err := client.Payments.Create(
		context.TODO(),
		&square.CreatePaymentRequest{
			IdempotencyKey: "4935a656-a929-4792-b97c-8848be85c27c",
			SourceID:       "CASH",
			AmountMoney: &square.Money{
				Amount:   square.Int64(100),
				Currency: square.CurrencyUsd.Ptr(),
			},
			TipMoney: &square.Money{
				Amount:   square.Int64(50),
				Currency: square.CurrencyUsd.Ptr(),
			},
			CashDetails: &square.CashPaymentDetails{
				BuyerSuppliedMoney: &square.Money{
					Amount:   square.Int64(200),
					Currency: square.CurrencyUsd.Ptr(),
				},
			},
		},
	)

	if err != nil {
		fmt.Println(err)
		return
	}

	fmt.Println(response.Payment)
}

Optional Parameters

This library models optional primitives and enum types as pointers. This is primarily meant to distinguish default zero values from explicit values (e.g. false for bool and "" for string). A collection of helper functions are provided to easily map a primitive or enum to its pointer-equivalent (e.g. square.String).

For example, consider the client.Payments.List endpoint usage below:

response, err := client.Payments.List(
    context.TODO(),
    &square.PaymentsListRequest{
        Total: square.Int64(100),
    },
)

Automatic Pagination

List endpoints are paginated. The SDK provides an iterator so that you can simply loop over the items:

ctx := context.TODO()
page, err := client.Payments.List(
    ctx,
    &square.PaymentsListRequest{
        Total: square.Int64(100),
    },
)
if err != nil {
    return nil, err
}
iter := page.Iterator()
for iter.Next(ctx) {
    payment := iter.Current()
    fmt.Printf("Got payment: %v\n", *payment.ID)
}
if err := iter.Err(); err != nil {
    // Handle the error!
}

You can also iterate page-by-page:

for page != nil {
    for _, payment := range page.Results {
        fmt.Printf("Got payment: %v\n", *payment.ID)
    }
    page, err = page.GetNextPage(ctx)
    if errors.Is(err, core.ErrNoPages) {
        break
    }
    if err != nil {
        // Handle the error!
    }
}

Timeouts

Setting a timeout for each individual request is as simple as using the standard context library. Setting a one second timeout for an individual API call looks like the following:

ctx, cancel := context.WithTimeout(context.TODO(), time.Second)
defer cancel()

response, err := client.Payments.List(
    ctx,
    &square.PaymentsListRequest{
        Total: square.Int64(100),
    },
)

Errors

Structured error types are returned from API calls that return non-success status codes. For example, you can check if the error was due to an unauthorized request (i.e. status code 401) with the following:

response, err := client.Payments.Create(...)
if err != nil {
    if apiError, ok := err.(*core.APIError); ok {
        switch (apiError.StatusCode) {
            case http.StatusUnauthorized:
                // Do something with the unauthorized request ...
        }
    }
    return err
}

These errors are also compatible with the errors.Is and errors.As APIs, so you can access the error like so:

response, err := client.Payments.Create(...)
if err != nil {
    var apiError *core.APIError
    if errors.As(err, apiError) {
        // Do something with the API error ...
    }
    return err
}

If you'd like to wrap the errors with additional information and still retain the ability to access the type with errors.Is and errors.As, you can use the %w directive:

response, err := client.Payments.Create(...)
if err != nil {
    return fmt.Errorf("failed to create payment: %w", err)
}

Webhook Signature Verification

The SDK provides a utility method that allow you to verify webhook signatures and ensure that all webhook events originate from Square. The client.Webhooks.VerifySignature method will verify the signature:

err := client.Webhooks.VerifySignature(
    context.TODO(),
    &square.VerifySignatureRequest{
        RequestBody: requestBody,
        SignatureHeader: header.Get("x-square-hmacsha256-signature"),
        SignatureKey: "YOUR_SIGNATURE_KEY",
        NotificationURL: "https://example.com/webhook", // The URL where event notifications are sent.
    },
);
if err != nil {
    return nil, err
}

Advanced

Request Options

A variety of request options are included to adapt the behavior of the library, which includes configuring authorization tokens, or providing your own instrumented *http.Client. Both of these options are shown below:

client := squareclient.NewClient(
    option.WithToken("<YOUR_API_KEY>"),
    option.WithHTTPClient(
        &http.Client{
            Timeout: 5 * time.Second,
        },
    ),
)

These request options can either be specified on the client so that they're applied on every request (shown above), or for an individual request like so:

response, err := client.Payments.List(
    ctx,
    &square.PaymentsListRequest{
        Total: square.Int64(100),
    },
    option.WithToken("<YOUR_API_KEY>"),
)

Providing your own *http.Client is recommended. Otherwise, the http.DefaultClient will be used, and your client will wait indefinitely for a response (unless the per-request, context-based timeout is used).

Send Extra Properties

All endpoints support sending additional request body properties and query parameters that are not already supported by the SDK. This is useful whenever you need to interact with an unreleased or hidden feature.

For example, suppose that a new feature was rolled out that allowed users to list all deactivated team members. You could the relevant query parameters like so:

response, err := client.TeamMembers.Search(
    context.TODO(),
    &square.SearchTeamMembersRequest{
        Limit: square.Int(100),
    },
    option.WithQueryParameters(
        url.Values{
            "status": []string{"DEACTIVATED"},
        },
    ),
)

Receive Extra Properties

Every response type includes the GetExtraProperties method, which returns a map that contains any properties in the JSON response that were not specified in the struct. Similar to the use case for sending additional parameters, this can be useful for API features not present in the SDK yet.

You can receive and interact with the extra properties like so:

response, err := client.Payments.Create(...)
if err != nil {
    return nil, err
}
extraProperties := response.GetExtraProperties()

Retries

The Square Go client is instrumented with automatic retries with exponential backoff. A request will be retried as long as the request is deemed retriable and the number of retry attempts has not grown larger than the configured retry limit (default: 2).

A request is deemed retriable when any of the following HTTP status codes is returned:

  • 408 (Timeout)
  • 429 (Too Many Requests)
  • 5XX (Internal Server Errors)

You can use the option.WithMaxAttempts option to configure the maximum retry limit to your liking. For example, if you want to disable retries for the client entirely, you can set this value to 1 like so:

client := squareclient.NewClient(
    option.WithMaxAttempts(1),
)

This can be done for an individual request, too:

response, err := client.Payments.List(
    context.TODO(),
    &square.PaymentsListRequest{
        Total: square.Int64(100),
    },
    option.WithMaxAttempts(1),
)

Contributing

While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!

On the other hand, contributions to the README.md are always very welcome!

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Bool returns a pointer to the given bool value.
Byte returns a pointer to the given byte value.
Complex128 returns a pointer to the given complex128 value.
Complex64 returns a pointer to the given complex64 value.
Float32 returns a pointer to the given float32 value.
Float64 returns a pointer to the given float64 value.
Int returns a pointer to the given int value.
Int16 returns a pointer to the given int16 value.
Int32 returns a pointer to the given int32 value.
Int64 returns a pointer to the given int64 value.
Int8 returns a pointer to the given int8 value.
MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.
MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewFileParam returns a *FileParam type suitable for multipart/form-data uploads.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Rune returns a pointer to the given rune value.
String returns a pointer to the given string value.
Time returns a pointer to the given time.Time value.
Uint returns a pointer to the given uint value.
Uint16 returns a pointer to the given uint16 value.
Uint32 returns a pointer to the given uint32 value.
Uint64 returns a pointer to the given uint64 value.
Uint8 returns a pointer to the given uint8 value.
Uintptr returns a pointer to the given uintptr value.
UUID returns a pointer to the given uuid.UUID value.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Environments defines all of the API environments.

# Structs

Defines the fields in an `AcceptDispute` response.
No description provided by the author
Represents an [AccumulateLoyaltyPoints](api-endpoint:Loyalty-AccumulateLoyaltyPoints) response.
ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`.
Defines the fields that are included in the response body of a request to the [AddGroupToCustomer](api-endpoint:Customers-AddGroupToCustomer) endpoint.
Represents an additional recipient (other than the merchant) receiving a portion of this tender.
Represents a postal address in a country.
Represents an [AdjustLoyaltyPoints](api-endpoint:Loyalty-AdjustLoyaltyPoints) request.
Additional details about Afterpay payments.
Details about the application that took the payment.
Defines an appointment segment of a booking.
Defines an appointment slot that encapsulates the appointment segments, location and starting time available for booking.
Represents a bank account.
Additional details about BANK_ACCOUNT type payments.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Represents a response from a bulk create request containing the created `TeamMember` objects or error messages.
No description provided by the author
Represents an output from a call to [BulkCreateVendors](api-endpoint:Vendors-BulkCreateVendors).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Defines the fields that are included in the response body of a request to the `BatchRetrieveOrders` endpoint.
No description provided by the author
Represents an output from a call to [BulkRetrieveVendors](api-endpoint:Vendors-BulkRetrieveVendors).
No description provided by the author
No description provided by the author
Represents a response from a bulk update request containing the updated `TeamMember` objects or error messages.
No description provided by the author
Represents an output from a call to [BulkUpdateVendors](api-endpoint:Vendors-BulkUpdateVendors).
No description provided by the author
No description provided by the author
Represents an individual upsert request in a [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes) request.
Represents a [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes) response, which contains a map of responses that each corresponds to an individual upsert request.
Represents a response for an individual upsert request in a [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes) operation.
Represents a booking as a time-bound service contract for a seller's staff member to provide a specified service at a given location to a requesting customer in one or more appointment segments.
Information about a booking creator.
Represents an individual delete request in a [BulkDeleteBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkDeleteBookingCustomAttributes) request.
Represents a response for an individual upsert request in a [BulkDeleteBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkDeleteBookingCustomAttributes) operation.
Represents an individual upsert request in a [BulkUpsertBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkUpsertBookingCustomAttributes) request.
Represents a response for an individual upsert request in a [BulkUpsertBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkUpsertBookingCustomAttributes) operation.
No description provided by the author
No description provided by the author
A record of an employee's break during a shift.
A defined break template that sets an expectation for possible `Break` instances on a `Shift`.
Defines the customer data provided in individual create requests for a [BulkCreateCustomers](api-endpoint:Customers-BulkCreateCustomers) operation.
No description provided by the author
Defines the fields included in the response body from the [BulkCreateCustomers](api-endpoint:Customers-BulkCreateCustomers) endpoint.
Represents a [BulkDeleteBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkDeleteBookingCustomAttributes) response, which contains a map of responses that each corresponds to an individual delete request.
No description provided by the author
Defines the fields included in the response body from the [BulkDeleteCustomers](api-endpoint:Customers-BulkDeleteCustomers) endpoint.
Represents an individual delete request in a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes) request.
Represents a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes) response, which contains a map of responses that each corresponds to an individual delete request.
Represents an individual delete response in a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes) request.
Represents an individual delete request in a [BulkDeleteMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkDeleteMerchantCustomAttributes) request.
Represents a [BulkDeleteMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkDeleteMerchantCustomAttributes) response, which contains a map of responses that each corresponds to an individual delete request.
Represents an individual delete response in a [BulkDeleteMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkDeleteMerchantCustomAttributes) request.
Represents one delete within the bulk operation.
Represents a response from deleting one or more order custom attributes.
No description provided by the author
Response payload for bulk retrieval of bookings.
No description provided by the author
Defines the fields included in the response body from the [BulkRetrieveCustomers](api-endpoint:Customers-BulkRetrieveCustomers) endpoint.
No description provided by the author
Response payload for the [BulkRetrieveTeamMemberBookingProfiles](api-endpoint:Bookings-BulkRetrieveTeamMemberBookingProfiles) endpoint.
No description provided by the author
Defines output parameters in a response of the [BulkSwapPlan](api-endpoint:Subscriptions-BulkSwapPlan) endpoint.
Defines the customer data provided in individual update requests for a [BulkUpdateCustomers](api-endpoint:Customers-BulkUpdateCustomers) operation.
No description provided by the author
Defines the fields included in the response body from the [BulkUpdateCustomers](api-endpoint:Customers-BulkUpdateCustomers) endpoint.
Represents a [BulkUpsertBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkUpsertBookingCustomAttributes) response, which contains a map of responses that each corresponds to an individual upsert request.
Represents an individual upsert request in a [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes) request.
Represents a [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes) response, which contains a map of responses that each corresponds to an individual upsert request.
Represents a response for an individual upsert request in a [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes) operation.
Represents an individual upsert request in a [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes) request.
Represents a [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes) response, which contains a map of responses that each corresponds to an individual upsert request.
Represents a response for an individual upsert request in a [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes) operation.
Represents one upsert within the bulk operation.
Represents a response from a bulk upsert of order custom attributes.
The service appointment settings, including where and how the service is provided.
A seller's business booking profile, including booking policy, appointment settings, etc.
The hours of operation for a location.
Represents a period of time during which a business location is open.
Additional details about a Buy Now Pay Later payment type.
Represents a [CalculateLoyaltyPoints](api-endpoint:Loyalty-CalculateLoyaltyPoints) response.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The response returned by the `CancelInvoice` request.
Represents a [CancelLoyaltyPromotion](api-endpoint:Loyalty-CancelLoyaltyPromotion) response.
No description provided by the author
Defines the response returned by [CancelPaymentByIdempotencyKey](api-endpoint:Payments-CancelPaymentByIdempotencyKey).
Defines the response returned by [CancelPayment](api-endpoint:Payments-CancelPayment).
Defines output parameters in a response from the [CancelSubscription](api-endpoint:Subscriptions-CancelSubscription) endpoint.
No description provided by the author
No description provided by the author
No description provided by the author
Defines the fields that are included in the response body of a request to the [CaptureTransaction](api-endpoint:Transactions-CaptureTransaction) endpoint.
Represents the payment details of a card to be used for payments.
Reflects the current status of a card payment.
The timeline for card payments.
No description provided by the author
No description provided by the author
No description provided by the author
Additional details about `WALLET` type payments with the `brand` of `CASH_APP`.
No description provided by the author
This model gives the details of a cash drawer shift.
No description provided by the author
The summary of a closed cash drawer shift.
Stores details about a cash payment.
A category to which a `CatalogItem` instance belongs.
Contains information defining a custom attribute.
No description provided by the author
Configuration associated with `SELECTION`-type custom attribute definitions.
A named selection for this `SELECTION`-type custom attribute definition.
Configuration associated with Custom Attribute Definitions of type `STRING`.
An instance of a custom attribute.
A discount applicable to items.
SEO data for for a seller's Square Online store.
A mapping between a temporary client-supplied ID and a permanent server-generated ID.
An image file to use in Square catalogs.
No description provided by the author
No description provided by the author
A [CatalogObject](entity:CatalogObject) instance of the `ITEM` type, also referred to as an item, in the catalog.
The food and beverage-specific details of a `FOOD_AND_BEV` item.
Dietary preferences that can be assigned to an `FOOD_AND_BEV` item and its ingredients.
Describes the ingredient used in a `FOOD_AND_BEV` item.
References a text-based modifier or a list of non text-based modifiers applied to a `CatalogItem` instance and specifies supported behaviors of the application.
A group of variations for a `CatalogItem`.
An option that can be assigned to an item.
An enumerated value that can link a `CatalogItemVariation` to an item option as one of its item option values.
A `CatalogItemOptionValue` links an item variation to an item option as an item option value.
An item variation, representing a product for sale, in the Catalog object model.
No description provided by the author
Represents the unit used to measure a `CatalogItemVariation` and specifies the precision for decimal quantities.
A modifier applicable to items at the time of sale.
For a text-based modifier, this encapsulates the modifier's text when its `modifier_type` is `TEXT`.
Options to control how to override the default behavior of the specified modifier.
The wrapper object for the catalog entries of a given object type.
No description provided by the author
No description provided by the author
A batch of catalog objects.
A category that can be assigned to an item or a parent category that can be assigned to another category.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A reference to a Catalog object at a specific version.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Defines how discounts are automatically applied to a set of items that match the pricing rule during the active time period.
Represents a collection of catalog objects for the purpose of applying a `PricingRule`.
A query composed of one or more different types of filters to narrow the scope of targeted objects when calling the `SearchCatalogObjects` endpoint.
The query filter to return the search result by exact match of the specified attribute name and value.
The query filter to return the items containing the specified item option IDs.
The query filter to return the items containing the specified modifier list IDs.
The query filter to return the items containing the specified tax IDs.
The query filter to return the item variations containing the specified item option value IDs.
The query filter to return the search result whose named attribute values are prefixed by the specified attribute value.
The query filter to return the search result whose named attribute values fall between the specified range.
The query filter to return the search result(s) by exact match of the specified `attribute_name` and any of the `attribute_values`.
The query expression to specify the key to sort search results.
The query filter to return the search result whose searchable attribute values contain all of the specified keywords or tokens, independent of the token order or case.
Represents a Quick Amount in the Catalog.
A parent Catalog Object model represents a set of Quick Amounts and the settings control the amounts.
Represents the rule of conversion between a stockable [CatalogItemVariation](entity:CatalogItemVariation) and a non-stockable sell-by or receive-by `CatalogItemVariation` that share the same underlying stock.
Describes a subscription plan.
A tax applicable to an item.
Represents a time period - either a single period or a repeating period.
A Square API V1 identifier of an item, including the object ID and its associated location ID.
A node in the path from a retrieved category to its root node.
No description provided by the author
Defines output parameters in a request to the [ChangeBillingAnchorDate](api-endpoint:Subscriptions-ChangeBillingAnchorDate) endpoint.
Represents an additional recipient (other than the merchant) entitled to a portion of the tender.
Square Checkout lets merchants accept online payments for supported payment types using a checkout workflow hosted on squareup.com.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The settings allowed for AfterpayClearpay.
A range of purchase price that qualifies.
The settings allowed for a payment method.
No description provided by the author
Additional details about Clearpay payments.
No description provided by the author
Defines the fields that are included in the response body of a request to the [CloneOrder](api-endpoint:Orders-CloneOrder) endpoint.
No description provided by the author
No description provided by the author
Defines the response returned by[CompletePayment](api-endpoint:Payments-CompletePayment).
The wrapper object for the component entries of a given component type.
No description provided by the author
No description provided by the author
Latitude and longitude coordinates.
Represents a [CreateBookingCustomAttributeDefinition](api-endpoint:BookingCustomAttributes-CreateBookingCustomAttributeDefinition) response.
No description provided by the author
No description provided by the author
The response to the request to create a `BreakType`.
No description provided by the author
Defines the fields that are included in the response body of a request to the [CreateCard](api-endpoint:Cards-CreateCard) endpoint.
No description provided by the author
No description provided by the author
No description provided by the author
Defines the fields that are included in the response body of a request to the `CreateCheckout` endpoint.
Defines the fields that are included in the response body of a request to the `CreateCustomerCard` endpoint.
Represents a [CreateCustomerCustomAttributeDefinition](api-endpoint:CustomerCustomAttributes-CreateCustomerCustomAttributeDefinition) response.
Defines the fields that are included in the response body of a request to the [CreateCustomerGroup](api-endpoint:CustomerGroups-CreateCustomerGroup) endpoint.
No description provided by the author
Defines the fields that are included in the response body of a request to the [CreateCustomer](api-endpoint:Customers-CreateCustomer) or [BulkCreateCustomers](api-endpoint:Customers-BulkCreateCustomers) endpoint.
No description provided by the author
Defines the parameters for a `CreateDisputeEvidenceFile` request.
Defines the fields in a `CreateDisputeEvidenceFile` response.
No description provided by the author
Defines the fields in a `CreateDisputeEvidenceText` response.
A response that contains a `GiftCardActivity` that was created.
No description provided by the author
A response that contains a `GiftCard`.
No description provided by the author
Represents a [CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment) response.
No description provided by the author
The response returned by the `CreateInvoice` request.
No description provided by the author
Represents a [CreateJob](api-endpoint:Team-CreateJob) response.
Represents a [CreateLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-CreateLocationCustomAttributeDefinition) response.
No description provided by the author
The response object returned by the [CreateLocation](api-endpoint:Locations-CreateLocation) endpoint.
A response that includes loyalty account created.
Represents a [CreateLoyaltyPromotion](api-endpoint:Loyalty-CreateLoyaltyPromotion) response.
A response that includes the loyalty reward created.
Represents a [CreateMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-CreateMerchantCustomAttributeDefinition) response.
No description provided by the author
Defines the fields that are included in the response body of a request to the `CreateMobileAuthorizationCode` endpoint.
Represents a response from creating an order custom attribute definition.
No description provided by the author
Defines the fields that are included in the response body of a request to the `CreateOrder` endpoint.
No description provided by the author
No description provided by the author
Defines the response returned by [CreatePayment](api-endpoint:Payments-CreatePayment).
The response to a request to create a `Shift`.
No description provided by the author
Defines output parameters in a response from the [CreateSubscription](api-endpoint:Subscriptions-CreateSubscription) endpoint.
Represents a create request for a `TeamMember` object.
Represents a response from a create request containing the created `TeamMember` object or error messages.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Represents an output from a call to [CreateVendor](api-endpoint:Vendors-CreateVendor).
Defines the fields that are included in the response body of a request to the [CreateWebhookSubscription](api-endpoint:WebhookSubscriptions-CreateWebhookSubscription) endpoint.
A custom attribute value.
Represents a definition for custom attribute values.
Supported custom attribute query expressions for calling the [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) endpoint to search for items or item variations.
Represents a Square customer profile in the Customer Directory of a Square seller.
The customer address filter.
The creation source filter.
The custom attribute filter.
The custom attribute filters in a set of [customer filters](entity:CustomerFilter) used in a search query.
A type-specific filter used in a [custom attribute filter](entity:CustomerCustomAttributeFilter) to search based on the value of a customer-related [custom attribute](entity:CustomAttribute).
Details about the customer making the payment.
Represents the filtering criteria in a [search query](entity:CustomerQuery) that defines how to filter customer profiles returned in [SearchCustomers](api-endpoint:Customers-SearchCustomers) results.
Represents a group of customer profiles.
Represents communication preferences for the customer profile.
Represents filtering and sorting criteria for a [SearchCustomers](api-endpoint:Customers-SearchCustomers) request.
No description provided by the author
Represents a group of customer profiles that match one or more predefined filter criteria.
No description provided by the author
No description provided by the author
Represents the sorting criteria in a [search query](entity:CustomerQuery) that defines how to sort customer profiles returned in [SearchCustomers](api-endpoint:Customers-SearchCustomers) results.
Represents the tax ID associated with a [customer profile](entity:Customer).
A filter to select customers based on exact or fuzzy matching of customer attributes against a specified query.
Describes a custom form field to add to the checkout page to collect more information from buyers during checkout.
No description provided by the author
A range defined by two dates.
Represents a [DeleteBookingCustomAttributeDefinition](api-endpoint:BookingCustomAttributes-DeleteBookingCustomAttributeDefinition) response containing error messages when errors occurred during the request.
Represents a [DeleteBookingCustomAttribute](api-endpoint:BookingCustomAttributes-DeleteBookingCustomAttribute) response.
The response to a request to delete a `BreakType`.
No description provided by the author
Defines the fields that are included in the response body of a request to the `DeleteCustomerCard` endpoint.
Represents a response from a delete request containing error messages if there are any.
Represents a [DeleteCustomerCustomAttribute](api-endpoint:CustomerCustomAttributes-DeleteCustomerCustomAttribute) response.
Defines the fields that are included in the response body of a request to the [DeleteCustomerGroup](api-endpoint:CustomerGroups-DeleteCustomerGroup) endpoint.
Defines the fields that are included in the response body of a request to the `DeleteCustomer` endpoint.
Defines the fields in a `DeleteDisputeEvidence` response.
No description provided by the author
Represents a [DeleteInvoiceAttachment](api-endpoint:Invoices-DeleteInvoiceAttachment) response.
Describes a `DeleteInvoice` response.
Represents a response from a delete request containing error messages if there are any.
Represents a [DeleteLocationCustomAttribute](api-endpoint:LocationCustomAttributes-DeleteLocationCustomAttribute) response.
A response returned by the API call.
Represents a response from a delete request containing error messages if there are any.
Represents a [DeleteMerchantCustomAttribute](api-endpoint:MerchantCustomAttributes-DeleteMerchantCustomAttribute) response.
Represents a response from deleting an order custom attribute definition.
Represents a response from deleting an order custom attribute.
No description provided by the author
The response to a request to delete a `Shift`.
Represents a `DeleteSnippet` response.
Defines output parameters in a response of the [DeleteSubscriptionAction](api-endpoint:Subscriptions-DeleteSubscriptionAction) endpoint.
Defines the fields that are included in the response body of a request to the [DeleteWebhookSubscription](api-endpoint:WebhookSubscriptions-DeleteWebhookSubscription) endpoint.
Information about the destination against which the payout was made.
Details about a refund's destination.
No description provided by the author
Stores details about a cash refund.
Stores details about an external refund.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A value qualified by unit of measure.
No description provided by the author
Details about the device that took the payment.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Additional details about `WALLET` type payments.
Defines the fields that are included in the response body of a request to the [DisableCard](api-endpoint:Cards-DisableCard) endpoint.
Defines the fields that are included in the response body of a request to the [DisableEvents](api-endpoint:Events-DisableEvents) endpoint.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Represents a [dispute](https://developer.squareup.com/docs/disputes-api/overview) a cardholder initiated with their bank.
The payment the cardholder disputed.
No description provided by the author
A file to be uploaded as dispute evidence.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
An employee object that is used by the external API.
No description provided by the author
No description provided by the author
The hourly wage rate that an employee earns on a `Shift` for doing the job specified by the `title` property of this object.
Defines the fields that are included in the response body of a request to the [EnableEvents](api-endpoint:Events-EnableEvents) endpoint.
Represents an error encountered during a request to the Connect API.
No description provided by the author
No description provided by the author
Contains metadata about a particular [Event](entity:Event).
Contains the metadata of a webhook event type.
Stores details about an external payment.
FileParam is a file type suitable for multipart/form-data uploads.
A filter to select resources based on an exact field value.
Specifies a decimal number range.
Contains details about how to fulfill this order.
Describes delivery details of an order fulfillment.
Links an order line item to a fulfillment.
Contains details necessary to fulfill a pickup order.
Specific details for curbside pickup.
Information about the fulfillment recipient.
Contains the details necessary to fulfill a shipment order.
Response object returned by GetBankAccountByV1Id.
Response object returned by `GetBankAccount`.
No description provided by the author
The response to a request to get a `BreakType`.
No description provided by the author
Defines the fields that are included in the response body of a request to the [RetrieveCard](api-endpoint:Cards-RetrieveCard) endpoint.
No description provided by the author
No description provided by the author
Represents a [RetrieveCustomerCustomAttributeDefinition](api-endpoint:CustomerCustomAttributes-RetrieveCustomerCustomAttributeDefinition) response.
Represents a [RetrieveCustomerCustomAttribute](api-endpoint:CustomerCustomAttributes-RetrieveCustomerCustomAttribute) response.
Defines the fields that are included in the response body of a request to the [RetrieveCustomerGroup](api-endpoint:CustomerGroups-RetrieveCustomerGroup) endpoint.
Defines the fields that are included in the response body of a request to the `RetrieveCustomer` endpoint.
Defines the fields that are included in the response body for requests to the `RetrieveCustomerSegment` endpoint.
No description provided by the author
No description provided by the author
Defines the fields in a `RetrieveDisputeEvidence` response.
Defines fields in a `RetrieveDispute` response.
No description provided by the author
A response to a request to get an `EmployeeWage`.
No description provided by the author
A response that contains a `GiftCard`.
No description provided by the author
A response that contains a `GiftCard` object.
A response that contains a `GiftCard`.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Describes a `GetInvoice` response.
Defines the fields that the [RetrieveLocation](api-endpoint:Locations-RetrieveLocation) endpoint returns in a response.
A response that includes the loyalty account.
A response that contains the loyalty program.
Represents a [RetrieveLoyaltyPromotionPromotions](api-endpoint:Loyalty-RetrieveLoyaltyPromotion) response.
A response that includes the loyalty reward.
The response object returned by the [RetrieveMerchant](api-endpoint:Merchants-RetrieveMerchant) endpoint.
No description provided by the author
No description provided by the author
Defines the response returned by [GetRefund](api-endpoint:Refunds-GetPaymentRefund).
Defines the response returned by [GetPayment](api-endpoint:Payments-GetPayment).
No description provided by the author
A response to a request to get a `Shift`.
Represents a `RetrieveSnippet` response.
Defines output parameters in a response from the [RetrieveSubscription](api-endpoint:Subscriptions-RetrieveSubscription) endpoint.
No description provided by the author
Represents a response from a retrieve request containing a `TeamMember` object or error messages.
A response to a request to get a `TeamMemberWage`.
No description provided by the author
No description provided by the author
No description provided by the author
Defines the fields that are included in the response body of a request to the [RetrieveTransaction](api-endpoint:Transactions-RetrieveTransaction) endpoint.
Represents an output from a call to [RetrieveVendor](api-endpoint:Vendors-RetrieveVendor).
Represents a response from a retrieve request containing the specified `WageSetting` object or error messages.
Defines the fields that are included in the response body of a request to the [RetrieveWebhookSubscription](api-endpoint:WebhookSubscriptions-RetrieveWebhookSubscription) endpoint.
Represents a Square gift card.
Represents an action performed on a [gift card](entity:GiftCard) that affects its state or balance.
Represents details about an `ACTIVATE` [gift card activity type](entity:GiftCardActivityType).
Represents details about an `ADJUST_DECREMENT` [gift card activity type](entity:GiftCardActivityType).
Represents details about an `ADJUST_INCREMENT` [gift card activity type](entity:GiftCardActivityType).
Represents details about a `BLOCK` [gift card activity type](entity:GiftCardActivityType).
Represents details about a `CLEAR_BALANCE` [gift card activity type](entity:GiftCardActivityType).
Represents details about a `DEACTIVATE` [gift card activity type](entity:GiftCardActivityType).
Represents details about an `IMPORT` [gift card activity type](entity:GiftCardActivityType).
Represents details about an `IMPORT_REVERSAL` [gift card activity type](entity:GiftCardActivityType).
Represents details about a `LOAD` [gift card activity type](entity:GiftCardActivityType).
Represents details about a `REDEEM` [gift card activity type](entity:GiftCardActivityType).
Represents details about a `REFUND` [gift card activity type](entity:GiftCardActivityType).
Represents details about a `TRANSFER_BALANCE_FROM` [gift card activity type](entity:GiftCardActivityType).
Represents details about a `TRANSFER_BALANCE_TO` [gift card activity type](entity:GiftCardActivityType).
Represents details about an `UNBLOCK` [gift card activity type](entity:GiftCardActivityType).
Represents details about an `UNLINKED_ACTIVITY_REFUND` [gift card activity type](entity:GiftCardActivityType).
No description provided by the author
No description provided by the author
Represents a change in state or quantity of product inventory at a particular time and location.
No description provided by the author
Represents a single physical count, inventory, adjustment, or transfer that is part of the history of inventory changes for a particular [CatalogObject](entity:CatalogObject) instance.
No description provided by the author
Represents Square-estimated quantity of items in a particular state at a particular seller location based on the known history of physical counts and inventory adjustments.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Represents the quantity of an item variation that is physically present at a specific location, verified by a seller or a seller's employee.
Represents the transfer of a quantity of product inventory at a particular time from one location to another.
Stores information about an invoice.
The payment methods that customers can use to pay an [invoice](entity:Invoice) on the Square-hosted invoice payment page.
Represents a file attached to an [invoice](entity:Invoice).
An additional seller-defined and customer-facing field to include on the invoice.
Describes query filters to apply.
Describes a payment request reminder (automatic notification) that Square sends to the customer.
Represents a payment request for an [invoice](entity:Invoice).
Describes query criteria for searching invoices.
Represents a snapshot of customer data.
Represents the tax IDs for an invoice recipient.
No description provided by the author
No description provided by the author
No description provided by the author
Identifies the sort field and sort order.
Price and inventory alerting overrides for a `CatalogItemVariation` at a specific `Location`.
Represents a job that can be assigned to [team members](entity:TeamMember).
Represents a job assigned to a [team member](entity:TeamMember), including the compensation the team member earns for the job.
No description provided by the author
A response that contains the linked `GiftCard` object.
Response object returned by ListBankAccounts.
Represents a [ListBookingCustomAttributeDefinitions](api-endpoint:BookingCustomAttributes-ListBookingCustomAttributeDefinitions) response.
Represents a [ListBookingCustomAttributes](api-endpoint:BookingCustomAttributes-ListBookingCustomAttributes) response.
No description provided by the author
The response to a request for a set of `BreakType` objects.
Defines the fields that are included in the response body of a request to the [ListCards](api-endpoint:Cards-ListCards) endpoint.
No description provided by the author
No description provided by the author
No description provided by the author
Represents a [ListCustomerCustomAttributeDefinitions](api-endpoint:CustomerCustomAttributes-ListCustomerCustomAttributeDefinitions) response.
Represents a [ListCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-ListCustomerCustomAttributes) response.
Defines the fields that are included in the response body of a request to the [ListCustomerGroups](api-endpoint:CustomerGroups-ListCustomerGroups) endpoint.
Defines the fields that are included in the response body for requests to the `ListCustomerSegments` endpoint.
Defines the fields that are included in the response body of a request to the `ListCustomers` endpoint.
No description provided by the author
No description provided by the author
Defines the fields in a `ListDisputeEvidence` response.
Defines fields in a `ListDisputes` response.
No description provided by the author
The response to a request for a set of `EmployeeWage` objects.
No description provided by the author
Defines the fields that are included in the response body of a request to the [ListEventTypes](api-endpoint:Events-ListEventTypes) endpoint.
A response that contains a list of `GiftCardActivity` objects.
A response that contains a list of `GiftCard` objects.
Describes a `ListInvoice` response.
No description provided by the author
Represents a [ListJobs](api-endpoint:Team-ListJobs) response.
No description provided by the author
Represents a [ListLocationCustomAttributeDefinitions](api-endpoint:LocationCustomAttributes-ListLocationCustomAttributeDefinitions) response.
Represents a [ListLocationCustomAttributes](api-endpoint:LocationCustomAttributes-ListLocationCustomAttributes) response.
Defines the fields that are included in the response body of a request to the [ListLocations](api-endpoint:Locations-ListLocations) endpoint.
A response that contains all loyalty programs.
Represents a [ListLoyaltyPromotions](api-endpoint:Loyalty-ListLoyaltyPromotions) response.
Represents a [ListMerchantCustomAttributeDefinitions](api-endpoint:MerchantCustomAttributes-ListMerchantCustomAttributeDefinitions) response.
Represents a [ListMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-ListMerchantCustomAttributes) response.
The response object returned by the [ListMerchant](api-endpoint:Merchants-ListMerchants) endpoint.
Represents a response from listing order custom attribute definitions.
Represents a response from listing order custom attributes.
No description provided by the author
Defines the response returned by [ListPaymentRefunds](api-endpoint:Refunds-ListPaymentRefunds).
Defines the response returned by [ListPayments](api-endpoint:Payments-ListPayments).
The response to retrieve payout records entries.
The response to retrieve payout records entries.
Represents a `ListSites` response.
Defines output parameters in a response from the [ListSubscriptionEvents](api-endpoint:Subscriptions-ListSubscriptionEvents).
No description provided by the author
The response to a request for a set of `TeamMemberWage` objects.
Defines the fields that are included in the response body of a request to the [ListTransactions](api-endpoint:Transactions-ListTransactions) endpoint.
Defines the fields that are included in the response body of a request to the [ListWebhookEventTypes](api-endpoint:WebhookSubscriptions-ListWebhookEventTypes) endpoint.
Defines the fields that are included in the response body of a request to the [ListWebhookSubscriptions](api-endpoint:WebhookSubscriptions-ListWebhookSubscriptions) endpoint.
The response to a request for a set of `WorkweekConfig` objects.
Represents one of a business' [locations](https://developer.squareup.com/docs/locations-api).
The booking profile of a seller's location, including the location's ID and whether the location is enabled for online booking.
No description provided by the author
Describes a loyalty account in a [loyalty program](entity:LoyaltyProgram).
Represents a set of points for a loyalty account that are scheduled to expire on a specific date.
Represents the mapping that associates a loyalty account with a buyer.
Provides information about a loyalty event.
Provides metadata when the event `type` is `ACCUMULATE_POINTS`.
Provides metadata when the event `type` is `ACCUMULATE_PROMOTION_POINTS`.
Provides metadata when the event `type` is `ADJUST_POINTS`.
Provides metadata when the event `type` is `CREATE_REWARD`.
Filter events by date time range.
Provides metadata when the event `type` is `DELETE_REWARD`.
Provides metadata when the event `type` is `EXPIRE_POINTS`.
The filtering criteria.
Filter events by location.
Filter events by loyalty account.
Filter events by the order associated with the event.
Provides metadata when the event `type` is `OTHER`.
Represents a query used to search for loyalty events.
Provides metadata when the event `type` is `REDEEM_REWARD`.
Filter events by event type.
Represents a Square loyalty program.
Represents an accrual rule, which defines how buyers can earn points from the base [loyalty program](entity:LoyaltyProgram).
Represents additional data for rules with the `CATEGORY` accrual type.
Represents additional data for rules with the `ITEM_VARIATION` accrual type.
Represents additional data for rules with the `SPEND` accrual type.
Represents additional data for rules with the `VISIT` accrual type.
Describes when the loyalty program expires.
Provides details about the reward tier discount.
Represents a reward tier in a loyalty program.
Represents the naming used for loyalty points.
Represents a promotion for a [loyalty program](entity:LoyaltyProgram).
Represents scheduling information that determines when purchases can qualify to earn points from a [loyalty promotion](entity:LoyaltyPromotion).
Represents how points for a [loyalty promotion](entity:LoyaltyPromotion) are calculated, either by multiplying the points earned from the base program or by adding a specified number of points to the points earned from the base program.
Represents the metadata for a `POINTS_ADDITION` type of [loyalty promotion incentive](entity:LoyaltyPromotionIncentive).
Represents the metadata for a `POINTS_MULTIPLIER` type of [loyalty promotion incentive](entity:LoyaltyPromotionIncentive).
Represents the number of times a buyer can earn points during a [loyalty promotion](entity:LoyaltyPromotion).
Represents a contract to redeem loyalty points for a [reward tier](entity:LoyaltyProgramRewardTier) discount.
Represents a unit of measurement to use with a quantity, such as ounces or inches.
The information needed to define a custom unit, provided by the seller.
Represents a business that sells with Square.
No description provided by the author
No description provided by the author
Location-specific overrides for specified properties of a `CatalogModifier` object.
Represents an amount of money.
No description provided by the author
No description provided by the author
Details specific to offline payments.
Contains all information related to a single order to process with Square, including line items that specify the products to purchase.
A lightweight description of an [order](entity:Order) that is returned when `returned_entries` is `true` on a [SearchOrdersRequest](api-endpoint:Orders-SearchOrders).
Represents a line item in an order.
Represents an applied portion of a discount to a line item in an order.
No description provided by the author
Represents an applied portion of a tax to a line item in an order.
Represents a discount that applies to one or more line items in an order.
A [CatalogModifier](entity:CatalogModifier).
Describes pricing adjustments that are blocked from automatic application to a line item.
A discount to block from applying to a line item.
A tax to block from applying to a line item.
Represents a tax that applies to one or more line item in the order.
A collection of various money amounts.
Pricing options for an order.
Contains the measurement unit for a quantity and a precision that specifies the number of digits after the decimal point for decimal quantities.
The set of line items, service charges, taxes, discounts, tips, and other items being returned in an order.
Represents a discount being returned that applies to one or more return line items in an order.
The line item being returned in an order.
A line item modifier being returned.
Represents the service charge applied to the original order.
Represents a tax being returned that applies to one or more return line items in an order.
A tip being returned.
Represents a reward that can be applied to an order if the necessary reward tier criteria are met.
A rounding adjustment of the money being returned.
Represents a service charge applied to an order.
No description provided by the author
Represents the origination details of an order.
No description provided by the author
Defines output parameters in a response from the [PauseSubscription](api-endpoint:Subscriptions-PauseSubscription) endpoint.
Represents a payment processed by the Square API.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Represents a refund of a payment made using Square.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Defines the fields that are included in the response body of a request to the [PayOrder](api-endpoint:Orders-PayOrder) endpoint.
An accounting of the amount owed the seller and record of the actual transfer to their external bank account or to the Square balance.
One or more PayoutEntries that make up a Payout.
Represents a payout fee that can incur as part of a payout.
No description provided by the author
No description provided by the author
No description provided by the author
Represents a phase, which can override subscription phases as defined by plan_id.
Represents the arguments used to construct a new phase.
Describes buyer data to prepopulate in the payment form.
Represents the Square processing fee.
No description provided by the author
Describes a `PublishInvoice` response.
Fields to describe the action that displays QR-Codes.
Describes an ad hoc item and price to generate a quick pay checkout link.
The range of a number value between the specified lower and upper bounds.
Describes receipt action fields.
A response that includes the `LoyaltyEvent` published for redeeming the reward.
Represents a refund processed for a Square transaction.
No description provided by the author
Defines the response returned by [RefundPayment](api-endpoint:Refunds-RefundPayment).
No description provided by the author
No description provided by the author
No description provided by the author
Defines the fields that are included in the response body of a request to the [RegisterDomain](api-endpoint:ApplePay-RegisterDomain) endpoint.
Defines the fields that are included in the response body of a request to the [RemoveGroupFromCustomer](api-endpoint:Customers-RemoveGroupFromCustomer) endpoint.
No description provided by the author
Defines output parameters in a response from the [ResumeSubscription](api-endpoint:Subscriptions-ResumeSubscription) endpoint.
Represents a [RetrieveBookingCustomAttributeDefinition](api-endpoint:BookingCustomAttributes-RetrieveBookingCustomAttributeDefinition) response.
Represents a [RetrieveBookingCustomAttribute](api-endpoint:BookingCustomAttributes-RetrieveBookingCustomAttribute) response.
No description provided by the author
Represents a [RetrieveJob](api-endpoint:Team-RetrieveJob) response.
No description provided by the author
No description provided by the author
Represents a [RetrieveLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-RetrieveLocationCustomAttributeDefinition) response.
Represents a [RetrieveLocationCustomAttribute](api-endpoint:LocationCustomAttributes-RetrieveLocationCustomAttribute) response.
No description provided by the author
No description provided by the author
Represents a [RetrieveMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-RetrieveMerchantCustomAttributeDefinition) response.
Represents a [RetrieveMerchantCustomAttribute](api-endpoint:MerchantCustomAttributes-RetrieveMerchantCustomAttribute) response.
No description provided by the author
Represents a response from getting an order custom attribute definition.
Represents a response from getting an order custom attribute.
Defines the fields that are included in the response body of a request to the `RetrieveTokenStatus` endpoint.
No description provided by the author
No description provided by the author
Represents fraud risk information for the associated payment.
Describes save-card action fields.
A query filter to search for buyer-accessible availabilities by.
The query used to search for buyer-accessible availabilities of bookings.
No description provided by the author
No description provided by the author
No description provided by the author
Defines the response body returned from the [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) endpoint.
No description provided by the author
No description provided by the author
No description provided by the author
Defines the fields that are included in the response body of a request to the `SearchCustomers` endpoint.
Criteria to filter events by.
Contains query criteria for the search.
No description provided by the author
Defines the fields that are included in the response body of a request to the [SearchEvents](api-endpoint:Events-SearchEvents) endpoint.
Criteria to sort events by.
No description provided by the author
Describes a `SearchInvoices` response.
The search criteria for the loyalty accounts.
A response that includes loyalty accounts that satisfy the search criteria.
No description provided by the author
A response that contains loyalty events that satisfy the search criteria, in order by the `created_at` date.
The set of search requirements.
A response that includes the loyalty rewards satisfying the search criteria.
A filter based on the order `customer_id` and any tender `customer_id` associated with the order.
Filter for `Order` objects based on whether their `CREATED_AT`, `CLOSED_AT`, or `UPDATED_AT` timestamps fall within a specified time range.
Filtering criteria to use for a `SearchOrders` request.
Filter based on [order fulfillment](entity:Fulfillment) information.
Contains query criteria for the search.
No description provided by the author
Either the `order_entries` or `orders` field is set, depending on whether `return_entries` is set on the [SearchOrdersRequest](api-endpoint:Orders-SearchOrders).
Sorting criteria for a `SearchOrders` request.
A filter based on order `source` information.
Filter by the current order `state`.
The response to a request for `Shift` objects.
Represents a set of query expressions (filters) to narrow the scope of targeted subscriptions returned by the [SearchSubscriptions](api-endpoint:Subscriptions-SearchSubscriptions) endpoint.
Represents a query, consisting of specified query expressions, used to search for subscriptions.
No description provided by the author
Defines output parameters in a response from the [SearchSubscriptions](api-endpoint:Subscriptions-SearchSubscriptions) endpoint.
Represents a filter used in a search for `TeamMember` objects.
Represents the parameters in a search for `TeamMember` objects.
No description provided by the author
Represents a response from a search request containing a filtered list of `TeamMember` objects.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Defines supported query expressions to search for vendors by.
Defines a sorter used to sort results from [SearchVendors](api-endpoint:Vendors-SearchVendors).
Represents an output from a call to [SearchVendors](api-endpoint:Vendors-SearchVendors).
A query filter to search for buyer-accessible appointment segments by.
No description provided by the author
No description provided by the author
A record of the hourly rate, start, and end times for a single work shift for an employee.
Defines a filter used in a search for `Shift` records.
The parameters of a `Shift` search query, which includes filter and sort options.
Sets the sort order of search results.
The hourly wage rate used to compensate an employee for this shift.
A `Shift` search query filter parameter that sets a range of days that a `Shift` must start or end in before passing the filter condition.
No description provided by the author
No description provided by the author
No description provided by the author
Represents a Square Online site, which is an online store for a Square seller.
Represents the snippet that is added to a Square Online site.
No description provided by the author
No description provided by the author
Represents information about the application used to generate a change.
Additional details about Square Account payments.
Contains the name and abbreviation for standard measurement unit.
Group of standard measurement units.
Defines the fields in a `SubmitEvidence` response.
Represents a subscription purchased by a customer.
Represents an action as a pending change to a subscription.
Describes changes to a subscription and the subscription status.
Provides information about the subscription event.
Describes a phase in a subscription plan variation.
Describes the pricing for the subscription.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The origination details of the subscription.
Represents the details of a webhook subscription, including notification URL, event types, and signature key.
No description provided by the author
Defines output parameters in a response of the [SwapPlan](api-endpoint:Subscriptions-SwapPlan) endpoint.
Identifiers for the location used by various governments for tax purposes.
A record representing an individual team member for a business.
An object that represents a team member's assignment to locations.
The booking profile of a seller's team member, including the team member's ID, display name, description and whether the team member can be booked as a service provider.
No description provided by the author
No description provided by the author
The hourly wage rate that a team member earns on a `Shift` for doing the job specified by the `title` property of this object.
Represents a tender (i.e., a method of payment) used in a Square transaction.
Represents the details of a tender with `type` `BANK_ACCOUNT`.
Represents the details of a tender with `type` `BUY_NOW_PAY_LATER`.
Represents additional details of a tender with `type` `CARD` or `SQUARE_GIFT_CARD`.
Represents the details of a tender with `type` `CASH`.
Represents the details of a tender with `type` `SQUARE_ACCOUNT`.
Represents an action processed by the Square Terminal.
No description provided by the author
No description provided by the author
No description provided by the author
Represents a checkout processed by the Square Terminal.
No description provided by the author
No description provided by the author
No description provided by the author
Represents a payment refund processed by the Square Terminal.
No description provided by the author
No description provided by the author
No description provided by the author
Defines the fields that are included in the response body of a request to the [TestWebhookSubscription](api-endpoint:WebhookSubscriptions-TestWebhookSubscription) endpoint.
Represents a generic time range.
No description provided by the author
Represents a transaction processed with Square, either with the Connect API or with Square Point of Sale.
No description provided by the author
A response that contains the unlinked `GiftCard` object.
Represents an [UpdateBookingCustomAttributeDefinition](api-endpoint:BookingCustomAttributes-UpdateBookingCustomAttributeDefinition) response.
No description provided by the author
No description provided by the author
A response to a request to update a `BreakType`.
No description provided by the author
No description provided by the author
Represents an [UpdateCustomerCustomAttributeDefinition](api-endpoint:CustomerCustomAttributes-UpdateCustomerCustomAttributeDefinition) response.
Defines the fields that are included in the response body of a request to the [UpdateCustomerGroup](api-endpoint:CustomerGroups-UpdateCustomerGroup) endpoint.
No description provided by the author
Defines the fields that are included in the response body of a request to the [UpdateCustomer](api-endpoint:Customers-UpdateCustomer) or [BulkUpdateCustomers](api-endpoint:Customers-BulkUpdateCustomers) endpoint.
No description provided by the author
Describes a `UpdateInvoice` response.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Represents an [UpdateJob](api-endpoint:Team-UpdateJob) response.
Represents an [UpdateLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-UpdateLocationCustomAttributeDefinition) response.
No description provided by the author
The response object returned by the [UpdateLocation](api-endpoint:Locations-UpdateLocation) endpoint.
No description provided by the author
No description provided by the author
Represents an [UpdateMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-UpdateMerchantCustomAttributeDefinition) response.
No description provided by the author
No description provided by the author
Represents a response from updating an order custom attribute definition.
No description provided by the author
Defines the fields that are included in the response body of a request to the [UpdateOrder](api-endpoint:Orders-UpdateOrder) endpoint.
No description provided by the author
No description provided by the author
Defines the response returned by [UpdatePayment](api-endpoint:Payments-UpdatePayment).
The response to a request to update a `Shift`.
No description provided by the author
Defines output parameters in a response from the [UpdateSubscription](api-endpoint:Subscriptions-UpdateSubscription) endpoint.
Represents an update request for a `TeamMember` object.
Represents a response from an update request containing the updated `TeamMember` object or error messages.
Represents an input to a call to [UpdateVendor](api-endpoint:Vendors-UpdateVendor).
Represents an output from a call to [UpdateVendor](api-endpoint:Vendors-UpdateVendor).
Represents a response from an update request containing the updated `WageSetting` object or error messages.
Defines the fields that are included in the response body of a request to the [UpdateWebhookSubscription](api-endpoint:WebhookSubscriptions-UpdateWebhookSubscription) endpoint.
Defines the fields that are included in the response body of a request to the [UpdateWebhookSubscriptionSignatureKey](api-endpoint:WebhookSubscriptions-UpdateWebhookSubscriptionSignatureKey) endpoint.
The response to a request to update a `WorkweekConfig` object.
Represents an [UpsertBookingCustomAttribute](api-endpoint:BookingCustomAttributes-UpsertBookingCustomAttribute) response.
No description provided by the author
Represents an [UpsertCustomerCustomAttribute](api-endpoint:CustomerCustomAttributes-UpsertCustomerCustomAttribute) response.
Represents an [UpsertLocationCustomAttribute](api-endpoint:LocationCustomAttributes-UpsertLocationCustomAttribute) response.
Represents an [UpsertMerchantCustomAttribute](api-endpoint:MerchantCustomAttributes-UpsertMerchantCustomAttribute) response.
Represents a response from upserting order custom attribute definitions.
No description provided by the author
Represents an `UpsertSnippet` response.
No description provided by the author
No description provided by the author
V1Order.
V1OrderHistoryEntry.
No description provided by the author
A tender represents a discrete monetary exchange.
No description provided by the author
Represents a supplier to a seller.
Represents a contact of a [Vendor](entity:Vendor).
No description provided by the author
No description provided by the author
No description provided by the author
Defines the fields that are included in the response body of a request to the [VoidTransaction](api-endpoint:Transactions-VoidTransaction) endpoint.
Represents information about the overtime exemption status, job assignments, and compensation for a [team member](entity:TeamMember).
Represents the details of a webhook subscription, including notification URL, event types, and signature key.
Sets the day of the week and hour of the day that a business starts a workweek.

# Interfaces

No description provided by the author
FileParamOption adapts the behavior of the FileParam.

# Type aliases

No description provided by the author
No description provided by the author
A list of products to return to external callers.
No description provided by the author
Defines the values for the `archived_state` query expression used in [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) to return the archived, not archived or either type of catalog items.
Indicates the current verification status of a `BankAccount` object.
Indicates the financial purpose of the bank account.
Supported sources a booking was created from.
Supported types of a booking creator.
Supported booking statuses.
Time units of a service duration for bookings.
Supported types of location where service is provided.
The category of the seller’s cancellation policy.
Types of daily appointment limits.
Policies for accepting bookings.
Choices of customer-facing time zone used for bookings.
Indicates a card's brand, such as `VISA` or `MASTERCARD`.
Indicates the brand for a co-branded card.
Indicates a card's prepaid type, such as `NOT_PREPAID` or `PREPAID`.
Indicates a card's type, such as `CREDIT` or `DEBIT`.
The types of events on a CashDrawerShift.
The current state of a cash drawer shift.
Indicates the type of a category.
Defines the visibility of a custom attribute to applications other than their creating application.
Defines the visibility of a custom attribute to sellers in Square client applications, Square APIs or in Square UIs (including Square Point of Sale applications and Square Dashboard).
Defines the possible types for a custom attribute.
No description provided by the author
How to apply a CatalogDiscount to a CatalogItem.
Standard dietary preferences for food and beverage items that are recommended on item creation.
The type of dietary preference for the `FOOD_AND_BEV` type of items and integredients.
Standard ingredients for food and beverage items that are recommended on item creation.
The type of a CatalogItem.
Defines the type of `CatalogModifierList`.
Indicates whether a CatalogModifierList supports multiple selections.
Possible types of CatalogObjects returned from the catalog, each containing type-specific properties in the `*_data` field corresponding to the specified object type.
Indicates whether the price of a CatalogItemVariation should be entered manually at the time of sale.
Determines a seller's option on Quick Amounts feature.
Determines the type of a specific Quick Amount.
Supported timings when a pending change, as an action, takes place to a subscription.
No description provided by the author
No description provided by the author
No description provided by the author
An enum for ComponentType.
Indicates the country associated with another entity, such as a business.
Indicates the associated currency for an amount of money.
The level of permission that a seller or other applications requires to view this custom attribute definition.
Indicates the method used to create the customer profile.
Indicates whether customers should be included in, or excluded from, the result set when they match the filtering criteria.
Specifies customer attributes as the sort key to customer profiles returned from a search.
Describes the input type of the data.
Indicates the specific day of the week.
List of possible destinations against which a payout can be made.
An enum identifier of the device type.
DeviceCode.Status enum.
An enum for ExternalPower.
No description provided by the author
The type of the dispute evidence.
The list of possible reasons why a cardholder might initiate a dispute with their bank.
The list of possible dispute states.
The status of the Employee being retrieved.
Indicates which high-level category of error has occurred during a request to the Connect API.
Indicates the specific error that occurred during a request to a Square API.
Indicates which products matched by a CatalogPricingRule will be excluded if the pricing rule uses an exclude set.
The schedule type of the delivery fulfillment.
The `line_item_application` describes what order line items this fulfillment applies to.
The schedule type of the pickup fulfillment.
The current state of this fulfillment.
The type of fulfillment.
Indicates the reason for deducting money from a [gift card](entity:GiftCard).
Indicates the reason for adding money to a [gift card](entity:GiftCard).
Indicates the reason for blocking a [gift card](entity:GiftCard).
Indicates the reason for clearing the balance of a [gift card](entity:GiftCard).
Indicates the reason for deactivating a [gift card](entity:GiftCard).
Indicates the status of a [gift card](entity:GiftCard) redemption.
Indicates the type of [gift card activity](entity:GiftCardActivity).
Indicates the reason for unblocking a [gift card](entity:GiftCard).
Indicates the source that generated the gift card account number (GAN).
Indicates the gift card state.
Indicates the gift card type.
Indicates whether Square should alert the merchant when the inventory quantity of a CatalogItemVariation is low.
Indicates how the inventory change was applied to a tracked product quantity.
Indicates the state of a tracked item quantity in the lifecycle of goods.
Indicates the automatic payment method for an [invoice payment request](entity:InvoicePaymentRequest).
Indicates where to render a custom field on the Square-hosted invoice page and in emailed or PDF copies of the invoice.
Indicates how Square delivers the [invoice](entity:Invoice) to the customer.
The status of a payment request reminder.
Specifies the action for Square to take for processing the invoice.
Indicates the type of the payment request.
The field to use for sorting.
Indicates the status of an invoice.
Enumerates the possible pay types that a job can be assigned.
The capabilities a location might have.
A location's status.
A location's type.
Defines whether the event was generated by the Square Point of Sale.
The type of the loyalty event.
Indicates how taxes should be treated when calculating the purchase amount used for loyalty points accrual.
The type of the accrual rule that defines how buyers can earn points.
Indicates the scope of the reward tier.
The type of discount the reward tier offers.
Indicates whether the program is currently active.
Indicates the type of points incentive for a [loyalty promotion](entity:LoyaltyPromotion), which is used to determine how buyers can earn points from the promotion.
Indicates the status of a [loyalty promotion](entity:LoyaltyPromotion).
Indicates the time period that the [trigger limit](entity:LoyaltyPromotionTriggerLimit) applies to, which is used to determine the number of times a buyer can earn points for a [loyalty promotion](entity:LoyaltyPromotion).
The status of the loyalty reward.
Unit of area used to measure a quantity.
No description provided by the author
The unit of length used to measure a quantity.
Unit of time used to measure a quantity (a duration).
Describes the type of this unit and indicates which field contains the unit information.
The unit of volume used to measure a quantity.
Unit of weight used to measure a quantity.
No description provided by the author
Indicates whether this is a line-item or order-level discount.
Indicates how the discount is applied to the associated line item or order.
Represents the line item type.
Indicates whether this is a line-item or order-level tax.
Indicates how the tax is applied to the associated line item or order.
Represents a phase in the process of calculating order totals.
Indicates whether this is a line-item or order-level apportioned service charge.
Indicates whether the service charge will be treated as a value-holding line item or apportioned toward a line item.
No description provided by the author
The state of the order.
Describes the action to be applied to a delayed capture payment when the delay_duration has elapsed.
No description provided by the author
Represents the type of payout fee that can incur as part of a payout.
Payout status types.
The type of payout: “BATCH” or “SIMPLE”.
Indicates the Square product used to generate a change.
No description provided by the author
Indicates a refund's current status.
The status of the domain registration.
No description provided by the author
Defines supported stock levels of the item inventory.
Specifies the sort key for events returned from a search.
Specifies which timestamp to use to sort `SearchOrder` results.
The field to sort the returned [Vendor](entity:Vendor) objects by.
Specifies the `status` of `Shift` records to be returned.
Enumerates the `Shift` fields to sort on.
Enumerates the possible status of a `Shift`.
Defines the logic used to apply a workday filter.
The order (e.g., chronological or alphabetical) in which results from a request are returned.
Supported types of an action as a pending change to a subscription.
Determines the billing cadence of a [Subscription](entity:Subscription).
Supported info codes of a subscription event.
Supported types of an event occurred to a subscription.
Determines the pricing of a [Subscription](entity:Subscription).
Supported subscription statuses.
When to calculate the taxes due on a cart.
Whether to the tax amount should be additional to or included in the CatalogItem price.
Enumerates the possible assignment types that the team member can have.
Enumerates the possible statuses the team member can have within a business.
Indicates the bank account payment's current status.
No description provided by the author
No description provided by the author
Indicates the method used to enter the card's details.
Indicates the card transaction's current status.
No description provided by the author
Indicates a tender's type.
Describes the type of this unit and indicates which field contains the unit information.
Indicates the Square product used to process a transaction.
No description provided by the author
No description provided by the author
The brand of a credit card.
No description provided by the author
No description provided by the author
No description provided by the author
The status of the [Vendor](entity:Vendor), whether a [Vendor](entity:Vendor) is active or inactive.
Enumeration of visibility-filter values used to set the ability to view custom attributes or custom attribute definitions.
The days of the week.