Exemplos

Exemplos de webhooks

Exemplos de webhooks

Abaixo alguns exemplos de webhooks.

PAID

{
  "uuid": "f36b4bbb-03e1-4d4d-a716-4cd5e75ca706",
  "type": "PAYMENT",
  "expiry_date": "2024-12-07T02:59:59Z",
  "status": "PAID",
  "order_id": "BR0000-06473607",
  "order_info": "charge description",
  "currency": "BRL",
  "original_amount": 100,
  "amount": 100,
  "paid": 100,
  "due": 0,
  "refunded": 0,
  "attempts": 1,
  "max_attempts": 5,
  "drop_reason": "",
  "surcharge": false,
  "client_ip": "72.6.66.174",
  "soft_descriptor": "TEST-ORCH",
  "customer": {
    "uuid": "2d595ee8-3b81-42fe-8ca0-a983b4b49cf3",
    "name": "Betsy Murazik",
    "email": "[email protected]",
    "birth_date": "2000-01-01",
    "phone": "551198570711",
    "mobile_phone": "5511985270748",
    "document_type": "CPF",
    "document_number": "206.753.890-03",
    "created_at": "2024-12-04T14:56:51Z",
    "updated_at": "2024-12-04T14:56:51Z"
  },
  "billing_address": {
    "address_line_1": "Av. Queiroz Filho",
    "address_line_2": "Vila Leopoldina",
    "street_number": "1560",
    "complement": "AP21",
    "city": "Sao Paulo",
    "state": "SP",
    "district": "Vila Leopoldina",
    "zip": "05319000",
    "country_code": "BRA",
    "created_at": "2024-12-04T14:56:51Z",
    "updated_at": "2024-12-04T14:56:51Z"
  },
  "shipping_address": {
    "address_line_1": "Av. Queiroz Filho",
    "address_line_2": "Vila Leopoldina",
    "street_number": "1560",
    "complement": "AP21",
    "city": "Sao Paulo",
    "state": "SP",
    "district": "Vila Leopoldina",
    "zip": "05319000",
    "country_code": "BRA",
    "created_at": "2024-12-04T14:56:51Z",
    "updated_at": "2024-12-04T14:56:51Z"
  },
  "transactions": [
    {
      "uuid": "66130284-afad-4b57-9fab-b27acad2f0a1",
      "charge_uuid": "f36b4bbb-03e1-4d4d-a716-4cd5e75ca706",
      "gateway_id": "5238ba7e46fa43ffa623b84613b9ce3d",
      "amount": 100,
      "paid_amount": 100,
      "status": "PAID",
      "payment_option": "CARD",
      "payment_option_detail": "card",
      "scheme": "MASTERCARD",
      "external_id": "01324013398678530160",
      "transaction_id_reference": null,
      "expected_capture_date": "2024-12-04T14:56:52Z",
      "payment_at": "2024-12-04T14:56:52Z",
      "captured_at": null,
      "auth_num": "022090",
      "auth_response_code": "0",
      "operation_type": "DEBIT",
      "extra": null,
      "payment_number": "597010XXXXXX0042",
      "payer_info": "Betsy Murazik",
      "expiry_month": 4,
      "expiry_year": 2032,
      "acquirer_network": "REDE",
      "nsu": "021698361994",
      "tid": "",
      "token": "6f4ac2e187e6447fbbccbb319dfd8f86",
      "create_token": true,
      "detailed_status": "AUTHORISED",
      "currency": "BRL",
      "document_type": "CPF",
      "document_number": "206.753.890-03",
      "installments": 1,
      "sub_acquirer": 1002,
      "auth_3ds": null,
      "created_at": "2024-12-04T14:56:53Z",
      "updated_at": "2024-12-04T14:56:53Z"
    }
  ],
  "created_at": "2024-12-04T14:56:51Z",
  "updated_at": "2024-12-04T14:56:51Z"
}

PAID_PARTIALLY

