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
}
'const options = {
method: 'PATCH',
headers: {
'X-Client-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({enabled: true})
};
fetch('https://api.malga.io/v1/merchants/{merchantId}/platform-fee/enabled', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.malga.io/v1/merchants/{merchantId}/platform-fee/enabled"
payload := strings.NewReader("{\n \"enabled\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Client-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"platformFeeEnabled": true
}Platform Fee
Ativar ou desativar platform fee do merchant
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
}
'const options = {
method: 'PATCH',
headers: {
'X-Client-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({enabled: true})
};
fetch('https://api.malga.io/v1/merchants/{merchantId}/platform-fee/enabled', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.malga.io/v1/merchants/{merchantId}/platform-fee/enabled"
payload := strings.NewReader("{\n \"enabled\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Client-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"platformFeeEnabled": true
}Path Parameters
Identificador do merchant
Body
application/json
Define se o platform fee está ativo (true) ou inativo (false) para o merchant
Example:
true
Response
Platform fee atualizado com sucesso
Estado atual do platform fee para o merchant
Example:
true
Related topics
June 18, 2026 - Platform FeeComeçando em meios de pagamentoDeletar uma regra de platform fee pelo IDAtualizar regras de platform feeWas this page helpful?
⌘I