Webhook Exemplo Charge Paid
Webhook Exemplo Charge Paid
"id": "hook_4w1y0JVsPsn06EWx",
"url": "https://integration-5ojmyuq-tfopk5nwkmekm.us-5.magentosite.cloud/rest/
V1/dh_pagarme/payment/notification/",
"event": "charge.paid",
"status": "sent",
"attempts": "1/1",
"last_attempt": "2025-01-01T04:15:54Z",
"created_at": "2025-01-01T04:15:39Z",
"response_status": 200,
"account": {
"id": "acc_Z5P8OoyFgOI9r84q",
"name": "Digital Hub (Conta 3) - test"
},
"data": {
"id": "ch_GBnP26LF4FkyZvpm",
"code": "WKDTXRSV7Q-01",
"gateway_id": "2207962505",
"amount": 150,
"paid_amount": 150,
"status": "paid",
"currency": "BRL",
"payment_method": "credit_card",
"due_at": "2025-01-01T23:59:59Z",
"paid_at": "2025-01-01T04:15:39Z",
"created_at": "2025-01-01T04:15:38Z",
"updated_at": "2025-01-01T04:15:39Z",
"invoice": {
"id": "in_0p865QKCACM3O1ay",
"code": "31E6TRTX1P",
"url": "/invoices/in_0p865QKCACM3O1ay",
"amount": 150,
"status": "paid",
"payment_method": "credit_card",
"due_at": "2025-01-01T23:59:59Z",
"created_at": "2025-01-01T04:15:38Z",
"subscriptionId": "sub_JRKVKEmHZlImZojO",
"metadata": {}
},
"customer": {
"id": "cus_ADWMDOHxPiEbXLo4",
"name": "Edson Tolazzi",
"email": "etolazzi@digitalhub.com.br",
"document": "43368513605",
"document_type": "cpf",
"type": "individual",
"delinquent": false,
"address": {
"id": "addr_8M67122IaqsYmgZe",
"line_1": "46, Rua Santos Dumond, ",
"zip_code": "95900072",
"city": "Lajeado",
"state": "RS",
"country": "BR",
"status": "active",
"created_at": "2024-12-18T17:29:05Z",
"updated_at": "2024-12-18T17:29:05Z"
},
"created_at": "2024-12-12T19:49:40Z",
"updated_at": "2024-12-18T17:29:04Z",
"phones": {
"mobile_phone": {
"country_code": "55",
"number": "996044187",
"area_code": "54"
}
}
},
"last_transaction": {
"brand_id": "999422",
"id": "tran_71eaxPbUAUZGronE",
"transaction_type": "credit_card",
"gateway_id": "2207962505",
"amount": 150,
"status": "captured",
"success": true,
"installments": 1,
"acquirer_name": "pagarme",
"acquirer_tid": "2207962505",
"acquirer_nsu": "2207962505",
"acquirer_auth_code": "150686",
"acquirer_message": "Transação aprovada com sucesso",
"acquirer_return_code": "0000",
"operation_type": "auth_and_capture",
"card": {
"id": "card_EoZVLBQC6kH6PgQK",
"first_six_digits": "453291",
"last_four_digits": "0007",
"brand": "Visa",
"holder_name": "Tony Stark",
"exp_month": 6,
"exp_year": 2030,
"status": "active",
"type": "credit",
"created_at": "2024-12-17T20:08:17Z",
"updated_at": "2024-12-17T20:08:17Z",
"billing_address": {
"zip_code": "20021130",
"city": "Rio de Janeiro",
"state": "RJ",
"country": "BR",
"line_1": "375, Av. General Justo, Centro",
"line_2": "8º andar"
}
},
"funding_source": "credit",
"created_at": "2025-01-01T04:15:38Z",
"updated_at": "2025-01-01T04:15:38Z",
"gateway_response": {
"code": "200",
"errors": []
},
"antifraud_response": {
"status": "approved",
"score": "moderated",
"provider_name": "pagarme"
},
"metadata": {}
},
"metadata": {
"id": "my_subscription_id"
},
"recurrence_cycle": "first"
}
}