{
  "uuid": "765774f7-4aef-4489-bcd8-15993a255042",
  "type": "PAYMENT",
  "expiry_date": "2024-12-07T02:59:59Z",
  "status": "PAID_PARTIALLY",
  "order_id": "BR0000-48854004",
  "order_info": "charge description",
  "currency": "BRL",
  "original_amount": 2000,
  "amount": 2000,
  "paid": 1000,
  "due": 1000,
  "refunded": 0,
  "attempts": 1,
  "max_attempts": 5,
  "drop_reason": "",
  "surcharge": false,
  "client_ip": "242.176.34.234",
  "soft_descriptor": "PAYTEST",
  "customer": {
    "uuid": "fab3171b-ac6a-4648-9f63-47ef1d8d2e34",
    "name": "Roger Upton",
    "email": "[email protected]",
    "birth_date": "2000-01-01",
    "phone": "551198570711",
    "mobile_phone": "5511985270748",
    "document_type": "CPF",
    "document_number": "62286843023",
    "created_at": "2024-12-04T15:04:18Z",
    "updated_at": "2024-12-04T15:04:18Z"
  },
  "transactions": [
    {
      "uuid": "f7b100a0-7ebc-4e76-a6d3-1a76d2a37fb6",
      "charge_uuid": "765774f7-4aef-4489-bcd8-15993a255042",
      "gateway_id": "c992d2b7a3664d70bb93cf9403fcb9ad",
      "amount": 1000,
      "paid_amount": 1000,
      "status": "PAID",
      "payment_option": "CARD",
      "payment_option_detail": "card",
      "scheme": "MASTERCARD",
      "external_id": "02865387610337032395",
      "transaction_id_reference": null,
      "expected_capture_date": "2024-12-04T15:04:20Z",
      "payment_at": "2024-12-04T15:04:20Z",
      "captured_at": null,
      "auth_num": "014408",
      "auth_response_code": "0",
      "operation_type": "DEBIT",
      "extra": null,
      "payment_number": "597010XXXXXX0042",
      "payer_info": "Roger Upton",
      "expiry_month": 12,
      "expiry_year": 2025,
      "acquirer_network": "REDE",
      "nsu": "013428434930",
      "tid": "",
      "token": "b22430eb2d654fe4b6e1c11b93c5ebf2",
      "create_token": true,
      "detailed_status": "AUTHORISED",
      "currency": "BRL",
      "document_type": "CPF",
      "document_number": "62286843023",
      "installments": 12,
      "sub_acquirer": 1002,
      "auth_3ds": null,
      "created_at": "2024-12-04T15:04:20Z",
      "updated_at": "2024-12-04T15:04:20Z"
    }
  ],
  "created_at": "2024-12-04T15:04:18Z",
  "updated_at": "2024-12-04T15:04:18Z"
}

DUE

