Skip to main content

Creating an order

This endpoint allows you to create an order

info
POST /ssl/v2/orders

New order requests must follow the JSON:API specification. Which means the request body will follow this format:

{
"data": {
"type": "order",
"attributes": {
// order attributes
},
"relationships": {
// order relationships
}
}
}

Attributes

NameTypeDescription
actionstringSee Glossary - Order Action
csrstringOrder CSR
durationstringOrder duration
infosobject(optional) Product related order information
infos.validation_methodstring(optional) See Glossary - Domain Control Validation Method
default value : VALIDATE_DNS
infos.web_serverstring(optional) See Glossary - Web Servers
default value : others
customer_idinteger(optional) Order customer ID
billing_numberstring(optional) Invoicing identifier
order_referencestring(optional) Purchase Order / Analytical Account reference

Relationships

NameResource typeDescription
productproduct(creation only) Product to order from
certificatecertificate(empty on creation) Certificate associated with this order (eg: reissue, renew)
organizationorganizationOrganization related to this order
contactscontact (list)(optional if the organisation has a default contact) Contacts related to this order. (meta.contact_type must indicate admin and tech contacts)

Sample request body

{
"data": {
"attributes": {
"action": "renew",
"csr": "-----BEGIN CERTIFICATE REQUEST-----",
"duration": "1 year",
"infos": {
"validation_method": "VALIDATE_DNS",
"web_server": "others"
}
},
"relationships": {
"certificate": {
"data": {
"type": "certificate",
"id": "ABC012"
}
},
"organization": {
"data": {
"type": "organization",
"id": "ABC012"
}
},
"contacts": {
"data": [
{
"type": "contact",
"id": "ABC012",
"meta": {
"contact_type": "admin"
}
},
{
"type": "contact",
"id": "ABC012",
"meta": {
"contact_type": "tech"
}
}
]
}
}
}
}