Get invoice PDF access
curl --request GET \
--url https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-accessimport requests
url = "https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-access"
response = requests.get(url)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-access");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);HttpResponse<String> response = Unirest.get("https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-access")
.asString();const options = {method: 'GET'};
fetch('https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-access', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-access"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-access",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"url": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}PaymentMethods
Get invoice PDF access
Creates a short-lived, secure URL that lets the current business view or download a private Stripe invoice PDF without exposing a permanent file link.
GET
/
payment-methods
/
invoices
/
{invoiceId}
/
pdf-access
Get invoice PDF access
curl --request GET \
--url https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-accessimport requests
url = "https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-access"
response = requests.get(url)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-access");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);HttpResponse<String> response = Unirest.get("https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-access")
.asString();const options = {method: 'GET'};
fetch('https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-access', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-access"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/payment-methods/invoices/{invoiceId}/pdf-access",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"url": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}⌘I