{
  "uuid": "d34dd1cd-a3da-466d-9268-4ab6743f5b18",
  "type": "PAYMENT",
  "expiry_date": "2024-12-07T02:59:59Z",
  "status": "DUE",
  "order_id": "BR0000-80234058",
  "order_info": "charge description",
  "currency": "BRL",
  "original_amount": 100,
  "amount": 100,
  "paid": 0,
  "due": 100,
  "refunded": 0,
  "attempts": 1,
  "max_attempts": 5,
  "drop_reason": "",
  "surcharge": false,
  "client_ip": "4.73.193.170",
  "soft_descriptor": "TEST-ORCH",
  "customer": {
    "uuid": "1b8a6934-6994-45df-b9c7-4f3cfd9fbe64",
    "name": "Sonia Pagac",
    "email": "[email protected]",
    "birth_date": "2000-01-01",
    "phone": "551198570711",
    "mobile_phone": "5511985270748",
    "document_type": "CPF",
    "document_number": "206.753.890-03",
    "created_at": "2024-12-04T14:58:23Z",
    "updated_at": "2024-12-04T14:58:23Z"
  },
  "billing_address": {
    "address_line_1": "Av. Queiroz Filho",
    "address_line_2": "Vila Leopoldina",
    "street_number": "1560",
    "complement": "AP21",
    "city": "Sao Paulo",
    "state": "SP",
    "district": "Vila Leopoldina",
    "zip": "05319000",
    "country_code": "BRA",
    "created_at": "2024-12-04T14:58:23Z",
    "updated_at": "2024-12-04T14:58:23Z"
  },
  "shipping_address": {
    "address_line_1": "Av. Queiroz Filho",
    "address_line_2": "Vila Leopoldina",
    "street_number": "1560",
    "complement": "AP21",
    "city": "Sao Paulo",
    "state": "SP",
    "district": "Vila Leopoldina",
    "zip": "05319000",
    "country_code": "BRA",
    "created_at": "2024-12-04T14:58:23Z",
    "updated_at": "2024-12-04T14:58:23Z"
  },
  "transactions": [
    {
      "uuid": "7c6a46c5-2678-4a4e-bdb2-77bd12a575ce",
      "charge_uuid": "d34dd1cd-a3da-466d-9268-4ab6743f5b18",
      "gateway_id": "1c15aee868b847fc915701885683418c",
      "amount": 100,
      "paid_amount": 0,
      "status": "REFUSED",
      "payment_option": "CARD",
      "payment_option_detail": "card",
      "scheme": "MASTERCARD",
      "external_id": "",
      "transaction_id_reference": null,
      "expected_capture_date": "2024-12-04T14:58:24Z",
      "payment_at": "2024-12-04T14:58:24Z",
      "captured_at": null,
      "auth_num": "",
      "auth_response_code": "14",
      "operation_type": "DEBIT",
      "extra": null,
      "payment_number": "597010XXXXXX0083",
      "payer_info": "Sonia Pagac",
      "expiry_month": 4,
      "expiry_year": 2032,
      "acquirer_network": "REDE",
      "nsu": "",
      "tid": "",
      "token": "",
      "create_token": true,
      "detailed_status": "REFUSED",
      "currency": "BRL",
      "document_type": "CPF",
      "document_number": "206.753.890-03",
      "installments": 1,
      "sub_acquirer": 1002,
      "auth_3ds": null,
      "created_at": "2024-12-04T14:58:24Z",
      "updated_at": "2024-12-04T14:58:24Z"
    }
  ],
  "created_at": "2024-12-04T14:58:23Z",
  "updated_at": "2024-12-04T14:58:23Z"
}

REFUNDED

{
  "uuid": "c244ddbf-7ae4-481f-a6e1-c0e17c019a76",
  "type": "PAYMENT",
  "expiry_date": "2024-12-07T02:59:59Z",
  "status": "REFUNDED",
  "order_id": "BR0000-40388805",
  "order_info": "charge description",
  "currency": "BRL",
  "original_amount": 2000,
  "amount": 2000,
  "paid": 2000,
  "due": 0,
  "refunded": 2000,
  "attempts": 1,
  "max_attempts": 5,
  "drop_reason": "",
  "surcharge": false,
  "client_ip": "169.167.128.126",
  "soft_descriptor": "PAYTEST",
  "customer": {
    "uuid": "6cfdc1e6-8ff8-46e8-ab15-b73987aa5184",
    "name": "Nadine Hansen",
    "email": "[email protected]",
    "birth_date": "2000-01-01",
    "phone": "551198570711",
    "mobile_phone": "5511985270748",
    "document_type": "CPF",
    "document_number": "62286843023",
    "created_at": "2024-12-04T15:05:28Z",
    "updated_at": "2024-12-04T15:05:28Z"
  },
  "transactions": [
    {
      "uuid": "6b164cbf-a353-4def-aefc-d151938a8509",
      "charge_uuid": "c244ddbf-7ae4-481f-a6e1-c0e17c019a76",
      "gateway_id": "fa0cfb239d774b4d925ad5106e88a125",
      "amount": 2000,
      "paid_amount": 0,
      "status": "CANCELED",
      "payment_option": "CARD",
      "payment_option_detail": "card",
      "scheme": "MASTERCARD",
      "external_id": "01151817642462280014",
      "transaction_id_reference": null,
      "expected_capture_date": "2024-12-04T15:05:29Z",
      "payment_at": "2024-12-04T15:05:29Z",
      "captured_at": null,
      "auth_num": "015513",
      "auth_response_code": "0",
      "operation_type": "DEBIT",
      "extra": null,
      "payment_number": "597010XXXXXX0042",
      "payer_info": "Nadine Hansen",
      "expiry_month": 12,
      "expiry_year": 2025,
      "acquirer_network": "REDE",
      "nsu": "025627696716",
      "tid": "",
      "token": "c60e53dff7524a318bcdee410a01cff3",
      "create_token": true,
      "detailed_status": "AUTHORISED",
      "currency": "BRL",
      "document_type": "CPF",
      "document_number": "62286843023",
      "installments": 12,
      "sub_acquirer": 1002,
      "auth_3ds": null,
      "created_at": "2024-12-04T15:05:29Z",
      "updated_at": "2024-12-04T15:05:29Z"
    }
  ],
  "created_at": "2024-12-04T15:05:28Z",
  "updated_at": "2024-12-04T15:05:28Z"
}

