v1
latestOpenAPI 3.1.02026-07-26477322.4 KBEditar método de pagamento
patch/charges/{charge_id}/payment-method
Path parameters
charge_idstring required
Código da cobrança.
Request body
Response
200
Example response
{
"id": "ch_PA2gLJYc9hDxRrXV",
"code": "DPRWS1C38N",
"gateway_id": "c22a0e61-2e3e-4317-b11f-08d03046a1a8",
"amount": 1490000,
"status": "pending",
"currency": "BRL",
"payment_method": "boleto",
"created_at": "2017-10-05T19:16:51Z",
"updated_at": "2017-10-05T19:18:39Z",
"customer": {
"id": "cus_9rOWDePfdC5qRYgE",
"name": "Tony Stark",
"email": "a999087b-1fa2-4ed9-8499-5065ebc2a46a@avengers.com",
"created_at": "2017-10-05T19:16:51Z",
"updated_at": "2017-10-05T19:16:51Z"
},
"last_transaction": {
"id": "tran_OX28mah1bSP084wB",
"transaction_type": "boleto",
"gateway_id": "659298db-dcae-492a-afc5-47774026ca9f",
"amount": 1490000,
"status": "generated",
"success": true,
"url": "https://sandbox.pagar.me/Boleto/ViewBoleto.aspx?659298db-dcae-492a-afc5-47774026ca9f",
"pdf": "https://api.pagar.me/core/v1/transactions/tran_OX28mah1bSP084wB/pdf",
"line": "34191.75009 05636.791237 41234.510000 8 84860001490000",
"barcode": "https://api.pagar.mem/core/v1/transactions/tran_OX28mah1bSP084wB/barcode",
"qr_code": "https://api.pagar.me/core/v1/transactions/tran_OX28mah1bSP084wB/qrcode",
"nosso_numero": "00056367",
"bank": "033",
"document_number": "071838848",
"instructions": "Pagar até o vencimento",
"due_at": "2020-12-31T00:00:00Z",
"created_at": "2017-10-05T19:18:39Z",
"updated_at": "2017-10-05T19:18:39Z",
"gateway_response": {
"code": "201"
}
},
"metadata": {
"code": "123"
}
}