Deletar uma regra de platform fee pelo ID
curl --request DELETE \
--url https://api.malga.io/v1/merchants/{merchantId}/platform-fee/{platformFeeId} \
--header 'X-Api-Key: <api-key>' \
--header 'X-Client-Id: <api-key>'const options = {
method: 'DELETE',
headers: {'X-Client-Id': '<api-key>', 'X-Api-Key': '<api-key>'}
};
fetch('https://api.malga.io/v1/merchants/{merchantId}/platform-fee/{platformFeeId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.malga.io/v1/merchants/{merchantId}/platform-fee/{platformFeeId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-Client-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Platform Fee
Deletar uma regra de platform fee pelo ID
DELETE
/
v1
/
merchants
/
{merchantId}
/
platform-fee
/
{platformFeeId}
Deletar uma regra de platform fee pelo ID
curl --request DELETE \
--url https://api.malga.io/v1/merchants/{merchantId}/platform-fee/{platformFeeId} \
--header 'X-Api-Key: <api-key>' \
--header 'X-Client-Id: <api-key>'const options = {
method: 'DELETE',
headers: {'X-Client-Id': '<api-key>', 'X-Api-Key': '<api-key>'}
};
fetch('https://api.malga.io/v1/merchants/{merchantId}/platform-fee/{platformFeeId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.malga.io/v1/merchants/{merchantId}/platform-fee/{platformFeeId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-Client-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Related topics
Deletar vededor pelo idDeletar documentoDeletar recebedor por IDAtualizar regras de platform feeWas this page helpful?
⌘I