Webhook Exemplo Charge Refunded Order
Webhook Exemplo Charge Refunded Order
"id": "hook_oVYMA2OfafX3ZK4W",
"url": "https://integration-5ojmyuq-tfopk5nwkmekm.us-5.magentosite.cloud/
rest/V1/pagarme/webhook",
"event": "charge.refunded",
"status": "sent",
"attempts": "1/10",
"last_attempt": "2025-01-06T18:43:45Z",
"created_at": "2025-01-06T18:43:27Z",
"response_status": 200,
"account": {
"id": "acc_Z5P8OoyFgOI9r84q",
"name": "Digital Hub (Conta 3) - test"
},
"data": {
"id": "ch_0ZK4qDViEiz7WMbg",
"code": "000000058",
"gateway_id": "2208039462",
"amount": 21734,
"canceled_amount": 21734,
"status": "canceled",
"currency": "BRL",
"payment_method": "credit_card",
"canceled_at": "2025-01-06T18:43:27Z",
"created_at": "2025-01-06T18:38:33Z",
"updated_at": "2025-01-06T18:43:27Z",
"order": {
"id": "or_zoqmnG7UyUDnV5g0",
"code": "000000058",
"amount": 21734,
"closed": true,
"created_at": "2025-01-06T18:38:33Z",
"updated_at": "2025-01-06T18:43:27Z",
"closed_at": "2025-01-06T18:38:33Z",
"currency": "BRL",
"status": "canceled",
"customer_id": "cus_EmY3x9IxrhbbK0A4",
"metadata": {
"moduleVersion": "2.6.1",
"coreVersion": "2.7.0",
"platformVersion": "Magento Enterprise 2.4.7-p3"
}
},
"customer": {
"id": "cus_EmY3x9IxrhbbK0A4",
"name": "Rafael Teste",
"email": "[email protected]",
"code": "2",
"document": "32399872525",
"document_type": "cpf",
"type": "individual",
"delinquent": false,
"address": {
"id": "addr_z1bAqmwuBudOpmjx",
"line_1": "123,Praça Antônio Prado,teste",
"line_2": "Centro",
"street": "Praça Antônio Prado",
"number": "123",
"complement": "Centro",
"zip_code": "01010010",
"neighborhood": "teste",
"city": "São Paulo",
"state": "SP",
"country": "BR",
"status": "active",
"created_at": "2025-01-06T18:06:50Z",
"updated_at": "2025-01-06T18:06:50Z"
},
"created_at": "2023-05-04T12:44:40Z",
"updated_at": "2025-01-06T18:06:50Z",
"phones": {
"home_phone": {
"country_code": "55",
"number": "996291111",
"area_code": "43"
},
"mobile_phone": {
"country_code": "55",
"number": "996291111",
"area_code": "43"
}
}
},
"last_transaction": {
"brand_id": "518414",
"id": "tran_jbDdZQXIpIEgJeo4",
"transaction_type": "credit_card",
"gateway_id": "2208039462",
"amount": 21734,
"status": "refunded",
"success": true,
"installments": 1,
"acquirer_name": "pagarme",
"acquirer_tid": "2208039462",
"acquirer_nsu": "2208039462",
"acquirer_auth_code": "410382",
"acquirer_message": "Transação aprovada com sucesso",
"acquirer_return_code": "0000",
"operation_type": "cancel",
"card": {
"id": "card_MOeZvm0spXc6JzwV",
"first_six_digits": "400000",
"last_four_digits": "0010",
"brand": "Visa",
"holder_name": "apro",
"exp_month": 1,
"exp_year": 2030,
"status": "active",
"type": "credit",
"created_at": "2024-12-19T14:38:00Z",
"updated_at": "2025-01-06T18:38:33Z",
"billing_address": {
"street": "Praça Antônio Prado",
"number": "123",
"complement": "Centro",
"zip_code": "01010010",
"neighborhood": "teste",
"city": "São Paulo",
"state": "SP",
"country": "BR",
"line_1": "123,Praça Antônio Prado,teste",
"line_2": "Centro"
}
},
"funding_source": "credit",
"created_at": "2025-01-06T18:43:27Z",
"updated_at": "2025-01-06T18:43:27Z",
"gateway_response": {
"code": "200",
"errors": []
},
"antifraud_response": {
"status": "approved",
"score": "moderated",
"provider_name": "pagarme"
},
"metadata": {
"saveOnSuccess": "false"
}
},
"metadata": {
"moduleVersion": "2.6.1",
"coreVersion": "2.7.0",
"platformVersion": "Magento Enterprise 2.4.7-p3",
"saveOnSuccess": "false"
}
}
}