List payment links
curl --request GET \
--url https://app.dilli.studio/api/v1/payment-links \
--header 'X-Api-Key: <api-key>'import requests
url = "https://app.dilli.studio/api/v1/payment-links"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://app.dilli.studio/api/v1/payment-links', 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://app.dilli.studio/api/v1/payment-links",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-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://app.dilli.studio/api/v1/payment-links"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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://app.dilli.studio/api/v1/payment-links")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.dilli.studio/api/v1/payment-links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"current_page": 123,
"per_page": 123,
"total": 123,
"data": [
{
"id": "<string>",
"public_token": "<string>",
"name": "<string>",
"description": "<string>",
"amount": 123,
"currency": "<string>",
"is_active": true,
"max_installments": 123,
"interest_rate": 123,
"is_recurring": true,
"interval_unit": "<string>",
"interval_count": 123,
"billing_cycles": 123,
"payment_provider_account_id": "<string>",
"provider_account": {
"id": "<string>",
"name": "<string>",
"provider": "pagarme",
"mode": "test"
},
"products": [
{
"id": "<string>",
"name": "<string>",
"price": 123,
"price_minor": 123,
"currency": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z"
}
]
}Payment Links
List Payment Links
GET
/
payment-links
List payment links
curl --request GET \
--url https://app.dilli.studio/api/v1/payment-links \
--header 'X-Api-Key: <api-key>'import requests
url = "https://app.dilli.studio/api/v1/payment-links"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://app.dilli.studio/api/v1/payment-links', 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://app.dilli.studio/api/v1/payment-links",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-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://app.dilli.studio/api/v1/payment-links"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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://app.dilli.studio/api/v1/payment-links")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.dilli.studio/api/v1/payment-links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"current_page": 123,
"per_page": 123,
"total": 123,
"data": [
{
"id": "<string>",
"public_token": "<string>",
"name": "<string>",
"description": "<string>",
"amount": 123,
"currency": "<string>",
"is_active": true,
"max_installments": 123,
"interest_rate": 123,
"is_recurring": true,
"interval_unit": "<string>",
"interval_count": 123,
"billing_cycles": 123,
"payment_provider_account_id": "<string>",
"provider_account": {
"id": "<string>",
"name": "<string>",
"provider": "pagarme",
"mode": "test"
},
"products": [
{
"id": "<string>",
"name": "<string>",
"price": 123,
"price_minor": 123,
"currency": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z"
}
]
}Use the API Playground below to send this request with your
X-Api-Key. Filter by search or is_active to narrow results.
