Authorization: Bearer ********************
{
"server_ids": [
152414
],
"billing_cycle": 1,
"promo_code": "fall2406"
}
curl --location --request POST 'https://api.vpsbg.eu/v1/servers/renew/calculate' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--data-raw '{
"server_ids": [
152414
],
"billing_cycle": 1,
"promo_code": "fall2406"
}'
{
"amount": 99.67,
"amount_with_vat": 104.67,
"discount": 25,
"discount_with_vat": 30,
"promo_code": {
"code": "fall2403",
"percentage": 33.33,
"minimum_billing_cycle": 3
},
"due_today_amount": 74.67,
"due_today_amount_with_vat": 89.61
}