Deletar vededor pelo id
curl --request DELETE \
--url https://api.malga.io/v1/vendors/{id} \
--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/vendors/{id}', 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/vendors/{id}"
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))
}{
"error": {
"type": "api_error",
"code": 123,
"declinedCode": "<string>",
"key": "<string>",
"businessCode": "<string>",
"message": "<string>",
"details": "<array>"
}
}{
"error": {
"type": "api_error",
"code": 123,
"declinedCode": "<string>",
"key": "<string>",
"businessCode": "<string>",
"message": "<string>",
"details": "<array>"
}
}Vendors
Deletar vededor pelo id
DELETE
/
v1
/
vendors
/
{id}
Deletar vededor pelo id
curl --request DELETE \
--url https://api.malga.io/v1/vendors/{id} \
--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/vendors/{id}', 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/vendors/{id}"
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))
}{
"error": {
"type": "api_error",
"code": 123,
"declinedCode": "<string>",
"key": "<string>",
"businessCode": "<string>",
"message": "<string>",
"details": "<array>"
}
}{
"error": {
"type": "api_error",
"code": 123,
"declinedCode": "<string>",
"key": "<string>",
"businessCode": "<string>",
"message": "<string>",
"details": "<array>"
}
}Related topics
Deletar customer pelo idDeletar webhook pelo idDeletar merchant pelo idDeletar uma regra de platform fee pelo IDWas this page helpful?
⌘I