Billing
billing
Account billing, invoices, upgrades, credit, cancellation, and minigame server requests.
Get invoice list
PUT
Authenticated
Lists invoices, optionally filtered by status.
Request URL
https://api.creeper.host/billing/fetchinvoicesHeaders
Content-Type: application/json
key: {api-key}
secret: {api-secret}Request body
{
"status": "Paid/Unpaid",
"count": 3
}
Response 200
{
"totalresults": "1",
"startnumber": 0,
"numreturned": 1,
"invoices": {
"invoice": [
{
"id": "298762",
"date": "2017-04-27",
"duedate": "2017-05-02",
"total": "11.99",
"status": "Unpaid",
"currencycode": "GBP"
}
]
},
"status": "success",
"endPoint": "aries-production-59c48bc84-hpqw4"
}
Get billing details
GET
Authenticated
Returns billing profile details.
Request URL
https://api.creeper.host/billing/detailsHeaders
Content-Type: application/json
key: {api-key}
secret: {api-secret}Response 200
{
"uuid": "d7aed30d-e1e1-4680-80d3-c505cbd1a222",
"firstname": "First",
"lastname": "Last",
"fullname": "First Last",
"country": "GB",
"currency": {
"exchange_rate": "1.00000",
"prefix": "GBP",
"suffix": null,
"code": "GBP"
},
"credit": "0.00",
"endPoint": "aries-production-59c48bc84-hpqw4"
}
Get available server upgrades
GET
Authenticated
Lists available upgrade and downgrade products.
Request URL
https://api.creeper.host/billing/availableupgradesHeaders
Content-Type: application/json
key: {api-key}
secret: {api-secret}Response 200
{
"status": "success",
"products": {
"32": {
"id": "32",
"name": "Magma Cube",
"Monthly": 6.99,
"proRata": 0,
"Current": false,
"Currency": {
"code": "GBP"
}
}
},
"endPoint": "aries-production-59c48bc84-hpqw4"
}
Upgrade or downgrade server
PUT
Authenticated
Changes the server package.
Request URL
https://api.creeper.host/billing/upgradeThe Apiary source had pacakge; the Aries code reads package.
Headers
Content-Type: application/json
key: {api-key}
secret: {api-secret}Request body
{
"package": "49",
"promocode": ""
}
Response 200
{
"status": "success",
"endPoint": "aries-production-59c48bc84-hpqw4"
}
Get cancelled status
GET
Authenticated
Checks whether a cancellation request exists.
Request URL
https://api.creeper.host/billing/iscancelledThe command is spelled iscancelled in Aries.
Headers
Content-Type: application/json
key: {api-key}
secret: {api-secret}Response 200
{
"status": "success",
"message": "No cancellation request has been received.",
"cancelled": false,
"endPoint": "aries-production-59c48bc84-hpqw4"
}
Get playments list
PUT
Authenticated
Lists received Playments.
Request URL
https://api.creeper.host/billing/playmentslistHeaders
Content-Type: application/json
key: {api-key}
secret: {api-secret}Request body
{
"count": 100
}
Response 200
{
"status": "success",
"message": "A list of received playments is included.",
"payments": [],
"endPoint": "aries-production-59c48bc84-hpqw4"
}
Get current credit
GET
Authenticated
Returns current account credit.
Request URL
https://api.creeper.host/billing/creditHeaders
Content-Type: application/json
key: {api-key}
secret: {api-secret}Response 200
{
"status": "success",
"credit": 0,
"message": "You have 0 available credit on your account.",
"endPoint": "aries-production-59c48bc84-hpqw4"
}
Spin up minigame server
PUT
Authenticated
Creates a temporary minigame server.
Request URL
https://api.creeper.host/billing/spinupminigameHeaders
Content-Type: application/json
key: {api-key}
secret: {api-secret}Request body
{
"ram": 1,
"game": "custom",
"time": "1",
"custom": "http://www.creeperrepo.net/mg-templates/paintball18.zip"
}
Response 200
{
"status": "success",
"ip": "123.123.123.5",
"port": 1234,
"rootpass": "password",
"readytime": 42.235509872437,
"node": "mdn172",
"cost": 0,
"uuid": "5903950ae9287",
"endPoint": "aries-production-59c48bc84-hpqw4"
}
Extend minigame server
PUT
Authenticated
Extends the lifetime of a temporary minigame server.
Request URL
https://api.creeper.host/billing/extendminigameHeaders
Content-Type: application/json
key: {api-key}
secret: {api-secret}Request body
{
"uuid": "5903950ae9287"
}
Response 200
{
"status": "success",
"cost": 0,
"endtime": 1493414229,
"uuid": "5903950ae9287",
"endPoint": "aries-production-59c48bc84-hpqw4"
}
Spin down minigame server
PUT
Authenticated
Stops a temporary minigame server.
Request URL
https://api.creeper.host/billing/spindownminigameHeaders
Content-Type: application/json
key: {api-key}
secret: {api-secret}Request body
{
"uuid": "5903950ae9287"
}
Response 200
{
"status": "success",
"message": "Credit has been applied to your account.",
"amount": 0,
"endPoint": "aries-production-59c48bc84-hpqw4"
}
Get minigame time remaining
PUT
Authenticated
Returns remaining lifetime for a temporary minigame server.
Request URL
https://api.creeper.host/billing/timerminigameHeaders
Content-Type: application/json
key: {api-key}
secret: {api-secret}Request body
{
"uuid": "597ba4d453112"
}
Response 200
{
"status": "success",
"uuid": "597ba4d453112",
"remaining": 3512,
"endPoint": "aries-production-59c48bc84-hpqw4"
}