List charges
curl --request GET \
--url https://api.salesive.com/api/v1/app-billing/charges \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salesive.com/api/v1/app-billing/charges"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salesive.com/api/v1/app-billing/charges', 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://api.salesive.com/api/v1/app-billing/charges",
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: Bearer <token>"
],
]);
$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://api.salesive.com/api/v1/app-billing/charges"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.salesive.com/api/v1/app-billing/charges")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/app-billing/charges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "OK",
"data": {
"items": [
{
"id": "66d1f0a3c2d4e5f6a7b8c9d0",
"reference": "apc_3f9a1c52d7e84b60",
"status": "pending",
"name": "Extra seats",
"description": "5 additional seats",
"amount": 15,
"currency": "USD",
"platformFee": 0.75,
"netAmount": 14.25,
"subscriptionId": null,
"periodStart": null,
"periodEnd": null,
"test": false,
"metadata": {
"orderRef": "A-1042"
},
"returnUrl": "https://myapp.example.com/billing/done",
"confirmationUrl": "https://app.salesive.com/apps/billing/approve/apc_3f9a1c52d7e84b60",
"failureReason": null,
"expiresAt": "2026-10-27T10:30:00.000Z",
"paidAt": null,
"createdAt": "2026-10-25T10:30:00.000Z"
}
],
"total": 1
}
}{
"status": 401,
"success": false,
"message": "Authentication required",
"data": null
}{
"status": 403,
"success": false,
"message": "Insufficient scope",
"data": null
}Billing
List charges
List the charges and subscription payments for this installation. Requires the READ_CHARGES scope.
GET
/
app-billing
/
charges
List charges
curl --request GET \
--url https://api.salesive.com/api/v1/app-billing/charges \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salesive.com/api/v1/app-billing/charges"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salesive.com/api/v1/app-billing/charges', 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://api.salesive.com/api/v1/app-billing/charges",
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: Bearer <token>"
],
]);
$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://api.salesive.com/api/v1/app-billing/charges"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.salesive.com/api/v1/app-billing/charges")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/app-billing/charges")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "OK",
"data": {
"items": [
{
"id": "66d1f0a3c2d4e5f6a7b8c9d0",
"reference": "apc_3f9a1c52d7e84b60",
"status": "pending",
"name": "Extra seats",
"description": "5 additional seats",
"amount": 15,
"currency": "USD",
"platformFee": 0.75,
"netAmount": 14.25,
"subscriptionId": null,
"periodStart": null,
"periodEnd": null,
"test": false,
"metadata": {
"orderRef": "A-1042"
},
"returnUrl": "https://myapp.example.com/billing/done",
"confirmationUrl": "https://app.salesive.com/apps/billing/approve/apc_3f9a1c52d7e84b60",
"failureReason": null,
"expiresAt": "2026-10-27T10:30:00.000Z",
"paidAt": null,
"createdAt": "2026-10-25T10:30:00.000Z"
}
],
"total": 1
}
}{
"status": 401,
"success": false,
"message": "Authentication required",
"data": null
}{
"status": 403,
"success": false,
"message": "Insufficient scope",
"data": null
}Returns this installation’s charges, newest first.
Authorizations
Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side, never send a shop id.
Query Parameters
Filter by status.
Required range:
x >= 1Required range:
1 <= x <= 100Only the payments of this subscription id.
Response
A page of charges, newest first.
Was this page helpful?

