Payment Methods
Discover and inspect payment methods linked to your HUB org.
List payment methods
- curl
- Python
- JavaScript
curl --location \
'https://api.skywatch.co/earthcache/accounts/payment_methods' \
--header 'x-api-key: {{User_API_Key}}'
requests.get(
"https://api.skywatch.co/earthcache/accounts/payment_methods",
headers={"x-api-key":"{{User_API_Key}}"}
).json()
await (await fetch(
"https://api.skywatch.co/earthcache/accounts/payment_methods",
{ headers: { "x-api-key": "{{User_API_Key}}" } }
)).json();
Includes method id, name, type, start/end, pending charges, spend, and associated projects.
Read a payment method
- curl
- Python
- JavaScript
curl --location --globoff \
'https://api.skywatch.co/earthcache/accounts/payment_methods/{{payment_method_id}}' \
--header 'x-api-key: {{User_API_Key}}'
requests.get(
f"https://api.skywatch.co/earthcache/accounts/payment_methods/{payment_method_id}",
headers={"x-api-key":"{{User_API_Key}}"}
).json()
await (await fetch(
`https://api.skywatch.co/earthcache/accounts/payment_methods/${payment_method_id}`,
{ headers: { "x-api-key": "{{User_API_Key}}" } }
)).json();
See API Reference
For complete API documentation with interactive testing, see Hub Payment Methods API Reference.