Skip to main content
GET
/
events
/
{merchant_id}
/
{event_id}
/
attempts
Events - Delivery Attempt List
curl --request GET \
  --url https://sandbox.hyperswitch.io/events/{merchant_id}/{event_id}/attempts \
  --header 'api-key: <api-key>'
import requests

url = "https://sandbox.hyperswitch.io/events/{merchant_id}/{event_id}/attempts"

headers = {"api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'api-key': '<api-key>'}};

fetch('https://sandbox.hyperswitch.io/events/{merchant_id}/{event_id}/attempts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.hyperswitch.io/events/{merchant_id}/{event_id}/attempts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://sandbox.hyperswitch.io/events/{merchant_id}/{event_id}/attempts"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://sandbox.hyperswitch.io/events/{merchant_id}/{event_id}/attempts")
.header("api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://sandbox.hyperswitch.io/events/{merchant_id}/{event_id}/attempts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
[
  {
    "event_id": "evt_018e31720d1b7a2b82677d3032cab959",
    "merchant_id": "y3oqhf46pyzuxjbcn2giaqnb44",
    "profile_id": "SqB0zwDGR5wHppWf0bx7GKr1f2",
    "object_id": "QHrfd5LUDdZaKtAjdJmMu0dMa1",
    "initial_attempt_id": "evt_018e31720d1b7a2b82677d3032cab959",
    "created": "2022-09-10T10:11:12Z",
    "request": {
      "body": "<string>",
      "headers": [
        [
          "content-type",
          "application/json"
        ],
        [
          "content-length",
          "1024"
        ]
      ]
    },
    "response": {
      "body": "<string>",
      "headers": [
        [
          "content-type",
          "application/json"
        ],
        [
          "content-length",
          "1024"
        ]
      ],
      "status_code": 200,
      "error_message": 200
    },
    "is_delivery_successful": true,
    "processor_merchant_id": "<string>"
  }
]

Authorizations

api-key
string
header
required

Admin API keys allow you to perform some privileged actions such as creating a merchant account and Merchant Connector account.

Path Parameters

merchant_id
string
required

The unique identifier for the Merchant Account.

event_id
string
required

The unique identifier for the Event

Response

200 - application/json

List of delivery attempts retrieved successfully

event_id
string
required

The identifier for the Event.

Maximum string length: 64
Example:

"evt_018e31720d1b7a2b82677d3032cab959"

merchant_id
string
required

The identifier for the Merchant Account.

Maximum string length: 64
Example:

"y3oqhf46pyzuxjbcn2giaqnb44"

profile_id
string
required

The identifier for the Business Profile.

Maximum string length: 64
Example:

"SqB0zwDGR5wHppWf0bx7GKr1f2"

object_id
string
required

The identifier for the object (Payment Intent ID, Refund ID, etc.)

Maximum string length: 64
Example:

"QHrfd5LUDdZaKtAjdJmMu0dMa1"

event_type
enum<string>
required
Available options:
payment_succeeded,
payment_failed,
payment_processing,
payment_cancelled,
payment_cancelled_post_capture,
payment_authorized,
payment_partially_authorized,
payment_captured,
payment_expired,
action_required,
refund_succeeded,
refund_failed,
dispute_opened,
dispute_expired,
dispute_accepted,
dispute_cancelled,
dispute_challenged,
dispute_won,
dispute_lost,
mandate_active,
mandate_revoked,
payout_success,
payout_failed,
payout_initiated,
payout_processing,
payout_cancelled,
payout_expired,
payout_reversed,
invoice_paid,
surcharge_payment_succeeded,
surcharge_refund_succeeded
event_class
enum<string>
required
Available options:
payments,
refunds,
disputes,
mandates,
payouts,
subscriptions
initial_attempt_id
string
required

The identifier for the initial delivery attempt. This will be the same as event_id for the initial delivery attempt.

Maximum string length: 64
Example:

"evt_018e31720d1b7a2b82677d3032cab959"

created
string<date-time>
required

Time at which the event was created.

Example:

"2022-09-10T10:11:12Z"

request
object
required

The request information (headers and body) sent in the webhook.

response
object
required

The response information (headers, body and status code) received for the webhook sent.

is_delivery_successful
boolean | null

Indicates whether the webhook was ultimately delivered or not.

processor_merchant_id
string | null

The identifier for the Processor Merchant Account.

Maximum string length: 64
delivery_attempt
enum<string> | null
Available options:
initial_attempt,
automatic_retry,
manual_retry