Charges

Cria uma cobrança PIX ou cartão B2B direto

post/v1/charges

Request

  • Base URL: https://api.sandbox.mupag.com.br
  • URL: https://api.sandbox.mupag.com.br/v1/charges
  • Auth: HTTP bearer

Headers

Idempotency-Keystring required

Request body

amount_centsinteger required
payment_method'pix' | 'credit_card' required
installmentsinteger
card_tokenstring

Token Asaas obtido pelo lojista fora do checkout público MuPag.

card_token_idstring uuid
save_cardboolean
descriptionstring
soft_descriptorstring

Não suportado pelo PSP Asaas; requisições com valor são rejeitadas.

payer_ipstring

IP literal do pagador, atestado pelo lojista; obrigatório para credit_card.

product_max_installmentsinteger
external_referencestring
expires_in_secondsinteger
metadataobject
affiliate_codestring
coupon_codestring
is_mitboolean
initial_mit_reference_idstring uuid

Example request

{
  "amount_cents": 1290,
  "payment_method": "pix",
  "customer": {
    "name": "Ana Silva",
    "email": "ana@example.com",
    "tax_id": "12345678909"
  }
}

Response

Cobrança criada

charge_idstring uuid required
status'created' | 'pending' | 'authorized' | 'under_review' | 'paid' | 'partially_refunded' | 'refunded' | 'failed' | 'expired' | 'cancelled' | 'disputed' | 'chargeback' required
amount_centsinteger required
psp_charge_idstring nullable
card_token_idstring uuid nullable
card_brandstring nullable
card_last4string nullable
three_ds_acs_urlstring nullable

Reservado; o fluxo direto atual do Asaas não oferece 3DS exigível.

failure_classificationstring nullable
pix_qr_code_base64string nullable
pix_emv_codestring nullable
expires_atstring date-time nullable

Changes

No recorded changes to this operation across all 1 revision of this API.