POST
/
api
/
pix
Criar cobrança PIX
curl --request POST \
  --url https://sandboxapi.mycredit.com.br/api/pix \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "formaPagamento": {
    "tpTransacao": 11,
    "idFaturaPag": "9b041599-eacc-4a0f-9a16-e0191c9a66AA",
    "modPagamento": 18,
    "qtdParcelas": 1,
    "valorPagamento": 1.29
  },
  "cliente": {
    "xNome": "Nome do pagador",
    "documento": "99999999999"
  }
}'
{
  "sucesso": true,
  "data": {
    "retTexto": "Inserido com sucesso.",
    "retUrl": "00020101021226990014br.gov.bcb.pix2577pix.bpp.com.br/23114447/qrs2/v2/02bQN4pZi9ZfA841zm0obUq0xDJ4kK5kebEiF8e2iGr1G52040000530398654041.005802BR5924SATURNIA TECNOLOGIA LTDA6009SAO PAUL062070503***63044F29",
    "transacaoId": "9f8b4c46-82cd-4388-52b4-08dddfd74ba1",
    "expira": "2025-08-20T11:29:24.4187003Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Dados da cobrança PIX imediata

The body is of type object.

Response

200
application/json

Cobrança PIX criada com sucesso

The response is of type object.