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/checkout.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -311,7 +311,7 @@ def list_payment_links(self,
311
311
312
312
| Parameter | Type | Tags | Description |
313
313
| --- | --- | --- | --- |
314
-
|`cursor`|`str`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this cursor to retrieve the next set of results for the original query.<br>If a cursor is not provided, the endpoint returns the first page of the results.<br>For more information, see [Pagination](https://developer.squareup.com/docs/basics/api101/pagination). |
314
+
|`cursor`|`str`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this cursor to retrieve the next set of results for the original query.<br>If a cursor is not provided, the endpoint returns the first page of the results.<br>For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
315
315
|`limit`|`int`| Query, Optional | A limit on the number of results to return per page. The limit is advisory and<br>the implementation might return more or less results. If the supplied limit is negative, zero, or<br>greater than the maximum limit of 1000, it is ignored.<br><br>Default value: `100`|
Creates multiple [customer profiles](../../doc/models/customer.md) for a business.
138
+
139
+
This endpoint takes a map of individual create requests and returns a map of responses.
140
+
141
+
You must provide at least one of the following values in each create request:
142
+
143
+
-`given_name`
144
+
-`family_name`
145
+
-`company_name`
146
+
-`email_address`
147
+
-`phone_number`
148
+
149
+
```python
150
+
defbulk_create_customers(self,
151
+
body)
152
+
```
153
+
154
+
## Parameters
155
+
156
+
| Parameter | Type | Tags | Description |
157
+
| --- | --- | --- | --- |
158
+
|`body`|[`Bulk Create Customers Request`](../../doc/models/bulk-create-customers-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
159
+
160
+
## Response Type
161
+
162
+
This method returns a `ApiResponse` instance. The `body` property of this instance returns the response data which is of type [`Bulk Create Customers Response`](../../doc/models/bulk-create-customers-response.md).
result = customers_api.bulk_create_customers(body)
205
+
print(result)
206
+
207
+
if result.is_success():
208
+
print(result.body)
209
+
elif result.is_error():
210
+
print(result.errors)
211
+
```
212
+
213
+
214
+
# Bulk Delete Customers
215
+
216
+
Deletes multiple customer profiles.
217
+
218
+
The endpoint takes a list of customer IDs and returns a map of responses.
219
+
220
+
```python
221
+
defbulk_delete_customers(self,
222
+
body)
223
+
```
224
+
225
+
## Parameters
226
+
227
+
| Parameter | Type | Tags | Description |
228
+
| --- | --- | --- | --- |
229
+
|`body`|[`Bulk Delete Customers Request`](../../doc/models/bulk-delete-customers-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
230
+
231
+
## Response Type
232
+
233
+
This method returns a `ApiResponse` instance. The `body` property of this instance returns the response data which is of type [`Bulk Delete Customers Response`](../../doc/models/bulk-delete-customers-response.md).
234
+
235
+
## Example Usage
236
+
237
+
```python
238
+
body = {
239
+
'customer_ids': [
240
+
'8DDA5NZVBZFGAX0V3HPF81HHE0',
241
+
'N18CPRVXR5214XPBBA6BZQWF3C',
242
+
'2GYD7WNXF7BJZW1PMGNXZ3Y8M8'
243
+
]
244
+
}
245
+
246
+
result = customers_api.bulk_delete_customers(body)
247
+
print(result)
248
+
249
+
if result.is_success():
250
+
print(result.body)
251
+
elif result.is_error():
252
+
print(result.errors)
253
+
```
254
+
255
+
256
+
# Bulk Retrieve Customers
257
+
258
+
Retrieves multiple customer profiles.
259
+
260
+
This endpoint takes a list of customer IDs and returns a map of responses.
261
+
262
+
```python
263
+
defbulk_retrieve_customers(self,
264
+
body)
265
+
```
266
+
267
+
## Parameters
268
+
269
+
| Parameter | Type | Tags | Description |
270
+
| --- | --- | --- | --- |
271
+
|`body`|[`Bulk Retrieve Customers Request`](../../doc/models/bulk-retrieve-customers-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
272
+
273
+
## Response Type
274
+
275
+
This method returns a `ApiResponse` instance. The `body` property of this instance returns the response data which is of type [`Bulk Retrieve Customers Response`](../../doc/models/bulk-retrieve-customers-response.md).
276
+
277
+
## Example Usage
278
+
279
+
```python
280
+
body = {
281
+
'customer_ids': [
282
+
'8DDA5NZVBZFGAX0V3HPF81HHE0',
283
+
'N18CPRVXR5214XPBBA6BZQWF3C',
284
+
'2GYD7WNXF7BJZW1PMGNXZ3Y8M8'
285
+
]
286
+
}
287
+
288
+
result = customers_api.bulk_retrieve_customers(body)
289
+
print(result)
290
+
291
+
if result.is_success():
292
+
print(result.body)
293
+
elif result.is_error():
294
+
print(result.errors)
295
+
```
296
+
297
+
298
+
# Bulk Update Customers
299
+
300
+
Updates multiple customer profiles.
301
+
302
+
This endpoint takes a map of individual update requests and returns a map of responses.
303
+
304
+
You cannot use this endpoint to change cards on file. To make changes, use the [Cards API](../../doc/api/cards.md) or [Gift Cards API](../../doc/api/gift-cards.md).
305
+
306
+
```python
307
+
defbulk_update_customers(self,
308
+
body)
309
+
```
310
+
311
+
## Parameters
312
+
313
+
| Parameter | Type | Tags | Description |
314
+
| --- | --- | --- | --- |
315
+
|`body`|[`Bulk Update Customers Request`](../../doc/models/bulk-update-customers-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
316
+
317
+
## Response Type
318
+
319
+
This method returns a `ApiResponse` instance. The `body` property of this instance returns the response data which is of type [`Bulk Update Customers Response`](../../doc/models/bulk-update-customers-response.md).
result = customers_api.bulk_update_customers(body)
341
+
print(result)
342
+
343
+
if result.is_success():
344
+
print(result.body)
345
+
elif result.is_error():
346
+
print(result.errors)
347
+
```
348
+
349
+
131
350
# Search Customers
132
351
133
352
Searches the customer profiles associated with a Square account using one or more supported query filters.
@@ -202,9 +421,6 @@ elif result.is_error():
202
421
203
422
Deletes a customer profile from a business. This operation also unlinks any associated cards on file.
204
423
205
-
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.
206
-
If included, the value must be set to the current version of the customer profile.
207
-
208
424
To delete a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.
209
425
210
426
```python
@@ -276,11 +492,7 @@ elif result.is_error():
276
492
# Update Customer
277
493
278
494
Updates a customer profile. This endpoint supports sparse updates, so only new or changed fields are required in the request.
279
-
To add or update a field, specify the new value. To remove a field, specify `null`
280
-
(recommended) or specify an empty string (string fields only).
281
-
282
-
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.
283
-
If included, the value must be set to the current version of the customer profile.
495
+
To add or update a field, specify the new value. To remove a field, specify `null`.
284
496
285
497
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