Order a backup plan for a VPS
curl --request POST \
--url https://api.storiza.store/vps/{id}/backups/order \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"backupPlanId": "<string>",
"method": "<string>",
"duration": 30,
"currency": "USD",
"couponCode": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
backupPlanId: '<string>',
method: '<string>',
duration: 30,
currency: 'USD',
couponCode: '<string>'
})
};
fetch('https://api.storiza.store/vps/{id}/backups/order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/vps/{id}/backups/order"
payload = {
"backupPlanId": "<string>",
"method": "<string>",
"duration": 30,
"currency": "USD",
"couponCode": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "Backup order created successfully",
"data": {
"id": 1042,
"type": "topup",
"status": "pending",
"direction": "deposit",
"method": "credit-cards",
"provider": "polar",
"currency": null,
"conversionRate": "1",
"subtotalAmount": "100",
"discountAmount": "10",
"netAmount": "90",
"taxAmount": "0",
"totalAmount": "90",
"user": {
"id": "00000000-0000-4000-8000-000000000000"
},
"coupon": null,
"supportsIframes": false,
"applePaySession": null,
"expiresAt": "2026-10-09T15:57:33.916Z"
}
}Server backups
Order a backup plan for a VPS
Raises a transaction that attaches a backup plan to this VPS once paid. Through the balance method the plan activates immediately; through an external method the response carries a checkoutUrl to pay at, and the plan activates when the payment settles.
The backup subscription is independent of the server’s own subscription — it renews, lapses and is cancelled on its own (DELETE /payments/subscriptions/:id with the returned subscriptionId).
Poll GET /payments/transactions/:id/status for settlement.
Required API key permission: vps:write
POST
/
vps
/
{id}
/
backups
/
order
Order a backup plan for a VPS
curl --request POST \
--url https://api.storiza.store/vps/{id}/backups/order \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"backupPlanId": "<string>",
"method": "<string>",
"duration": 30,
"currency": "USD",
"couponCode": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
backupPlanId: '<string>',
method: '<string>',
duration: 30,
currency: 'USD',
couponCode: '<string>'
})
};
fetch('https://api.storiza.store/vps/{id}/backups/order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/vps/{id}/backups/order"
payload = {
"backupPlanId": "<string>",
"method": "<string>",
"duration": 30,
"currency": "USD",
"couponCode": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "Backup order created successfully",
"data": {
"id": 1042,
"type": "topup",
"status": "pending",
"direction": "deposit",
"method": "credit-cards",
"provider": "polar",
"currency": null,
"conversionRate": "1",
"subtotalAmount": "100",
"discountAmount": "10",
"netAmount": "90",
"taxAmount": "0",
"totalAmount": "90",
"user": {
"id": "00000000-0000-4000-8000-000000000000"
},
"coupon": null,
"supportsIframes": false,
"applePaySession": null,
"expiresAt": "2026-10-09T15:57:33.916Z"
}
}Authorizations
An API key from the Storiza dashboard (API & Integrations), sent as Authorization: Bearer stz_….
Path Parameters
Minimum string length:
1Body
application/json
Response
Backup order created successfully
Available options:
true Available options:
Backup order created successfully Schema for Transaction model
Show child attributes
Show child attributes
Example:
{
"id": 1042,
"type": "topup",
"status": "pending",
"direction": "deposit",
"method": "credit-cards",
"provider": "polar",
"currency": null,
"conversionRate": "1",
"subtotalAmount": "100",
"discountAmount": "10",
"netAmount": "90",
"taxAmount": "0",
"totalAmount": "90",
"user": {
"id": "00000000-0000-4000-8000-000000000000"
},
"coupon": null,
"supportsIframes": false,
"applePaySession": null,
"expiresAt": "2026-10-09T15:57:33.916Z"
}
Was this page helpful?