POST
getMerchantInfo
Obtiene la información de tu cuenta merchant: razón social, RFC, CLABE maestra (para abonar saldo), comisión por transferencia y monto máximo permitido.
Endpoint
POST
https://magicpay.b4a.io/functions/getMerchantInfoHeaders
| Header | Valor |
|---|---|
| Content-Type | application/json |
| x-parse-application-id | YOUR_APP_ID |
| x-parse-rest-api-key | YOUR_REST_KEY |
Parámetros
| Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|
| apiKey | string | Sí | Tu API key de merchant. |
Ejemplo de Request
cURL
curl -X POST 'https://magicpay.b4a.io/functions/getMerchantInfo' \
-H 'Content-Type: application/json' \
-H 'x-parse-application-id: YOUR_APP_ID' \
-H 'x-parse-rest-api-key: YOUR_REST_KEY' \
-d '{
"apiKey": "pk_live_xxxxxxxxxxxxx"
}'JavaScript
const response = await fetch('https://magicpay.b4a.io/functions/getMerchantInfo', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-parse-application-id': 'YOUR_APP_ID',
'x-parse-rest-api-key': 'YOUR_REST_KEY',
},
body: JSON.stringify({
"apiKey": "pk_live_xxxxxxxxxxxxx"
}),
});
const data = await response.json();
console.log(data);Ejemplo de Respuesta
JSON
{
"result": {
"legalName": "MI EMPRESA SA DE CV",
"name": "Mi Empresa",
"rfc": "MEM210101AAA",
"clabe": "646180202710000017",
"transferFee": 3,
"max": 500000
}
}Campos del response
| Campo | Tipo | Descripción |
|---|---|---|
| legalName | string | Razón social |
| name | string | Nombre comercial |
| rfc | string | RFC del merchant |
| clabe | string | CLABE maestra del merchant (para abonar saldo) |
| transferFee | number | Comisión por transferencia (MXN, sin IVA). Se cobra + 16% IVA. |
| max | number | Monto máximo por transferencia (MXN) |