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": "69aea152-ba70-49a3-a31c-044ac1651146",
"updatedAt": "2021-03-12T15:57:20.239Z",
"createdAt": "2021-03-12T15:57:20.239Z",
"clientId": "523afbe7-36dc-4654-9dba-e7167d0e5e2d",
"mcc": "4040",
"status": true,
"platformFeeEnabled": true,
"platformFees": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"paymentMethod": "credit",
"percentage": 2.5,
"fixedAmount": null,
"installment": null,
"createdAt": "2021-03-12T15:57:20.239Z",
"updatedAt": "2021-03-12T15:57:20.239Z"
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"paymentMethod": "pix",
"percentage": null,
"fixedAmount": 50,
"installment": null,
"createdAt": "2021-03-12T15:57:20.239Z",
"updatedAt": "2021-03-12T15:57:20.239Z"
}
],
"providers": [
{
"id": "72cc1ff1-5f6e-4eb2-9cc5-6a3a85525e4b",
"updatedAt": "2021-03-12T15:57:20.239Z",
"createdAt": "2021-03-12T15:57:20.239Z",
"name": "PagSeguro",
"priority": 1,
"credentials": {
"type": "PAGSEGURO",
"token": "1B2B32530CA23412AB63843240F5633",
"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": "69aea152-ba70-49a3-a31c-044ac1651146",
"updatedAt": "2021-03-12T15:57:20.239Z",
"createdAt": "2021-03-12T15:57:20.239Z",
"clientId": "523afbe7-36dc-4654-9dba-e7167d0e5e2d",
"mcc": "4040",
"status": true,
"platformFeeEnabled": true,
"platformFees": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"paymentMethod": "credit",
"percentage": 2.5,
"fixedAmount": null,
"installment": null,
"createdAt": "2021-03-12T15:57:20.239Z",
"updatedAt": "2021-03-12T15:57:20.239Z"
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"paymentMethod": "pix",
"percentage": null,
"fixedAmount": 50,
"installment": null,
"createdAt": "2021-03-12T15:57:20.239Z",
"updatedAt": "2021-03-12T15:57:20.239Z"
}
],
"providers": [
{
"id": "72cc1ff1-5f6e-4eb2-9cc5-6a3a85525e4b",
"updatedAt": "2021-03-12T15:57:20.239Z",
"createdAt": "2021-03-12T15:57:20.239Z",
"name": "PagSeguro",
"priority": 1,
"credentials": {
"type": "PAGSEGURO",
"token": "1B2B32530CA23412AB63843240F5633",
"email": "email@gmail.com"
},
"acquirer": {
"merchantId": "1111111111",
"bin": [
{
"brand": "Mastercard",
"value": "550259",
"merchantId": "2222222222"
},
{
"brand": "Visa",
"value": "448768",
"merchantId": "3333333333"
}
]
}
}
]
}Path Parameters
Id do merchant
Response
200 - application/json
Identificador do merchant
Data de criação
Identificador do client
Código mcc do cadatro do lojista no adquirente
Status do merchant
Available options:
active, deleted, pending Show child attributes
Show child attributes
Indica se o platform fee está ativo para o merchant
Example:
false
Regras de platform fee cadastradas para o merchant
Show child attributes
Show child attributes
Related topics
Sobre as APIs da MalgaTratamento de erros na integraçãoRecuperar detalhes de assinaturaRecuperar detalhes de um cycle específicoWas this page helpful?