> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Square payment observations

> Observe Square payments visible to a read-scoped credential.

Follow the [REST mount guide](https://docs.bijection.com/integrations/native-rest.md) for
`square.payments.observations`. Seal a bearer credential with
`PAYMENTS_READ`. Bind `/v2/payments` at `https://connect.squareup.com` for production
or `https://connect.squareupsandbox.com` for sandbox. Bind a protected
`data` label for payment details.

The app reads Square's `2026-09-16` List Payments endpoint and publishes
records by payment ID, with amounts retained in the API's minor units.
It uses Square's default creation-date window and follows the opaque
`cursor` within each walk. A completed walk starts over on the next poll.
The API is eventually consistent. Missing or aged-out payments stay
published. Configure 1–100 records per page within the 36 KiB limit.

[Square List Payments](https://developer.squareup.com/reference/square/payments-api/ListPayments)

## Write customers

Follow the [native write mount guide](https://docs.bijection.com/integrations/native-rest.md#native-provider-writes). Use mode `square.customers.create-update-delete` with `providerWriter`, endpoint `https://connect.squareup.com` and two writers. Use the production or sandbox Square origin and a sealed merchant bearer with Customers write access. Declare two `providerWriter` receivers with the same mode and label, one with `group: "create"` and one with `group: "change"`, and pass them as `receivers.writers["square.customers.create-update-delete"] = { create, change }`. Send one customer object. HTTP 200 must return the customer ID for create and update. Delete accepts an HTTP 200 reply without provider errors for the exact customer.

Bijection puts the task's scoped receiver key in Square's `idempotency_key` field. The generated key is 44 ASCII characters. Supply the command's logical identity as its `once`. Each task is sent at most once. Use Square’s customer version in updates that need concurrency control. Commands take up to 24 KiB of JSON and carry no read cursor.

[Provider write API](https://developer.squareup.com/reference/square/customers-api/create-customer)

## Orders, catalog, inventory and customers

Use a separate `providerEndpoint` and mount per mode. Bind the same Square origins as the Payments source, the listed bearer permission and a protected `data` label. Initialize with `{ profile: { mode: "provider", provider, limit: 10, selection } }`. Omit `selection` for catalog and customers.

| Provider mode | Path and permission | Selection and identity |
| - | - | - |
| `square.orders.observations` | `/v2/orders/search`, `ORDERS_READ` | One location ID. Keyed by order ID. |
| `square.catalog.observations` | `/v2/catalog/search`, `ITEMS_READ` | Square's default object types, keyed by CatalogObject ID. An explicit `is_deleted: true` removes the corresponding row. |
| `square.inventory.observations` | `/v2/inventory/counts/batch-retrieve`, `INVENTORY_READ` | One location ID. Keyed by the JSON tuple of catalog object ID, location ID and inventory state. Quantity remains a decimal string. |
| `square.customers.observations` | `/v2/customers`, `CUSTOMERS_READ` | Seller's customer profiles keyed by customer ID. |

The modes retain Square's opaque cursor for each walk and restart when it is absent. Missing objects remain landed. Configure 1–100 records within the 36 KiB response limit. Square treats some requested counts as advisory. Oversized responses do not advance the position.

[Square catalog search](https://developer.squareup.com/reference/square/catalog-api/SearchCatalogObjects) · [Square inventory counts](https://developer.squareup.com/reference/square/inventory-api/BatchRetrieveInventoryCounts)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.