Skip to main content
POST
/
gsm
/
delete
Gsm - Delete
curl --request POST \
  --url https://sandbox.hyperswitch.io/gsm/delete \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "connector": "<string>",
  "flow": "<string>",
  "sub_flow": "<string>",
  "code": "<string>",
  "message": "<string>"
}
'
import requests

url = "https://sandbox.hyperswitch.io/gsm/delete"

payload = {
"connector": "<string>",
"flow": "<string>",
"sub_flow": "<string>",
"code": "<string>",
"message": "<string>"
}
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
connector: '<string>',
flow: '<string>',
sub_flow: '<string>',
code: '<string>',
message: '<string>'
})
};

fetch('https://sandbox.hyperswitch.io/gsm/delete', 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/gsm/delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'connector' => '<string>',
'flow' => '<string>',
'sub_flow' => '<string>',
'code' => '<string>',
'message' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)

func main() {

url := "https://sandbox.hyperswitch.io/gsm/delete"

payload := strings.NewReader("{\n \"connector\": \"<string>\",\n \"flow\": \"<string>\",\n \"sub_flow\": \"<string>\",\n \"code\": \"<string>\",\n \"message\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://sandbox.hyperswitch.io/gsm/delete")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"connector\": \"<string>\",\n \"flow\": \"<string>\",\n \"sub_flow\": \"<string>\",\n \"code\": \"<string>\",\n \"message\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://sandbox.hyperswitch.io/gsm/delete")

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

request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"connector\": \"<string>\",\n \"flow\": \"<string>\",\n \"sub_flow\": \"<string>\",\n \"code\": \"<string>\",\n \"message\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "gsm_rule_delete": true,
  "connector": "<string>",
  "flow": "<string>",
  "sub_flow": "<string>",
  "code": "<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.

Body

application/json
connector
string
required

The connector through which payment has gone through

flow
string
required

The flow in which the code and message occurred for a connector

sub_flow
string
required

The sub_flow in which the code and message occurred for a connector

code
string
required

code received from the connector

message
string
required

message received from the connector

Response

Gsm deleted

gsm_rule_delete
boolean
required
connector
string
required

The connector through which payment has gone through

flow
string
required

The flow in which the code and message occurred for a connector

sub_flow
string
required

The sub_flow in which the code and message occurred for a connector

code
string
required

code received from the connector