getInvoiceItems
curl --request GET \
--url https://alphainsider.com/api/getInvoiceItems \
--header 'Authorization: <authorization>'const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://alphainsider.com/api/getInvoiceItems', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://alphainsider.com/api/getInvoiceItems"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://alphainsider.com/api/getInvoiceItems",
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: <authorization>"
],
]);
$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://alphainsider.com/api/getInvoiceItems"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"response": [
{
"item_id": "CIgS_MNX2BjggL2QIEJkb",
"user_id": "user_1",
"product_id": "qkV9qPfpxr4wWMaZKprdI",
"invoice_id": "NJ9Fo2OSoM5MRy5ithwnw",
"amount": "5000",
"price": 5000,
"start_date": "2024-10-22T20:59:22.304Z",
"end_date": "2024-11-22T20:59:22.309Z",
"updated_at": "2024-10-22T20:59:22.304Z",
"created_at": "2024-10-22T20:59:22.304Z",
"amount_refunded": "0",
"name": "Pro Account Monthly Subscription",
"type": "account",
"type_id": null
}
]
}{
"success": false,
"response": "Request failed."
}{
"success": false,
"response": "Authentication failed."
}Payments
getInvoiceItems
Get invoice items.
GET
/
getInvoiceItems
getInvoiceItems
curl --request GET \
--url https://alphainsider.com/api/getInvoiceItems \
--header 'Authorization: <authorization>'const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://alphainsider.com/api/getInvoiceItems', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://alphainsider.com/api/getInvoiceItems"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://alphainsider.com/api/getInvoiceItems",
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: <authorization>"
],
]);
$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://alphainsider.com/api/getInvoiceItems"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"response": [
{
"item_id": "CIgS_MNX2BjggL2QIEJkb",
"user_id": "user_1",
"product_id": "qkV9qPfpxr4wWMaZKprdI",
"invoice_id": "NJ9Fo2OSoM5MRy5ithwnw",
"amount": "5000",
"price": 5000,
"start_date": "2024-10-22T20:59:22.304Z",
"end_date": "2024-11-22T20:59:22.309Z",
"updated_at": "2024-10-22T20:59:22.304Z",
"created_at": "2024-10-22T20:59:22.304Z",
"amount_refunded": "0",
"name": "Pro Account Monthly Subscription",
"type": "account",
"type_id": null
}
]
}{
"success": false,
"response": "Request failed."
}{
"success": false,
"response": "Authentication failed."
}Headers
User API token.
Query Parameters
Invoice identifier, when one exists.
⌘I