SSL Certificate Price Selling¶
/ssl-certificate-price-selling¶
GET¶
Return selling prices
Request parameters
All parameters are optional.
|
string |
UUID of the price list to return the selling prices for. |
|
string |
UUID of the plan to return the selling prices for. |
JSON response
Possible errors
N/A
Sample
curl \
--request GET \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/ssl-certificate-price-selling" | python -m json.tool
POST¶
Create a selling price
JSON request
|
string |
UUID of the price list to define a price for. |
||||||
|
string |
UUID of the plan to define a price for. |
||||||
|
string |
3 character ISO 4217 currency code |
||||||
|
string |
Name of the price list. |
||||||
|
datetime |
Date/Time indicating when the price get active (there is always one price active). |
||||||
|
list |
For each action available for the selected plan an amount should be defined.
|
JSON response
object: SSL Certificate Price Selling
Possible errors
Sample
curl \
--request POST \
--user "{{api_username}}:{{api_key}}" \
--data '
{
"name": "Action price for April",
"currency": "EUR",
"plan": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"start": "2016-04-04 00:00:00",
"actions": [
{
"action": "create",
"amount": 1000
},
{
"action": "renew",
"amount": 1500
}
]
}
' \
"{{api_base_url}}/ssl-certificate-price-selling" | python -m json.tool
/ssl-certificate-price-selling/{id}¶
GET¶
Get detailed information about selling price.
JSON response
object: SSL Certificate Price Selling
Possible errors
Sample
curl \
--request GET \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/ssl-certificate-price-selling/{id}" | python -m json.tool
PUT¶
Update a selling price.
JSON request
|
string |
3 character ISO 4217 currency code |
||||||
|
string |
Name of the price list. |
||||||
|
datetime |
Date/Time indicating when the price get active (there is always one price active). |
||||||
|
list |
For each action available for the selected plan an amount should be defined.
|
JSON response
object: SSL Certificate Price Selling
Possible errors
Sample
curl \
--request PUT \
--user "{{api_username}}:{{api_key}}" \
--data '
{
"name": "Action price for April",
"currency": "EUR",
"start": "2016-04-04 00:00:00",
"actions": [
{
"action": "create",
"amount": 1000
},
{
"action": "renew",
"amount": 1500
}
]
}
' \
"{{api_base_url}}/ssl-certificate-price-selling/{id}" | python -m json.tool