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
- "Build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>) of %{repository_slug}@%{branch} in PR <%{pull_request_url}|#%{pull_request_number}> by %{author} %{result} in %{duration}"
Additional information and an example cURL request can be found in the [Create a Catalog Image recipe](https://developer.squareup.com/docs/more-apis/catalog/cookbook/create-catalog-images).
result = catalog_api.create_catalog_image(request)
272
+
273
+
if result.is_success():
274
+
print(result.body)
275
+
elif result.is_error():
276
+
print(result.errors)
277
+
```
278
+
202
279
## Catalog Info
203
280
204
281
Returns information about the Square Catalog API, such as batch size
@@ -246,7 +323,7 @@ def list_catalog(self,
246
323
| Parameter | Type | Tags | Description |
247
324
| --- | --- | --- | --- |
248
325
|`cursor`|`string`| Query, Optional | The pagination cursor returned in the previous response. Leave unset for an initial request.<br>See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. |
249
-
|`types`|`string`| Query, Optional | An optional case-insensitive, comma-separated list of object types to retrieve, for example<br>`ITEM,ITEM_VARIATION,CATEGORY,IMAGE`.<br><br>The legal values are taken from the [CatalogObjectType](#type-catalogobjecttype)<br>enumeration, namely `ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`,<br>`MODIFIER`, `MODIFIER_LIST`, or `IMAGE`. |
326
+
|`types`|`string`| Query, Optional | An optional case-insensitive, comma-separated list of object types to retrieve, for example<br>`ITEM,ITEM_VARIATION,CATEGORY,IMAGE`.<br><br>The legal values are taken from the CatalogObjectType enum:<br>`ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`,<br>`MODIFIER`, `MODIFIER_LIST`, or `IMAGE`. |
|`object_id`|`string`| Template, Required | The ID of the [CatalogObject](#type-catalogobject)to be deleted. When an object is deleted, other<br>objects in the graph that depend on that object will be deleted as well (for example, deleting a<br>[CatalogItem](#type-catalogitem)will delete its [CatalogItemVariation](#type-catalogitemvariation)s). |
401
+
|`object_id`|`string`| Template, Required | The ID of the catalog object to be deleted. When an object is deleted, other<br>objects in the graph that depend on that object will be deleted as well (for example, deleting a<br>catalog item will delete its catalog item variations). |
|`object_id`|`string`| Template, Required | The object ID of any type of [CatalogObject](#type-catalogobject)s to be retrieved. |
364
-
|`include_related_objects`|`bool`| Query, Optional | If `true`, the response will include additional objects that are related to the<br>requested object, as follows:<br><br>If the `object` field of the response contains a [CatalogItem](#type-catalogitem),<br>its associated [CatalogCategory](#type-catalogcategory), [CatalogTax](#type-catalogtax)es,<br>[CatalogImage](#type-catalogimage)s and [CatalogModifierList](#type-catalogmodifierlist)s<br>will be returned in the `related_objects` field of the response. If the `object`<br>field of the response contains a [CatalogItemVariation](#type-catalogitemvariation),<br>its parent [CatalogItem](#type-catalogitem) will be returned in the `related_objects` field of<br>the response.<br><br>Default value: `false`|
440
+
|`object_id`|`string`| Template, Required | The object ID of any type of catalog objects to be retrieved. |
441
+
|`include_related_objects`|`bool`| Query, Optional | If `true`, the response will include additional objects that are related to the<br>requested object, as follows:<br><br>If the `object` field of the response contains a CatalogItem,<br>its associated CatalogCategory, CatalogTax objects,<br>CatalogImages and CatalogModifierLists<br>will be returned in the `related_objects` field of the response. If the `object`<br>field of the response contains a CatalogItemVariation,<br>its parent CatalogItem will be returned in the `related_objects` field of<br>the response.<br><br>Default value: `false`|
365
442
366
443
### Response Type
367
444
@@ -389,6 +466,13 @@ Queries the targeted catalog using a variety of query types:
389
466
[CatalogQueryText](#type-catalogquerytext),
390
467
[CatalogQueryItemsForTax](#type-catalogqueryitemsfortax), and
Copy file name to clipboardExpand all lines: doc/customers.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,9 @@ def list_customers(self,
34
34
35
35
| Parameter | Type | Tags | Description |
36
36
| --- | --- | --- | --- |
37
-
|`cursor`|`string`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this to retrieve the next set of results for your original query.<br><br>See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. |
38
-
|`sort_field`|[`str (Customer Sort Field)`](/doc/models/customer-sort-field.md)| Query, Optional | Indicates how Customers should be sorted.Default: `DEFAULT`. |
39
-
|`sort_order`|[`str (Sort Order)`](/doc/models/sort-order.md)| Query, Optional | Indicates whether Customers should be sorted in ascending (`ASC`) or<br>descending (`DESC`) order.Default: `ASC`. |
37
+
|`cursor`|`string`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this to retrieve the next set of results for your original query.<br><br>See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. |
38
+
|`sort_field`|[`str (Customer Sort Field)`](/doc/models/customer-sort-field.md)| Query, Optional | Indicates how Customers should be sorted.<br><br>Default: `DEFAULT`. |
39
+
|`sort_order`|[`str (Sort Order)`](/doc/models/sort-order.md)| Query, Optional | Indicates whether Customers should be sorted in ascending (`ASC`) or<br>descending (`DESC`) order.<br><br>Default: `ASC`. |
40
40
41
41
### Response Type
42
42
@@ -228,9 +228,8 @@ the new `customer_id` to update merged profiles.
228
228
229
229
You cannot edit a customer's cards on file with this endpoint. To make changes
230
230
to a card on file, you must delete the existing card on file with the
231
-
[DeleteCustomerCard](#endpoint-customers-deletecustomercard) endpoint, then
|`catalog_object_id`|`string`| Template, Required | ID of the [CatalogObject](#type-catalogobject) to retrieve. |
247
247
|`location_ids`|`string`| Query, Optional | The [Location](#type-location) IDs to look up as a comma-separated<br>list. An empty list queries all locations. |
248
-
|`cursor`|`string`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this to retrieve the next set of results for the original query.<br><br>See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. |
248
+
|`cursor`|`string`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this to retrieve the next set of results for the original query.<br><br>See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. |
|`catalog_object_id`|`string`| Template, Required | ID of the [CatalogObject](#type-catalogobject) to retrieve. |
292
292
|`location_ids`|`string`| Query, Optional | The [Location](#type-location) IDs to look up as a comma-separated<br>list. An empty list queries all locations. |
293
-
|`cursor`|`string`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this to retrieve the next set of results for the original query.<br><br>See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information. |
293
+
|`cursor`|`string`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this to retrieve the next set of results for the original query.<br><br>See the [Pagination](https://developer.squareup.com/docs/docs/working-with-apis/pagination) guide for more information. |
Provides the details for all of a business's locations.
20
+
Provides information of all locations of a business.
20
21
21
22
Most other Connect API endpoints have a required `location_id` path parameter.
22
23
The `id` field of the [`Location`](#type-location) objects returned by this
@@ -41,6 +42,47 @@ elif result.is_error():
41
42
print(result.errors)
42
43
```
43
44
45
+
## Create Location
46
+
47
+
Creates a location.
48
+
For more information about locations, see [Locations API Overview](https://developer.squareup.com/docs/locations-api).
49
+
50
+
```python
51
+
defcreate_location(self,
52
+
body)
53
+
```
54
+
55
+
### Parameters
56
+
57
+
| Parameter | Type | Tags | Description |
58
+
| --- | --- | --- | --- |
59
+
|`body`|[`Create Location Request`](/doc/models/create-location-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
0 commit comments