Fetch Supported Link types
curl --request GET \
--url https://checkout-api-service.epayclub.com/checkout/links/types \
--header 'api-key: <api-key>'import requests
url = "https://checkout-api-service.epayclub.com/checkout/links/types"
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://checkout-api-service.epayclub.com/checkout/links/types', 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://checkout-api-service.epayclub.com/checkout/links/types",
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://checkout-api-service.epayclub.com/checkout/links/types"
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://checkout-api-service.epayclub.com/checkout/links/types")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://checkout-api-service.epayclub.com/checkout/links/types")
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{
"paymentLinkTypes": [
{
"paymentLinkName": "Single Charge",
"description": "For single charge tokens",
"status": true,
"code": "SC",
"id": 1,
"dateCreated": "2023-07-06T08:48:45",
"dateUpdated": null,
"dateDeleted": null,
"createdBy": -1,
"updatedBy": null,
"deletedBy": null
},
{
"paymentLinkName": "Multiple Charge",
"description": "For subscriptions",
"status": true,
"code": "MC",
"id": 2,
"dateCreated": "2023-07-06T08:48:45",
"dateUpdated": null,
"dateDeleted": null,
"createdBy": -1,
"updatedBy": null,
"deletedBy": null
},
{
"paymentLinkName": "Subscription Payments",
"description": "Subscription Payments",
"status": true,
"code": "SUB",
"id": 5,
"dateCreated": "2023-07-06T08:48:45",
"dateUpdated": null,
"dateDeleted": null,
"createdBy": -1,
"updatedBy": null,
"deletedBy": null
}
],
"status": "success",
"statusCode": "00",
"message": "Payment link types retrieved successfully"
}
{
"status": "failed",
"status_code": "13",
"message": "Order not found at the moment"
}
Payment Links
Fetch Supported Link types
Add detail.
GET
/
checkout
/
links
/
types
Fetch Supported Link types
curl --request GET \
--url https://checkout-api-service.epayclub.com/checkout/links/types \
--header 'api-key: <api-key>'import requests
url = "https://checkout-api-service.epayclub.com/checkout/links/types"
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://checkout-api-service.epayclub.com/checkout/links/types', 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://checkout-api-service.epayclub.com/checkout/links/types",
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://checkout-api-service.epayclub.com/checkout/links/types"
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://checkout-api-service.epayclub.com/checkout/links/types")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://checkout-api-service.epayclub.com/checkout/links/types")
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{
"paymentLinkTypes": [
{
"paymentLinkName": "Single Charge",
"description": "For single charge tokens",
"status": true,
"code": "SC",
"id": 1,
"dateCreated": "2023-07-06T08:48:45",
"dateUpdated": null,
"dateDeleted": null,
"createdBy": -1,
"updatedBy": null,
"deletedBy": null
},
{
"paymentLinkName": "Multiple Charge",
"description": "For subscriptions",
"status": true,
"code": "MC",
"id": 2,
"dateCreated": "2023-07-06T08:48:45",
"dateUpdated": null,
"dateDeleted": null,
"createdBy": -1,
"updatedBy": null,
"deletedBy": null
},
{
"paymentLinkName": "Subscription Payments",
"description": "Subscription Payments",
"status": true,
"code": "SUB",
"id": 5,
"dateCreated": "2023-07-06T08:48:45",
"dateUpdated": null,
"dateDeleted": null,
"createdBy": -1,
"updatedBy": null,
"deletedBy": null
}
],
"status": "success",
"statusCode": "00",
"message": "Payment link types retrieved successfully"
}
{
"status": "failed",
"status_code": "13",
"message": "Order not found at the moment"
}
{
"paymentLinkTypes": [
{
"paymentLinkName": "Single Charge",
"description": "For single charge tokens",
"status": true,
"code": "SC",
"id": 1,
"dateCreated": "2023-07-06T08:48:45",
"dateUpdated": null,
"dateDeleted": null,
"createdBy": -1,
"updatedBy": null,
"deletedBy": null
},
{
"paymentLinkName": "Multiple Charge",
"description": "For subscriptions",
"status": true,
"code": "MC",
"id": 2,
"dateCreated": "2023-07-06T08:48:45",
"dateUpdated": null,
"dateDeleted": null,
"createdBy": -1,
"updatedBy": null,
"deletedBy": null
},
{
"paymentLinkName": "Subscription Payments",
"description": "Subscription Payments",
"status": true,
"code": "SUB",
"id": 5,
"dateCreated": "2023-07-06T08:48:45",
"dateUpdated": null,
"dateDeleted": null,
"createdBy": -1,
"updatedBy": null,
"deletedBy": null
}
],
"status": "success",
"statusCode": "00",
"message": "Payment link types retrieved successfully"
}
{
"status": "failed",
"status_code": "13",
"message": "Order not found at the moment"
}
⌘I

