{
	"info": {
		"_postman_id": "41fe1517-38e4-4a9c-819a-23bdf441ca3d",
		"name": "SSLMarket",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "List of products",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://www.sslmarket.cz/api/product/list",
					"protocol": "https",
					"host": [
						"www",
						"sslmarket",
						"cz"
					],
					"path": [
						"api",
						"product",
						"list"
					]
				},
				"description": "The function returns a list of products that are available in the API."
			},
			"response": []
		},
		{
			"name": "List of orders",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://www.sslmarket.cz/api/order/list",
					"protocol": "https",
					"host": [
						"www",
						"sslmarket",
						"cz"
					],
					"path": [
						"api",
						"order",
						"list"
					]
				},
				"description": "The function lists the orders in the given customer account."
			},
			"response": []
		},
		{
			"name": "Order details",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://www.sslmarket.cz/api/order?order_id=",
					"protocol": "https",
					"host": [
						"www",
						"sslmarket",
						"cz"
					],
					"path": [
						"api",
						"order"
					],
					"query": [
						{
							"key": "order_id",
							"value": ""
						},
						{
							"key": "",
							"value": null,
							"disabled": true
						}
					]
				},
				"description": "The function lists the details of a specific certificate order, which you can also find in customer administration."
			},
			"response": []
		},
		{
			"name": "Inserting a new order",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"domain\": \"\",\n    \"dns_names\": \"\",\n    \"years\": \"\",\n    \"csr\": \"\",\n    \"voucher\": \"\",\n    \"dv_auth_method\": \"\",\n    \"owner_name\": \"{{owner_name}}\",\n    \"owner_street\": \"{{owner_street}}\",\n    \"owner_city\": \"{{owner_city}}\",\n    \"owner_zip\": \"{{owner_zip}}\",\n    \"owner_country\": \"{{owner_country}}\",\n    \"owner_tel\": \"{{owner_tel}}\",\n    \"auth_title\": \"{{auth_title}}\",\n    \"auth_firstname\": \"{{auth_firstname}}\",\n    \"auth_lastname\": \"{{auth_lastname}}\",\n    \"auth_tel\": \"{{auth_tel}}\",\n    \"auth_email\": \"{{auth_email}}\",\n    \"tech_title\": \"{{tech_title}}\",\n    \"tech_firstname\": \"{{tech_firstname}}\",\n    \"tech_lastname\": \"{{tech_lastname}}\",\n    \"tech_email\": \"{{tech_email}}\",\n    \"tech_tel\": \"{{tech_tel}}\",\n    \"invoice_name\": \"{{invoice_name}}\",\n    \"invoice_street\": \"{{invoice_street}}\",\n    \"invoice_city\": \"{{invoice_city}}\",\n    \"invoice_zip\": \"{{invoice_zip}}\",\n    \"invoice_country\": \"{{invoice_country}}\",\n    \"invoice_email\": \"{{invoice_email}}\",\n    \"invoice_ic\": \"{{invoice_ic}}\",\n    \"invoice_dic\": \"{{invoice_dic}}\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://www.sslmarket.cz/api/order?certificate=rapidssl-rapidssl-dv",
					"protocol": "https",
					"host": [
						"www",
						"sslmarket",
						"cz"
					],
					"path": [
						"api",
						"order"
					],
					"query": [
						{
							"key": "certificate",
							"value": "rapidssl-rapidssl-dv"
						}
					]
				},
				"description": "The function is used to place an order on a given customer account."
			},
			"response": []
		},
		{
			"name": "Resend DCV",
			"request": {
				"method": "PUT",
				"header": [],
				"url": {
					"raw": "https://www.sslmarket.cz/api/certificate/resend?order_id=",
					"protocol": "https",
					"host": [
						"www",
						"sslmarket",
						"cz"
					],
					"path": [
						"api",
						"certificate",
						"resend"
					],
					"query": [
						{
							"key": "order_id",
							"value": ""
						}
					]
				},
				"description": "The function lists the details of a specific certificate order, which you can also find in customer administration."
			},
			"response": []
		},
		{
			"name": "Certificate reissue",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"csr\": \"\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://www.sslmarket.cz/api/certificate/reissue?order_id=",
					"protocol": "https",
					"host": [
						"www",
						"sslmarket",
						"cz"
					],
					"path": [
						"api",
						"certificate",
						"reissue"
					],
					"query": [
						{
							"key": "order_id",
							"value": ""
						}
					]
				},
				"description": "The function is used to regenerate the certificate and to reissue it. It is typically used when the private key is lost and for the reissue if it is free. The certificate issued after reissue has the same parameters and expiration date as the original."
			},
			"response": []
		},
		{
			"name": "Certificate cancel reissue",
			"request": {
				"method": "PUT",
				"header": [],
				"url": {
					"raw": "https://www.sslmarket.cz/api/certificate/cancel-reissue?order_id=",
					"protocol": "https",
					"host": [
						"www",
						"sslmarket",
						"cz"
					],
					"path": [
						"api",
						"certificate",
						"cancel-reissue"
					],
					"query": [
						{
							"key": "order_id",
							"value": ""
						}
					]
				}
			},
			"response": []
		},
		{
			"name": "Certificate revocation",
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"csr\": \"\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://www.sslmarket.cz/api/certificate/revoke?order_id=",
					"protocol": "https",
					"host": [
						"www",
						"sslmarket",
						"cz"
					],
					"path": [
						"api",
						"certificate",
						"revoke"
					],
					"query": [
						{
							"key": "order_id",
							"value": ""
						}
					]
				},
				"description": "The certificate revocation function will permanently revoke the certificate and you will no longer be able to use it. Revocation means the certificate is lost without compensation and serves in cases where the certificate’s private key is misused (compromised)."
			},
			"response": []
		},
		{
			"name": " Certificate download - server",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://www.sslmarket.cz/api/certificate?format=pem_server&order_id=",
					"protocol": "https",
					"host": [
						"www",
						"sslmarket",
						"cz"
					],
					"path": [
						"api",
						"certificate"
					],
					"query": [
						{
							"key": "format",
							"value": "pem_server"
						},
						{
							"key": "order_id",
							"value": ""
						}
					]
				},
				"description": "The function is used to download the issued certificate in the selected format specified in the input parameter {{FORMAT}}. PEM is the certificate’s text format in Base64, whereas P7B is the binary format."
			},
			"response": []
		},
		{
			"name": " Certificate download - intermediate",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://www.sslmarket.cz/api/certificate?format=pem_intermediate&order_id=",
					"protocol": "https",
					"host": [
						"www",
						"sslmarket",
						"cz"
					],
					"path": [
						"api",
						"certificate"
					],
					"query": [
						{
							"key": "format",
							"value": "pem_intermediate"
						},
						{
							"key": "order_id",
							"value": ""
						}
					]
				},
				"description": "No Environment\nBUILD\nThe function is used to download the issued certificate in the selected format specified in the input parameter {{FORMAT}}. PEM is the certificate’s text format in Base64, whereas P7B is the binary format."
			},
			"response": []
		},
		{
			"name": " Certificate download - p7b",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "https://www.sslmarket.cz/api/certificate?format=p7b&order_id=",
					"protocol": "https",
					"host": [
						"www",
						"sslmarket",
						"cz"
					],
					"path": [
						"api",
						"certificate"
					],
					"query": [
						{
							"key": "format",
							"value": "p7b"
						},
						{
							"key": "order_id",
							"value": ""
						}
					]
				},
				"description": "The function is used to download the issued certificate in the selected format specified in the input parameter {{FORMAT}}. PEM is the certificate’s text format in Base64, whereas P7B is the binary format."
			},
			"response": []
		}
	],
	"auth": {
		"type": "apikey",
		"apikey": [
			{
				"key": "value",
				"value": "{{X-Auth-Token}}",
				"type": "string"
			},
			{
				"key": "key",
				"value": "X-Auth-Token",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "invoice_dic",
			"value": ""
		},
		{
			"key": "invoice_ic",
			"value": ""
		},
		{
			"key": "invoice_email",
			"value": ""
		},
		{
			"key": "invoice_country",
			"value": ""
		},
		{
			"key": "invoice_zip",
			"value": ""
		},
		{
			"key": "invoice_city",
			"value": ""
		},
		{
			"key": "invoice_street",
			"value": ""
		},
		{
			"key": "invoice_name",
			"value": ""
		},
		{
			"key": "tech_tel",
			"value": ""
		},
		{
			"key": "tech_email",
			"value": ""
		},
		{
			"key": "tech_lastname",
			"value": ""
		},
		{
			"key": "tech_firstname",
			"value": ""
		},
		{
			"key": "tech_title",
			"value": ""
		},
		{
			"key": "auth_email",
			"value": ""
		},
		{
			"key": "auth_tel",
			"value": ""
		},
		{
			"key": "auth_lastname",
			"value": ""
		},
		{
			"key": "auth_firstname",
			"value": ""
		},
		{
			"key": "auth_title",
			"value": ""
		},
		{
			"key": "owner_tel",
			"value": ""
		},
		{
			"key": "owner_country",
			"value": ""
		},
		{
			"key": "owner_zip",
			"value": ""
		},
		{
			"key": "owner_city",
			"value": ""
		},
		{
			"key": "owner_street",
			"value": ""
		},
		{
			"key": "owner_name",
			"value": ""
		},
		{
			"key": "X-Auth-Token",
			"value": ""
		},
		{
			"value": "",
			"disabled": true
		}
	]
}