Merchant Account - Retrieve
curl --request GET \
--url https://sandbox.hyperswitch.io/accounts/{account_id} \
--header 'Authorization: <api-key>'import requests
url = "https://sandbox.hyperswitch.io/accounts/{account_id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://sandbox.hyperswitch.io/accounts/{account_id}', 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/accounts/{account_id}",
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: <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/accounts/{account_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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/accounts/{account_id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.hyperswitch.io/accounts/{account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"merchant_id": "y3oqhf46pyzuxjbcn2giaqnb44",
"enable_payment_response_hash": true,
"redirect_to_merchant_with_http_post": true,
"primary_business_details": [
{
"country": "AF",
"business": "food"
}
],
"organization_id": "org_q98uSGAYbjEwqs0mJwnz",
"is_recon_enabled": true,
"recon_status": "not_requested",
"merchant_account_type": "standard",
"merchant_name": "NewAge Retailer",
"return_url": "https://www.example.com/success",
"payment_response_hash_key": "xkkd",
"merchant_details": {
"primary_contact_person": "John Doe",
"primary_phone": "999999999",
"primary_email": "johndoe@test.com",
"secondary_contact_person": "John Doe2",
"secondary_phone": "999999988",
"secondary_email": "johndoe2@test.com",
"website": "www.example.com",
"about_business": "Online Retail with a wide selection of organic products for North America",
"address": {
"city": "New York",
"country": "AF",
"line1": "123, King Street",
"line2": "Powelson Avenue",
"line3": "Bridgewater",
"zip": "08807",
"state": "New York",
"first_name": "John",
"last_name": "Doe",
"origin_zip": "08807"
},
"merchant_tax_registration_id": "123456789",
"merchant_vat_registration_id": "GB987654321"
},
"webhook_details": {
"payment_statuses_enabled": [
"succeeded",
"failed",
"partially_captured",
"requires_merchant_action"
],
"refund_statuses_enabled": [
"success",
"failure"
],
"webhook_version": "1.0.2",
"webhook_username": "ekart_retail",
"webhook_password": "ekart@123",
"webhook_url": "https://www.ekart.com/webhooks",
"payment_created_enabled": true,
"payment_succeeded_enabled": true,
"payment_failed_enabled": true,
"payout_statuses_enabled": [
"success",
"failed"
],
"dispute_statuses_enabled": [
"dispute_opened",
"dispute_won"
],
"mandate_statuses_enabled": [
"active",
"inactive"
],
"invoice_statuses_enabled": [
"invoice_paid"
]
},
"payout_routing_algorithm": {
"type": "single",
"data": {
"connector": "absa_sanlam",
"merchant_connector_id": "<string>"
}
},
"sub_merchants_enabled": false,
"parent_merchant_id": "xkkdf909012sdjki2dkh5sdf",
"publishable_key": "AH3423bkjbkjdsfbkj",
"metadata": {},
"locker_id": "locker_abc123",
"frm_routing_algorithm": {
"type": "single",
"data": {
"connector": "absa_sanlam",
"merchant_connector_id": "<string>"
}
},
"default_profile": "<string>",
"pm_collect_link_config": {
"allowed_domains": [
"<string>"
],
"enabled_payment_methods": "[{\"payment_method\": \"bank_transfer\", \"payment_method_types\": [\"ach\", \"bacs\", \"sepa\"]}]",
"logo": "https://hyperswitch.io/favicon.ico",
"merchant_name": "Hyperswitch",
"theme": "#4285F4",
"domain_name": "<string>"
},
"product_type": "orchestration",
"network_tokenization_credentials": {
"internal_network_token_service": {
"token_service_api_key": "MDRFRDU3Mzc1Q0Q0N2893727712QzQjJEQzlENTBCOg==",
"public_key": "-----BEGIN PUBLIC KEY-----\nsom8723hj1bajhgd123==\n-----END PUBLIC KEY-----",
"private_key": "-----BEGIN RSA PRIVATE KEY-----\n897238huhbsdbjh12==\n-----END RSA PRIVATE KEY-----",
"key_id": "key_1ac9895a6d85414897213gahdac838a8"
}
}
}Merchant Account
Merchant Account - Retrieve
Retrieve a merchant account details.
GET
/
accounts
/
{account_id}
Merchant Account - Retrieve
curl --request GET \
--url https://sandbox.hyperswitch.io/accounts/{account_id} \
--header 'Authorization: <api-key>'import requests
url = "https://sandbox.hyperswitch.io/accounts/{account_id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://sandbox.hyperswitch.io/accounts/{account_id}', 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/accounts/{account_id}",
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: <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/accounts/{account_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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/accounts/{account_id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.hyperswitch.io/accounts/{account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"merchant_id": "y3oqhf46pyzuxjbcn2giaqnb44",
"enable_payment_response_hash": true,
"redirect_to_merchant_with_http_post": true,
"primary_business_details": [
{
"country": "AF",
"business": "food"
}
],
"organization_id": "org_q98uSGAYbjEwqs0mJwnz",
"is_recon_enabled": true,
"recon_status": "not_requested",
"merchant_account_type": "standard",
"merchant_name": "NewAge Retailer",
"return_url": "https://www.example.com/success",
"payment_response_hash_key": "xkkd",
"merchant_details": {
"primary_contact_person": "John Doe",
"primary_phone": "999999999",
"primary_email": "johndoe@test.com",
"secondary_contact_person": "John Doe2",
"secondary_phone": "999999988",
"secondary_email": "johndoe2@test.com",
"website": "www.example.com",
"about_business": "Online Retail with a wide selection of organic products for North America",
"address": {
"city": "New York",
"country": "AF",
"line1": "123, King Street",
"line2": "Powelson Avenue",
"line3": "Bridgewater",
"zip": "08807",
"state": "New York",
"first_name": "John",
"last_name": "Doe",
"origin_zip": "08807"
},
"merchant_tax_registration_id": "123456789",
"merchant_vat_registration_id": "GB987654321"
},
"webhook_details": {
"payment_statuses_enabled": [
"succeeded",
"failed",
"partially_captured",
"requires_merchant_action"
],
"refund_statuses_enabled": [
"success",
"failure"
],
"webhook_version": "1.0.2",
"webhook_username": "ekart_retail",
"webhook_password": "ekart@123",
"webhook_url": "https://www.ekart.com/webhooks",
"payment_created_enabled": true,
"payment_succeeded_enabled": true,
"payment_failed_enabled": true,
"payout_statuses_enabled": [
"success",
"failed"
],
"dispute_statuses_enabled": [
"dispute_opened",
"dispute_won"
],
"mandate_statuses_enabled": [
"active",
"inactive"
],
"invoice_statuses_enabled": [
"invoice_paid"
]
},
"payout_routing_algorithm": {
"type": "single",
"data": {
"connector": "absa_sanlam",
"merchant_connector_id": "<string>"
}
},
"sub_merchants_enabled": false,
"parent_merchant_id": "xkkdf909012sdjki2dkh5sdf",
"publishable_key": "AH3423bkjbkjdsfbkj",
"metadata": {},
"locker_id": "locker_abc123",
"frm_routing_algorithm": {
"type": "single",
"data": {
"connector": "absa_sanlam",
"merchant_connector_id": "<string>"
}
},
"default_profile": "<string>",
"pm_collect_link_config": {
"allowed_domains": [
"<string>"
],
"enabled_payment_methods": "[{\"payment_method\": \"bank_transfer\", \"payment_method_types\": [\"ach\", \"bacs\", \"sepa\"]}]",
"logo": "https://hyperswitch.io/favicon.ico",
"merchant_name": "Hyperswitch",
"theme": "#4285F4",
"domain_name": "<string>"
},
"product_type": "orchestration",
"network_tokenization_credentials": {
"internal_network_token_service": {
"token_service_api_key": "MDRFRDU3Mzc1Q0Q0N2893727712QzQjJEQzlENTBCOg==",
"public_key": "-----BEGIN PUBLIC KEY-----\nsom8723hj1bajhgd123==\n-----END PUBLIC KEY-----",
"private_key": "-----BEGIN RSA PRIVATE KEY-----\n897238huhbsdbjh12==\n-----END RSA PRIVATE KEY-----",
"key_id": "key_1ac9895a6d85414897213gahdac838a8"
}
}
}Authorizations
Response
Merchant Account Retrieved
Was this page helpful?