Events - Delivery Attempt List
curl --request GET \
--url https://sandbox.hyperswitch.io/events/{merchant_id}/{event_id}/attempts \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.hyperswitch.io/events/{merchant_id}/{event_id}/attempts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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 => [
"Authorization: Bearer <token>"
],
]);
$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("Authorization", "Bearer <token>")
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("Authorization", "Bearer <token>")
.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["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"event_id": "evt_018e31720d1b7a2b82677d3032cab959",
"merchant_id": "y3oqhf46pyzuxjbcn2giaqnb44",
"profile_id": "SqB0zwDGR5wHppWf0bx7GKr1f2",
"object_id": "QHrfd5LUDdZaKtAjdJmMu0dMa1",
"event_type": "payment_succeeded",
"event_class": "payments",
"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>",
"delivery_attempt": "initial_attempt"
}
]Event
Events - Delivery Attempt List
List all delivery attempts for the specified Event.
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 'Authorization: Bearer <token>'import requests
url = "https://sandbox.hyperswitch.io/events/{merchant_id}/{event_id}/attempts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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 => [
"Authorization: Bearer <token>"
],
]);
$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("Authorization", "Bearer <token>")
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("Authorization", "Bearer <token>")
.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["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"event_id": "evt_018e31720d1b7a2b82677d3032cab959",
"merchant_id": "y3oqhf46pyzuxjbcn2giaqnb44",
"profile_id": "SqB0zwDGR5wHppWf0bx7GKr1f2",
"object_id": "QHrfd5LUDdZaKtAjdJmMu0dMa1",
"event_type": "payment_succeeded",
"event_class": "payments",
"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>",
"delivery_attempt": "initial_attempt"
}
]Authorizations
Path Parameters
Response
200 - application/json
List of delivery attempts retrieved successfully
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, refund_review, 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, payout_not_permitted, invoice_paid, surcharge_payment_succeeded, surcharge_refund_succeeded Was this page helpful?