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
Lists the customer-related custom attribute definitions that belong to a Square seller account.
27
+
Lists the customer-related [custom attribute definitions](../../doc/models/custom-attribute-definition.md) that belong to a Square seller account.
28
28
29
29
When all response pages are retrieved, the results include all custom attribute definitions
30
30
that are visible to the requesting application, including those that are created by other
31
-
applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
31
+
applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that
32
+
seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
32
33
33
34
```ts
34
35
asynclistCustomerCustomAttributeDefinitions(
@@ -68,8 +69,8 @@ try {
68
69
69
70
# Create Customer Custom Attribute Definition
70
71
71
-
Creates a customer-related custom attribute definition for a Square seller account. Use this
72
-
endpoint to define a custom attribute that can be associated with customer profiles.
72
+
Creates a customer-related [custom attribute definition](../../doc/models/custom-attribute-definition.md) for a Square seller account.
73
+
Use this endpoint to define a custom attribute that can be associated with customer profiles.
73
74
74
75
A custom attribute definition specifies the `key`, `visibility`, `schema`, and other properties
75
76
for a custom attribute. After the definition is created, you can call
@@ -127,7 +128,7 @@ try {
127
128
128
129
# Delete Customer Custom Attribute Definition
129
130
130
-
Deletes a customer-related custom attribute definition from a Square seller account.
131
+
Deletes a customer-related [custom attribute definition](../../doc/models/custom-attribute-definition.md) from a Square seller account.
131
132
132
133
Deleting a custom attribute definition also deletes the corresponding custom attribute from
133
134
all customer profiles in the seller's Customer Directory.
@@ -171,10 +172,11 @@ try {
171
172
172
173
# Retrieve Customer Custom Attribute Definition
173
174
174
-
Retrieves a customer-related custom attribute definition from a Square seller account.
175
+
Retrieves a customer-related [custom attribute definition](../../doc/models/custom-attribute-definition.md) from a Square seller account.
175
176
176
177
To retrieve a custom attribute definition created by another application, the `visibility`
177
-
setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
178
+
setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
179
+
(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
178
180
179
181
```ts
180
182
asyncretrieveCustomerCustomAttributeDefinition(
@@ -215,7 +217,7 @@ try {
215
217
216
218
# Update Customer Custom Attribute Definition
217
219
218
-
Updates a customer-related custom attribute definition for a Square seller account.
220
+
Updates a customer-related [custom attribute definition](../../doc/models/custom-attribute-definition.md) for a Square seller account.
219
221
220
222
Use this endpoint to update the following fields: `name`, `description`, `visibility`, or the
221
223
`schema` for a `Selection` data type.
@@ -271,7 +273,7 @@ try {
271
273
272
274
# Bulk Upsert Customer Custom Attributes
273
275
274
-
Creates or updates custom attributes for customer profiles as a bulk operation.
276
+
Creates or updates [custom attributes](../../doc/models/custom-attribute.md) for customer profiles as a bulk operation.
275
277
276
278
Use this endpoint to set the value of one or more custom attributes for one or more customer profiles.
277
279
A custom attribute is based on a custom attribute definition in a Square seller account, which is
@@ -283,7 +285,8 @@ and provides a customer ID and custom attribute. Each upsert response is returne
283
285
of the corresponding request.
284
286
285
287
To create or update a custom attribute owned by another application, the `visibility` setting
286
-
must be `VISIBILITY_READ_WRITE_VALUES`.
288
+
must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
289
+
(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
287
290
288
291
```ts
289
292
asyncbulkUpsertCustomerCustomAttributes(
@@ -327,7 +330,7 @@ try {
327
330
328
331
# List Customer Custom Attributes
329
332
330
-
Lists the custom attributes associated with a customer profile.
333
+
Lists the [custom attributes](../../doc/models/custom-attribute.md) associated with a customer profile.
331
334
332
335
You can use the `with_definitions` query parameter to also retrieve custom attribute definitions
333
336
in the same call.
@@ -380,10 +383,11 @@ try {
380
383
381
384
# Delete Customer Custom Attribute
382
385
383
-
Deletes a custom attribute associated with a customer profile.
386
+
Deletes a [custom attribute](../../doc/models/custom-attribute.md) associated with a customer profile.
384
387
385
388
To delete a custom attribute owned by another application, the `visibility` setting must be
386
-
`VISIBILITY_READ_WRITE_VALUES`.
389
+
`VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
390
+
(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
387
391
388
392
```ts
389
393
asyncdeleteCustomerCustomAttribute(
@@ -425,13 +429,14 @@ try {
425
429
426
430
# Retrieve Customer Custom Attribute
427
431
428
-
Retrieves a custom attribute associated with a customer profile.
432
+
Retrieves a [custom attribute](../../doc/models/custom-attribute.md) associated with a customer profile.
429
433
430
434
You can use the `with_definition` query parameter to also retrieve the custom attribute definition
431
435
in the same call.
432
436
433
437
To retrieve a custom attribute owned by another application, the `visibility` setting must be
434
-
`VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
438
+
`VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
439
+
(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
435
440
436
441
```ts
437
442
asyncretrieveCustomerCustomAttribute(
@@ -478,14 +483,15 @@ try {
478
483
479
484
# Upsert Customer Custom Attribute
480
485
481
-
Creates or updates a custom attribute for a customer profile.
486
+
Creates or updates a [custom attribute](../../doc/models/custom-attribute.md) for a customer profile.
482
487
483
488
Use this endpoint to set the value of a custom attribute for a specified customer profile.
484
489
A custom attribute is based on a custom attribute definition in a Square seller account, which
485
490
is created using the [CreateCustomerCustomAttributeDefinition](../../doc/api/customer-custom-attributes.md#create-customer-custom-attribute-definition) endpoint.
486
491
487
492
To create or update a custom attribute owned by another application, the `visibility` setting
488
-
must be `VISIBILITY_READ_WRITE_VALUES`.
493
+
must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
494
+
(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
Copy file name to clipboardExpand all lines: doc/api/disputes.md
+14-16Lines changed: 14 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,8 @@ async listDisputes(
39
39
| Parameter | Type | Tags | Description |
40
40
| --- | --- | --- | --- |
41
41
|`cursor`|`string \| undefined`| 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>For more information, see [Pagination](https://developer.squareup.com/docs/basics/api101/pagination). |
42
-
|`states`|[`string \| undefined`](../../doc/models/dispute-state.md)| Query, Optional | The dispute states to filter the result.<br>If not specified, the endpoint returns all open disputes (the dispute status is not `INQUIRY_CLOSED`, `WON`,<br>or `LOST`). |
43
-
|`locationId`|`string \| undefined`| Query, Optional | The ID of the location for which to return a list of disputes.If not specified, the endpoint returns<br>all open disputes (the dispute status is not `INQUIRY_CLOSED`, `WON`, or `LOST`) associated with all locations. |
42
+
|`states`|[`string \| undefined`](../../doc/models/dispute-state.md)| Query, Optional | The dispute states used to filter the result.If not specified, the endpoint returns all disputes. |
43
+
|`locationId`|`string \| undefined`| Query, Optional | The ID of the location for which to return a list of disputes.<br>If not specified, the endpoint returnsdisputes associated with all locations. |
|`disputeId`|`string`| Template, Required | The ID of the dispute. |
165
-
|`cursor`|`string \| undefined`| 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>For more information, see [Pagination](https://developer.squareup.com/docs/basics/api101/pagination). |
165
+
|`cursor`|`string \| undefined`| 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>For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
|`disputeId`|`string`| Template, Required | The ID of the dispute you want to upload evidence for. |
207
+
|`disputeId`|`string`| Template, Required | The ID of the dispute for which you want to upload evidence. |
208
208
|`request`|[`CreateDisputeEvidenceFileRequest \| undefined`](../../doc/models/create-dispute-evidence-file-request.md)| Form (JSON-Encoded), Optional | Defines the parameters for a `CreateDisputeEvidenceFile` request. |
|`disputeId`|`string`| Template, Required | The ID of the dispute you want to upload evidence for. |
249
+
|`disputeId`|`string`| Template, Required | The ID of the dispute for which you want to upload evidence. |
250
250
|`body`|[`CreateDisputeEvidenceTextRequest`](../../doc/models/create-dispute-evidence-text-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