Skip to content
Merchants

Set Merchant Metadata

POST/api/merchants/{merchantId}/metadata

This endpoint allows you to set metadata on a Merchant. Metadata is merged with any existing keys — only the keys provided in the request are affected. To remove a key, set its value to an empty string.

Path parameters

  • merchantIdrequired string
    The Merchant id.

Request body

  • metadatarequired object
    A map of key-value pairs to attach to the Merchant. Keys must be alphanumeric with underscores or dashes (max 64 characters). Values must be strings (max 256 characters) containing only letters, numbers, spaces and _-.,@:/. A maximum of 10 keys is allowed.

Responses

Request
curl -X POST https://service.centrapay.com/api/merchants/5ee0c486308f590260d9a07f/metadata \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"metadata": {
"deviceId": "device-001"
}
}'