Return one caller-owned top-up.
curl --request GET \
--url https://api.example.com/v1/billing/top-ups/{purchaseId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/v1/billing/top-ups/{purchaseId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/v1/billing/top-ups/{purchaseId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ok": true
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Billing
Get a top-up
Poll one caller-owned top-up.
GET
/
v1
/
billing
/
top-ups
/
{purchaseId}
Return one caller-owned top-up.
curl --request GET \
--url https://api.example.com/v1/billing/top-ups/{purchaseId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/v1/billing/top-ups/{purchaseId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/v1/billing/top-ups/{purchaseId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ok": true
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Returns the current state of one top-up created by the authenticated account.
Poll until the status is
paid, failed, or cancelled, or handle
action_required with Stripe’s client SDK.
Was this page helpful?