REFUNDED_PARTIALLY

{
  "uuid": "87e01e1e-5452-4056-ae18-d1e295281982",
  "type": "PAYMENT",
  "expiry_date": "2024-12-07T02:59:59Z",
  "status": "REFUNDED_PARTIALLY",
  "order_id": "BR0000-85156004",
  "order_info": "charge description",
  "currency": "BRL",
  "original_amount": 2000,
  "amount": 2000,
  "paid": 2000,
  "due": 0,
  "refunded": 1500,
  "attempts": 1,
  "max_attempts": 5,
  "drop_reason": "",
  "surcharge": false,
  "client_ip": "7.37.37.41",
  "soft_descriptor": "PAYTEST",
  "customer": {
    "uuid": "5ac3b8a7-e946-471c-88a2-d17f48242d75",
    "name": "Mrs. Danielle Armstrong",
    "email": "[email protected]",
    "birth_date": "2000-01-01",
    "phone": "551198570711",
    "mobile_phone": "5511985270748",
    "document_type": "CPF",
    "document_number": "62286843023",
    "created_at": "2024-12-04T15:06:53Z",
    "updated_at": "2024-12-04T15:06:53Z"
  },
  "transactions": [
    {
      "uuid": "5f580e48-3bca-49e5-bb1d-6330e5682e48",
      "charge_uuid": "87e01e1e-5452-4056-ae18-d1e295281982",
      "gateway_id": "8de1282812504a63a248cd5db62ccc05",
      "amount": 500,
      "paid_amount": 500,
      "status": "PAID",
      "payment_option": "CARD",
      "payment_option_detail": "card",
      "scheme": "MASTERCARD",
      "external_id": "01903934795574783717",
      "transaction_id_reference": null,
      "expected_capture_date": "2024-12-04T15:06:54Z",
      "payment_at": "2024-12-04T15:06:54Z",
      "captured_at": null,
      "auth_num": "024070",
      "auth_response_code": "0",
      "operation_type": "DEBIT",
      "extra": null,
      "payment_number": "597010XXXXXX0042",
      "payer_info": "Mrs. Danielle Armstrong",
      "expiry_month": 12,
      "expiry_year": 2025,
      "acquirer_network": "REDE",
      "nsu": "010865692721",
      "tid": "",
      "token": "0d0f3aa2d0dd4ccab3388b5bc9732099",
      "create_token": true,
      "detailed_status": "AUTHORISED",
      "currency": "BRL",
      "document_type": "CPF",
      "document_number": "62286843023",
      "installments": 12,
      "sub_acquirer": 1002,
      "auth_3ds": null,
      "created_at": "2024-12-04T15:06:54Z",
      "updated_at": "2024-12-04T15:06:54Z"
    }
  ],
  "created_at": "2024-12-04T15:06:53Z",
  "updated_at": "2024-12-04T15:06:53Z"
}

