Skip to main content

Billing

billing

Account billing, invoices, upgrades, credit, cancellation, and minigame server requests.

Get invoice list

PUT
Authenticated

Lists invoices, optionally filtered by status.

Request URLhttps://api.creeper.host/billing/fetchinvoices

Headers

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 URLhttps://api.creeper.host/billing/details

Headers

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",
"email": "[email protected]",
"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 URLhttps://api.creeper.host/billing/availableupgrades

Headers

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 URLhttps://api.creeper.host/billing/upgrade

The 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 URLhttps://api.creeper.host/billing/iscancelled

The 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 URLhttps://api.creeper.host/billing/playmentslist

Headers

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 URLhttps://api.creeper.host/billing/credit

Headers

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 URLhttps://api.creeper.host/billing/spinupminigame

Headers

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 URLhttps://api.creeper.host/billing/extendminigame

Headers

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 URLhttps://api.creeper.host/billing/spindownminigame

Headers

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 URLhttps://api.creeper.host/billing/timerminigame

Headers

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"
}
Wiki offerGet 10% off