You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/api/catalog.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,10 @@ children.
39
39
IDs can be deleted. The response will only include IDs that were
40
40
actually deleted.
41
41
42
+
To ensure consistency, only one delete request is processed at a time per seller account.
43
+
While one (batch or non-batch) delete request is being processed, other (batched and non-batched)
44
+
delete requests are rejected with the `429` error code.
45
+
42
46
```ts
43
47
asyncbatchDeleteCatalogObjects(
44
48
body: BatchDeleteCatalogObjectsRequest,
@@ -140,6 +144,10 @@ batches will be processed in order as long as the total object count for the
140
144
request (items, variations, modifier lists, discounts, and taxes) is no more
141
145
than 10,000.
142
146
147
+
To ensure consistency, only one update request is processed at a time per seller account.
148
+
While one (batch or non-batch) update request is being processed, other (batched and non-batched)
149
+
update requests are rejected with the `429` error code.
150
+
143
151
```ts
144
152
asyncbatchUpsertCatalogObjects(
145
153
body: BatchUpsertCatalogObjectsRequest,
@@ -472,7 +480,7 @@ async listCatalog(
472
480
| --- | --- | --- | --- |
473
481
|`cursor`|`string \| undefined`| Query, Optional | The pagination cursor returned in the previous response. Leave unset for an initial request.<br>The page size is currently set to be 100.<br>See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. |
474
482
|`types`|`string \| undefined`| Query, Optional | An optional case-insensitive, comma-separated list of object types to retrieve.<br><br>The valid values are defined in the [CatalogObjectType](../../doc/models/catalog-object-type.md) enum, for example,<br>`ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`,<br>`MODIFIER`, `MODIFIER_LIST`, `IMAGE`, etc.<br><br>If this is unspecified, the operation returns objects of all the top level types at the version<br>of the Square API used to make the request. Object types that are nested onto other object types<br>are not included in the defaults.<br><br>At the current API version the default object types are:<br>ITEM, CATEGORY, TAX, DISCOUNT, MODIFIER_LIST,<br>PRICING_RULE, PRODUCT_SET, TIME_PERIOD, MEASUREMENT_UNIT,<br>SUBSCRIPTION_PLAN, ITEM_OPTION, CUSTOM_ATTRIBUTE_DEFINITION, QUICK_AMOUNT_SETTINGS. |
475
-
|`catalogVersion`|`bigint \| undefined`| Query, Optional | The specific version of the catalog objects to be included in the response.<br>This allows you to retrieve historical<br>versions of objects. The specified version value is matched against<br>the [CatalogObject](../../doc/models/catalog-object.md)s' `version` attribute. If not included, results will<br>be from thecurrent version of the catalog. |
483
+
|`catalogVersion`|`bigint \| undefined`| Query, Optional | The specific version of the catalog objects to be included in the response.<br>This allows you to retrieve historicalversions of objects. The specified version value is matched against<br>the [CatalogObject](../../doc/models/catalog-object.md)s' `version` attribute. If not included, results willbe from the<br>current version of the catalog. |
Copy file name to clipboardExpand all lines: doc/api/customers.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,7 +220,8 @@ try {
220
220
221
221
Deletes a customer profile from a business. This operation also unlinks any associated cards on file.
222
222
223
-
As a best practice, you should include the `version` field in the request to enable [optimistic concurrency](https://developer.squareup.com/docs/working-with-apis/optimistic-concurrency) control. The value must be set to the current version of the customer profile.
223
+
As a best practice, include the `version` field in the request to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control.
224
+
If included, the value must be set to the current version of the customer profile.
224
225
225
226
To delete a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.
226
227
@@ -302,9 +303,12 @@ try {
302
303
303
304
# Update Customer
304
305
305
-
Updates a customer profile. To change an attribute, specify the new value. To remove an attribute, specify the value as an empty string or empty object.
306
+
Updates a customer profile. This endpoint supports sparse updates, so only new or changed fields are required in the request.
307
+
To add or update a field, specify the new value. To remove a field, specify `null` and include the `X-Clear-Null` header set to `true`
308
+
(recommended) or specify an empty string (string fields only).
306
309
307
-
As a best practice, you should include the `version` field in the request to enable [optimistic concurrency](https://developer.squareup.com/docs/working-with-apis/optimistic-concurrency) control. The value must be set to the current version of the customer profile.
310
+
As a best practice, include the `version` field in the request to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency) control.
311
+
If included, the value must be set to the current version of the customer profile.
308
312
309
313
To update a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.
0 commit comments