CANCELED

{
  "uuid": "d34dd1cd-a3da-466d-9268-4ab6743f5b18",
  "type": "PAYMENT",
  "expiry_date": "2024-12-07T02:59:59Z",
  "status": "CANCELED",
  "order_id": "BR0000-80234058",
  "order_info": "charge description",
  "currency": "BRL",
  "original_amount": 100,
  "amount": 100,
  "paid": 0,
  "due": 100,
  "refunded": 0,
  "attempts": 1,
  "max_attempts": 5,
  "drop_reason": "",
  "surcharge": false,
  "client_ip": "4.73.193.170",
  "soft_descriptor": "TEST-ORCH",
  "customer": {
    "uuid": "1b8a6934-6994-45df-b9c7-4f3cfd9fbe64",
    "name": "Sonia Pagac",
    "email": "[email protected]",
    "birth_date": "2000-01-01",
    "phone": "551198570711",
    "mobile_phone": "5511985270748",
    "document_type": "CPF",
    "document_number": "206.753.890-03",
    "created_at": "2024-12-04T14:58:23Z",
    "updated_at": "2024-12-04T14:58:23Z"
  },
  "billing_address": {
    "address_line_1": "Av. Queiroz Filho",
    "address_line_2": "Vila Leopoldina",
    "street_number": "1560",
    "complement": "AP21",
    "city": "Sao Paulo",
    "state": "SP",
    "district": "Vila Leopoldina",
    "zip": "05319000",
    "country_code": "BRA",
    "created_at": "2024-12-04T14:58:23Z",
    "updated_at": "2024-12-04T14:58:23Z"
  },
  "shipping_address": {
    "address_line_1": "Av. Queiroz Filho",
    "address_line_2": "Vila Leopoldina",
    "street_number": "1560",
    "complement": "AP21",
    "city": "Sao Paulo",
    "state": "SP",
    "district": "Vila Leopoldina",
    "zip": "05319000",
    "country_code": "BRA",
    "created_at": "2024-12-04T14:58:23Z",
    "updated_at": "2024-12-04T14:58:23Z"
  },
  "transactions": [
    {
      "uuid": "7c6a46c5-2678-4a4e-bdb2-77bd12a575ce",
      "charge_uuid": "d34dd1cd-a3da-466d-9268-4ab6743f5b18",
      "gateway_id": "1c15aee868b847fc915701885683418c",
      "amount": 100,
      "paid_amount": 0,
      "status": "REFUSED",
      "payment_option": "CARD",
      "payment_option_detail": "card",
      "scheme": "MASTERCARD",
      "external_id": "",
      "transaction_id_reference": null,
      "expected_capture_date": "2024-12-04T14:58:24Z",
      "payment_at": "2024-12-04T14:58:24Z",
      "captured_at": null,
      "auth_num": "",
      "auth_response_code": "14",
      "operation_type": "DEBIT",
      "extra": null,
      "payment_number": "597010XXXXXX0083",
      "payer_info": "Sonia Pagac",
      "expiry_month": 4,
      "expiry_year": 2032,
      "acquirer_network": "REDE",
      "nsu": "",
      "tid": "",
      "token": "",
      "create_token": true,
      "detailed_status": "REFUSED",
      "currency": "BRL",
      "document_type": "CPF",
      "document_number": "206.753.890-03",
      "installments": 1,
      "sub_acquirer": 1002,
      "auth_3ds": null,
      "created_at": "2024-12-04T14:58:24Z",
      "updated_at": "2024-12-04T14:58:24Z"
    }
  ],
  "created_at": "2024-12-04T14:58:23Z",
  "updated_at": "2024-12-04T14:58:23Z"
}