Lista os códigos de facilitador por bandeira do cliente
curl --request GET \
--url https://api.malga.io/v1/settings/payment-facilitators \
--header 'X-Api-Key: <api-key>' \
--header 'X-Client-Id: <api-key>'const options = {method: 'GET', headers: {'X-Client-Id': '<api-key>', 'X-Api-Key': '<api-key>'}};
fetch('https://api.malga.io/v1/settings/payment-facilitators', 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/settings/payment-facilitators"
req, _ := http.NewRequest("GET", 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))
}{
"paymentFacilitators": [
{
"cardBrand": "mastercard",
"paymentFacilitatorId": "YOUR_MASTERCARD_PFID"
},
{
"cardBrand": "visa",
"paymentFacilitatorId": "YOUR_VISA_PFID"
}
]
}Settings
Listar códigos de facilitador por bandeira
Retorna os códigos de facilitador (paymentFacilitatorId) cadastrados para o X-Client-Id, um por bandeira, em ordem alfabética de bandeira. Sem cadastro, retorna a lista vazia.
GET
/
v1
/
settings
/
payment-facilitators
Lista os códigos de facilitador por bandeira do cliente
curl --request GET \
--url https://api.malga.io/v1/settings/payment-facilitators \
--header 'X-Api-Key: <api-key>' \
--header 'X-Client-Id: <api-key>'const options = {method: 'GET', headers: {'X-Client-Id': '<api-key>', 'X-Api-Key': '<api-key>'}};
fetch('https://api.malga.io/v1/settings/payment-facilitators', 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/settings/payment-facilitators"
req, _ := http.NewRequest("GET", 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))
}{
"paymentFacilitators": [
{
"cardBrand": "mastercard",
"paymentFacilitatorId": "YOUR_MASTERCARD_PFID"
},
{
"cardBrand": "visa",
"paymentFacilitatorId": "YOUR_VISA_PFID"
}
]
}Was this page helpful?