Skip to main content
PATCH
/
v1
/
merchants
/
{merchantId}
/
platform-fee
/
enabled
Ativar ou desativar platform fee do merchant
curl --request PATCH \
  --url https://api.malga.io/v1/merchants/{merchantId}/platform-fee/enabled \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --header 'X-Client-Id: <api-key>' \
  --data '
{
  "enabled": true
}
'
{
  "platformFeeEnabled": true
}

Authorizations

X-Client-Id
string
header
required
X-Api-Key
string
header
required

Path Parameters

merchantId
string<uuid>
required

Identificador do merchant

Body

application/json
enabled
boolean
required

Define se o platform fee está ativo (true) ou inativo (false) para o merchant

Example:

true

Response

Platform fee atualizado com sucesso

platformFeeEnabled
boolean

Estado atual do platform fee para o merchant

Example:

true