Billing
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v1/account HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
{
"active": true,
"legal_entity_identifier": "text",
"number": "text",
"organization_id": "text",
"remittance": true,
"scu_consumed_mtd": 1,
"scu_remaining_mtd": 1,
"start_date": "text",
"status": "text",
"subscription": {
"payment_collection_method": "text",
"status": "text"
},
"tier": "text",
"trial_credit": 1
}
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v1/account/postpaid-commit-ledger HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"contract_entitlement_id": "text",
"created_at": "text",
"id": "text",
"invoice_amount": 1,
"min_compute_commit": 1,
"org_id": "text",
"period": "text",
"unused_compute_commit": 1
}
]
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v1/account/prepaid-credit-ledger HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"amount": 1,
"batch": 1,
"contract_id": "text",
"created_at": "text",
"id": "text",
"org_id": "text",
"reason": "text",
"type": "text"
}
]
billing year
billing month
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v1/bills HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
{
"additional_compute_discount": 1,
"billing_mode": "text",
"currency": "text",
"currency_symbol": "text",
"data_transfer_cost": 1,
"discount": 1,
"discounted_compute_cost": 1,
"id": "text",
"line_items": [
{
"bill_id": "text",
"cost": {
"ANY_ADDITIONAL_PROPERTY": [
{
"active_nodes": 1,
"instance": "text",
"name": "text",
"price_per_hour": 1,
"total_cost": 1,
"total_hours": 1
}
]
},
"id": "text",
"service": {
"name": "text",
"provider": "text",
"region": "text",
"service_id": "text",
"topology": "text"
}
}
],
"min_compute_cost": 1,
"org_id": "text",
"period": "text",
"remaining_credit": 1,
"support_cost": 1,
"support_type": "text",
"tier": "text",
"total": 1,
"total_compute_cost": 1,
"total_storage_cost": 1,
"undiscounted_compute_cost": 1,
"unused_compute_commit": 1,
"unused_compute_commit_ledger": 1,
"usage_days": 1
}
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v1/contacts HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"address": {
"address_line_1": "text",
"address_line_2": "text",
"city": "text",
"country": "text",
"postal_code": "text",
"state": "text"
},
"email": "text",
"first_name": "text",
"id": "text",
"last_name": "text",
"phone": "text",
"type": "text"
}
]
OK
Not Found
POST /billing/v1/contacts HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
{
"address": {
"address_line_1": "text",
"address_line_2": "text",
"city": "text",
"country": "text",
"postal_code": "text",
"state": "text"
},
"email": "text",
"first_name": "text",
"id": "text",
"last_name": "text",
"phone": "text",
"type": "text"
}
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v1/contracts/{org_id} HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"billing_mode": "text",
"created_at": "text",
"created_by": "text",
"currency": "text",
"end_date": "text",
"entitlements": [
{
"contract_id": "text",
"created_at": "text",
"end_date": "text",
"entitlement_id": "text",
"id": "text",
"spec": null,
"start_date": "text"
}
],
"estimated_contract_commit": 1,
"estimated_contract_value": 1,
"execution_date": "text",
"id": "text",
"integration_id": "text",
"marketing_collaboration_discount": true,
"org_id": "text",
"renewal_date": "text",
"renewal_id": "text",
"start_date": "text",
"state": "text",
"updated_at": "text",
"updated_by": "text"
}
]
start date
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v1/invoices HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"invoice_amount": 1,
"invoice_date": "text",
"invoice_due_date": "text",
"invoice_id": "text",
"invoice_pdf_url": "text",
"org_id": "text",
"period": "text"
}
]
Invoice identifier
resource or service
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v1/invoices/{invoice_id} HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
{
"bill_date": "text",
"currency": "text",
"invoice_amount": 1,
"invoice_date": "text",
"invoice_due_date": "text",
"invoice_id": "text",
"invoice_pdf_url": "text",
"org_id": "text",
"period": "text",
"scu_consumed": 1,
"scu_remaining": 1,
"services": [
{
"cost": 1,
"node_cost": 1,
"nodes": [
{
"active_nodes": 1,
"cost": 1,
"quantity": 1,
"rate": 1,
"rate_unit": "text",
"size": "text",
"unit": "text"
}
],
"service": {
"arch": "text",
"instance": "text",
"name": "text",
"provider": "text",
"region": "text",
"service_id": "text",
"tier": "text",
"topology": "text"
},
"storage": {
"cost": 1,
"iops": {
"cost": 1,
"quantity": 1,
"rate": 1,
"rate_unit": "text",
"unit": "text"
},
"quantity": 1,
"rate": 1,
"rate_unit": "text",
"throughput": {
"cost": 1,
"quantity": 1,
"rate": 1,
"rate_unit": "text",
"unit": "text"
},
"total_cost": 1,
"type": "text",
"unit": "text"
}
}
],
"status": "text",
"symbol": "text",
"usage_end_date": "text",
"usage_start_date": "text"
}
true or false
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v1/locale/country HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"active": true,
"iso3166_2": "text",
"iso3166_3": "text",
"lei": "text",
"name": "text",
"vat": true
}
]
true or false
iso3166-2 country code
OK
GET /billing/v1/locale/state-province HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
OK
[
{
"active": true,
"country": "text",
"iso_short": "text",
"name": "text"
}
]
Offering identifier
provider name
product name
topology name
tier name
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v1/meters/{id} HTTP/1.1
Host: api.skysql.com/
Accept: */*
[
{
"class": "text",
"description": "text",
"label": "text",
"meter_id": "text",
"name": "text",
"offering_id": "text",
"price_dimensions": {
"ANY_ADDITIONAL_PROPERTY": true
},
"unit": "text"
}
]
Offering identifier
provider name
product name
topology name
tier name
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v1/offerings HTTP/1.1
Host: api.skysql.com/
Accept: */*
[
{
"description": "text",
"name": "text",
"offering_id": "text",
"product_mapping": "text"
}
]
Offering identifier
provider name
product name
topology name
tier name
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v1/offerings/{id}/meters HTTP/1.1
Host: api.skysql.com/
Accept: */*
[
{
"class": "text",
"description": "text",
"label": "text",
"meter_id": "text",
"name": "text",
"offering_id": "text",
"price_dimensions": {
"ANY_ADDITIONAL_PROPERTY": true
},
"unit": "text"
}
]
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v1/payment-methods HTTP/1.1
Host: api.skysql.com/
Accept: */*
[
{
"billing_details": {
"country": "text",
"name": "text"
},
"card": {
"card_type": "text",
"cvc_validation": true,
"expiration_month": 1,
"expiration_year": 1,
"masked_card_number": "text"
},
"default_payment_method": true,
"payment_method_id": "text",
"type": "text"
}
]
OK
Bad Request
Unauthorized
Internal Server Error
POST /billing/v1/payment-methods/setup-intent HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
{
"intent": "text",
"key": "text",
"secret": "text"
}
Payment identifier
No Content
No content
Bad Request
Unauthorized
Internal Server Error
DELETE /billing/v1/payment-methods/{pm_id} HTTP/1.1
Host: api.skysql.com/
Accept: */*
No content
Payment identifier
No Content
No content
Bad Request
Unauthorized
Internal Server Error
PATCH /billing/v1/payment-methods/{pm_id} HTTP/1.1
Host: api.skysql.com/
Accept: */*
No content
Offering identifier
provider name
product name
topology name
tier name
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v1/prices/{offering} HTTP/1.1
Host: api.skysql.com/
Accept: */*
[
{
"dimensions": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"end_range": 1,
"id": "text",
"meter": {
"class": "text",
"description": "text",
"label": "text",
"meter_id": "text",
"name": "text",
"offering_id": "text",
"price_dimensions": {
"ANY_ADDITIONAL_PROPERTY": true
},
"unit": "text"
},
"price": {
"currency": "text",
"monthly_commit": 1,
"multiplier": 1,
"price_per_hour": 1,
"price_per_min": 1,
"price_per_month": 1,
"scale_fabric_price_per_hour": 1,
"scale_fabric_price_per_min": 1,
"scale_fabric_price_per_month": 1
},
"start_range": 1,
"type": "text"
}
]
billing year
billing month
OK
Bad Request
Unauthorized
Internal Server Error
GET /billing/v2/bills HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
{
"additional_compute_discount": 1,
"billing_mode": "text",
"currency": "text",
"currency_symbol": "text",
"data_transfer_cost": 1,
"discount": 1,
"discounted_compute_cost": 1,
"id": "text",
"items": [
{
"id": "text",
"line_items": {
"ANY_ADDITIONAL_PROPERTY": [
{
"billable_usage": 1,
"dimensions": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"included_usage": 1,
"included_usage_amount": 1,
"included_usage_limit": 1,
"meter": "text",
"price_id": "text",
"quantity": 1,
"rate": 1,
"rate_unit": "text",
"total": 1,
"unit": "text"
}
]
},
"resource": {
"dimensions": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"name": "text",
"resource_id": "text"
},
"total": 1
}
],
"min_compute_cost": 1,
"org_id": "text",
"other_cost": 1,
"period": "text",
"remaining_credit": 1,
"support_cost": 1,
"support_type": "text",
"tier": "text",
"total": 1,
"total_compute_cost": 1,
"total_storage_cost": 1,
"undiscounted_compute_cost": 1,
"unused_compute_commit": 1,
"usage_days": 1
}
Invoice identifier
OK
Bad Request
Unauthorized
Internal Server Error
GET /public/services/bcs/invoices/{invoice_id}/pdf HTTP/1.1
Host: api.skysql.com/
X-API-Key: YOUR_API_KEY
Accept: */*
[
1
]
Was this helpful?