curl --request GET \
--url https://api.sandbox.gravitypay.app/v1/subscriptions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.gravitypay.app/v1/subscriptions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.gravitypay.app/v1/subscriptions', 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.sandbox.gravitypay.app/v1/subscriptions",
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.sandbox.gravitypay.app/v1/subscriptions"
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.sandbox.gravitypay.app/v1/subscriptions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.gravitypay.app/v1/subscriptions")
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{
"object": "list",
"data": [
{
"id": "clx1sub01",
"object": "subscription",
"status": "active",
"amountInCents": 4990,
"currency": "BRL",
"billingCycle": "MONTHLY",
"paymentMethod": "credit_card",
"provider": "PAGARME",
"offer": {
"id": "clx1offer01",
"name": "Plano mensal"
},
"product": {
"id": "clx1product01",
"name": "Mentoria"
},
"customer": {
"email": "ana@cliente.com",
"name": "Ana Cliente",
"document": "12345678909",
"phone": "11999990000"
},
"parentSubscriptionId": null,
"salesRep": {
"id": "clx1rep01",
"name": "Bruno Vendas",
"refCode": "BRUNO1"
},
"salesRefCode": "BRUNO1",
"currentPeriodEnd": "2026-10-10T14:21:00.000Z",
"nextChargeAt": null,
"canceledAt": null,
"createdAt": "2026-09-10T14:21:00.000Z",
"updatedAt": "2026-09-10T14:21:05.000Z"
}
],
"page": 1,
"perPage": 50,
"total": 1,
"totalPages": 1,
"hasMore": false
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"requiredScope": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"requiredScope": "<string>"
}
}{
"error": {
"type": "insufficient_scope",
"message": "Esta chave de API não tem o escopo students:read.",
"requiredScope": "students:read"
}
}Listar assinaturas
Lista paginada das assinaturas da loja da chave. Todos os filtros são opcionais e se combinam (E); sem filtro, traz todas. offerId ou productId de outra loja, ou inexistente, devolve lista vazia. Ordem: createdAt decrescente e, no empate, id decrescente. O item não traz ids nem dados do gateway.
Escopo exigido: subscriptions:read.
curl --request GET \
--url https://api.sandbox.gravitypay.app/v1/subscriptions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.gravitypay.app/v1/subscriptions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.gravitypay.app/v1/subscriptions', 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.sandbox.gravitypay.app/v1/subscriptions",
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.sandbox.gravitypay.app/v1/subscriptions"
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.sandbox.gravitypay.app/v1/subscriptions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.gravitypay.app/v1/subscriptions")
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{
"object": "list",
"data": [
{
"id": "clx1sub01",
"object": "subscription",
"status": "active",
"amountInCents": 4990,
"currency": "BRL",
"billingCycle": "MONTHLY",
"paymentMethod": "credit_card",
"provider": "PAGARME",
"offer": {
"id": "clx1offer01",
"name": "Plano mensal"
},
"product": {
"id": "clx1product01",
"name": "Mentoria"
},
"customer": {
"email": "ana@cliente.com",
"name": "Ana Cliente",
"document": "12345678909",
"phone": "11999990000"
},
"parentSubscriptionId": null,
"salesRep": {
"id": "clx1rep01",
"name": "Bruno Vendas",
"refCode": "BRUNO1"
},
"salesRefCode": "BRUNO1",
"currentPeriodEnd": "2026-10-10T14:21:00.000Z",
"nextChargeAt": null,
"canceledAt": null,
"createdAt": "2026-09-10T14:21:00.000Z",
"updatedAt": "2026-09-10T14:21:05.000Z"
}
],
"page": 1,
"perPage": 50,
"total": 1,
"totalPages": 1,
"hasMore": false
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"requiredScope": "<string>"
}
}{
"error": {
"type": "<string>",
"message": "<string>",
"param": "<string>",
"requiredScope": "<string>"
}
}{
"error": {
"type": "insufficient_scope",
"message": "Esta chave de API não tem o escopo students:read.",
"requiredScope": "students:read"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Página (começa em 1). Página além da última devolve data vazio e hasMore false.
x >= 1Itens por página (1 a 100; default 50).
1 <= x <= 100Assinaturas cuja oferta pertence a este produto.
Assinaturas desta oferta.
E-mail do cliente, sem diferenciar maiúsculas e ignorando espaços nas pontas. Vazio responde 400.
CPF ou CNPJ do cliente. Compara só os dígitos: 123.456.789-09 e 12345678909 acham a mesma assinatura, gravada de qualquer um dos jeitos. Valor sem nenhum dígito responde 400.
Status da assinatura. Outro valor responde 400.
active, past_due, canceled, incomplete 
