Skip to main content
POST
/
v1
/
merchants
Criação de novo merchant para cobrança
curl --request POST \
  --url https://api.malga.io/v1/merchants \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --header 'X-Client-Id: <api-key>' \
  --data '
{
  "mcc": "4040",
  "status": true,
  "providers": [
    {
      "name": "PagSeguro",
      "priority": 1,
      "credentials": {
        "type": "PAGSEGURO",
        "token": "1B2B32530CA24641324AB63843240F5633",
        "email": "email@gmail.com"
      },
      "acquirer": {
        "merchantId": "1111111111",
        "bin": [
          {
            "brand": "Mastercard",
            "value": "550259",
            "merchantId": "2222222222"
          },
          {
            "brand": "Visa",
            "value": "448768",
            "merchantId": "3333333333"
          }
        ]
      }
    },
    {
      "name": "pagarme",
      "priority": 2,
      "credentials": {
        "type": "PAGARME",
        "apiKey": "ak_test_Kaa8pf3142dCsMQiRYuV66rJZLuA"
      },
      "acquirer": {
        "merchantId": "1111111111",
        "bin": [
          {
            "brand": "Mastercard",
            "value": "550259",
            "merchantId": "2222222222"
          }
        ]
      }
    }
  ]
}
'
{
  "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,
  "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"
          }
        ]
      }
    },
    {
      "id": "2cf5c350-ee26-4557-a47d-9efe1765df51",
      "updatedAt": "2021-03-12T15:57:20.239Z",
      "createdAt": "2021-03-12T15:57:20.239Z",
      "deletedAt": null,
      "idempotencyKey": null,
      "requestId": null,
      "name": "pagarme",
      "priority": 2,
      "credentials": {
        "type": "PAGARME",
        "apiKey": "ak_test_Kaa8pfXJ3WOUdCsMQiRYuV66rJZLuA"
      },
      "acquirer": {
        "merchantId": "1111111111",
        "bin": [
          {
            "brand": "Mastercard",
            "value": "550259",
            "merchantId": "2222222222"
          },
          {
            "brand": "Visa",
            "value": "448768",
            "merchantId": "3333333333"
          }
        ]
      }
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.malga.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Client-Id
string
header
required
X-Api-Key
string
header
required

Body

application/json
mcc
string
required

código de segmento do lojista no adquirente, solicite ao seu provedor caso não saiba qual o seu Merchant Category Code.

name
string

Nome do merchant que será exibido na Dashboard (Subcontas, Fluxos Inteligentes, etc.)

merchantName
string

Nome do merchant que será exibido em caso de desafio no 3DS. Caso esse merchant não use 3DS, esse campo é opcional.

merchantUrl
string

URL do merchant que serve como informativo durante a autenticação 3DS. Caso o merchant não use 3DS, esse campo é opcional.

providers
object

Response

201 - application/json

Created

id
string

Identificador do merchant

createdAt
string

Data de criação

clientId
string<uuid>

Identificador do client

mcc
string

Código mcc do cadatro do lojista no adquirente

status
enum<string>

Status do merchant

Available options:
active,
deleted,
pending
providers
object