Deletar recebedor por ID
curl --request DELETE \
--url https://api.malga.io/v1/sellers/{id} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Client-Id: <api-key>' \
--data '
{
"merchantId": "4dbe1e43-7605-4e71-8973-76cfe16ce496"
}
'const options = {
method: 'DELETE',
headers: {
'X-Client-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({merchantId: '4dbe1e43-7605-4e71-8973-76cfe16ce496'})
};
fetch('https://api.malga.io/v1/sellers/{id}', 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/sellers/{id}"
payload := strings.NewReader("{\n \"merchantId\": \"4dbe1e43-7605-4e71-8973-76cfe16ce496\"\n}")
req, _ := http.NewRequest("DELETE", 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))
}{
"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>"
}
}Sellers
Deletar recebedor por ID
DELETE
/
v1
/
sellers
/
{id}
Deletar recebedor por ID
curl --request DELETE \
--url https://api.malga.io/v1/sellers/{id} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Client-Id: <api-key>' \
--data '
{
"merchantId": "4dbe1e43-7605-4e71-8973-76cfe16ce496"
}
'const options = {
method: 'DELETE',
headers: {
'X-Client-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({merchantId: '4dbe1e43-7605-4e71-8973-76cfe16ce496'})
};
fetch('https://api.malga.io/v1/sellers/{id}', 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/sellers/{id}"
payload := strings.NewReader("{\n \"merchantId\": \"4dbe1e43-7605-4e71-8973-76cfe16ce496\"\n}")
req, _ := http.NewRequest("DELETE", 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))
}{
"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>"
}
}Was this page helpful?