v1

latestOpenAPI 3.1.02026-07-241040774.6 KB

Retentar uma cobrança manualmente

post/charges/{charge_id}/retry/

Path parameters

charge_idstring required

Código da cobrança.

Response

200

idstring
codestring
gateway_idstring
amountinteger
statusstring
currencystring
payment_methodstring
due_atstring
created_atstring
updated_atstring

Example response

{
  "id": "ch_exRAY21fvNFVD9EX",
  "code": "8M2OT2SRX8",
  "gateway_id": "c5d71b01-174e-453f-8563-fd089cf7b39b",
  "amount": 14900000,
  "status": "failed",
  "currency": "BRL",
  "payment_method": "credit_card",
  "due_at": "2017-04-04T00:00:00",
  "created_at": "2017-04-04T22:29:33",
  "updated_at": "2017-04-04T22:29:54",
  "customer": {
    "id": "cus_aEkwKv0SmNHMR931",
    "name": "Luke Skywalker",
    "email": "lskywalker@r2d2.com",
    "created_at": "2017-04-04T19:41:31",
    "updated_at": "2017-04-04T19:41:31"
  },
  "last_transaction": {
    "id": "tran_dZm79oYT0ckRlw1o",
    "transaction_type": "credit_card",
    "funding_source": "prepaid",
    "gateway_id": "f3c316f7-3f6c-47bc-ac03-da01e51444aa",
    "amount": 14900000,
    "status": "not_authorized",
    "installments": 1,
    "statement_descriptor": "Spotify",
    "acquirer_name": "simulator",
    "acquirer_affiliation_code": "MUNDI",
    "acquirer_message": "Simulator|Transação de simulação não autorizada",
    "acquirer_return_code": "1",
    "operation_type": "auth_only",
    "credit_card": {
      "id": "card_2bKzdEGsYYFkymqG",
      "first_six_digits": "542501",
      "last_four_digits": "5322",
      "brand": "Visa",
      "holder_name": "Luke Skywalker",
      "exp_month": 5,
      "exp_year": 2030,
      "status": "active",
      "created_at": "2017-04-04T19:41:31",
      "updated_at": "2017-04-04T19:41:31",
      "billing_address": {
        "zip_code": "90265",
        "city": "Malibu",
        "state": "CA",
        "country": "US",
        "line_1": "10880, Malibu Point, Malibu Central"
      }
    },
    "created_at": "2017-04-04T22:29:33",
    "updated_at": "2017-04-04T22:29:33"
  },
  "metadata": {
    "id": "my_charge_id"
  }
}