Creates or updates a custom attribute for a merchant.
POST
/v2/merchants/{merchant_id}/custom-attributes/{key}
Creates or updates a custom attribute for a merchant.
Use this endpoint to set the value of a custom attribute for a specified merchant. A custom attribute is based on a custom attribute definition in a Square seller account, which is created using the CreateMerchantCustomAttributeDefinition endpoint. To create or update a custom attribute owned by another application, the visibility
setting must be VISIBILITY_READ_WRITE_VALUES
.
The ID of the target merchant.
The custom attribute to create or update, with the following fields:
value
. This value must conform to the schema
specified by the definition. For more information, see Supported data types.A unique identifier for this request, used to ensure idempotency. For more information, see Idempotency.