Recuperar detalhes de merchant pelo id
curl --request GET \
--url https://api.malga.io/v1/merchants/{id} \
--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/merchants/{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/merchants/{id}"
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))
}{
"id": "9b4f66f3-d45d-4946-b719-48f43fb90c52",
"updatedAt": "2021-03-12T15:57:20.239Z",
"createdAt": "2021-03-12T15:57:20.239Z",
"clientId": "1b2c2ef7-03cd-4012-9d1c-aff50551fae3",
"mcc": "4040",
"status": true,
"platformFeeEnabled": true,
"platformFees": [
{
"id": "74739f85-1bfa-40ae-a003-1c464c8e3c94",
"paymentMethod": "credit",
"percentage": 2.5,
"fixedAmount": null,
"installment": null,
"createdAt": "2021-03-12T15:57:20.239Z",
"updatedAt": "2021-03-12T15:57:20.239Z"
},
{
"id": "0bb96a26-fc53-405c-8e3a-21762913f1a0",
"paymentMethod": "pix",
"percentage": null,
"fixedAmount": 50,
"installment": null,
"createdAt": "2021-03-12T15:57:20.239Z",
"updatedAt": "2021-03-12T15:57:20.239Z"
}
],
"providers": [
{
"id": "cb39fc36-8c4b-4deb-b0c1-2fdd8db2e1ab",
"updatedAt": "2021-03-12T15:57:20.239Z",
"createdAt": "2021-03-12T15:57:20.239Z",
"name": "PagSeguro",
"priority": 1,
"credentials": {
"type": "PAGSEGURO",
"token": "88502FE6602826D6CB38AE64B1419AC",
"email": "email@gmail.com"
},
"acquirer": {
"merchantId": "1111111111",
"bin": [
{
"brand": "Mastercard",
"value": "550259",
"merchantId": "2222222222"
},
{
"brand": "Visa",
"value": "448768",
"merchantId": "3333333333"
}
]
}
}
]
}Merchants
Recuperar detalhes de merchant pelo id
GET
/
v1
/
merchants
/
{id}
Recuperar detalhes de merchant pelo id
curl --request GET \
--url https://api.malga.io/v1/merchants/{id} \
--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/merchants/{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/merchants/{id}"
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))
}{
"id": "9b4f66f3-d45d-4946-b719-48f43fb90c52",
"updatedAt": "2021-03-12T15:57:20.239Z",
"createdAt": "2021-03-12T15:57:20.239Z",
"clientId": "1b2c2ef7-03cd-4012-9d1c-aff50551fae3",
"mcc": "4040",
"status": true,
"platformFeeEnabled": true,
"platformFees": [
{
"id": "74739f85-1bfa-40ae-a003-1c464c8e3c94",
"paymentMethod": "credit",
"percentage": 2.5,
"fixedAmount": null,
"installment": null,
"createdAt": "2021-03-12T15:57:20.239Z",
"updatedAt": "2021-03-12T15:57:20.239Z"
},
{
"id": "0bb96a26-fc53-405c-8e3a-21762913f1a0",
"paymentMethod": "pix",
"percentage": null,
"fixedAmount": 50,
"installment": null,
"createdAt": "2021-03-12T15:57:20.239Z",
"updatedAt": "2021-03-12T15:57:20.239Z"
}
],
"providers": [
{
"id": "cb39fc36-8c4b-4deb-b0c1-2fdd8db2e1ab",
"updatedAt": "2021-03-12T15:57:20.239Z",
"createdAt": "2021-03-12T15:57:20.239Z",
"name": "PagSeguro",
"priority": 1,
"credentials": {
"type": "PAGSEGURO",
"token": "88502FE6602826D6CB38AE64B1419AC",
"email": "email@gmail.com"
},
"acquirer": {
"merchantId": "1111111111",
"bin": [
{
"brand": "Mastercard",
"value": "550259",
"merchantId": "2222222222"
},
{
"brand": "Visa",
"value": "448768",
"merchantId": "3333333333"
}
]
}
}
]
}Response
200 - application/json
Was this page helpful?