A JWS in its flattened JSON form, signed by the account (or, opening one, by its new key).
Order a certificate for names the account's binding holds.
POST /organizations/{organizationId}/authorities/{authorityId}/acme/new_order
POST https://dev.zanpki.com/organizations/{organizationId}/authorities/{authorityId}/acme/new_order
| Operation ID |
organizations.organizationId.authorities.authorityId.acme.new_order.post
|
|---|---|
| Access | Anyone |
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
organizationId
| Path | Required | string (snowflake) | The organization. |
authorityId
| Path | Required | string (snowflake) | The authority. |
Request body
Required, sent as application/jose+json.
Schema: AcmeJwsBody
| Property | Type | Description | |
|---|---|---|---|
protected
| string | Required | The JWS protected header, base64url-encoded JSON: its alg (ES256, RS256 or EdDSA), nonce and url, and either the account key as jwk, for a new account, or the account's URL as kid. |
payload
| string | Required | The request's payload, base64url-encoded JSON; empty for a POST-as-GET. |
signature
| string | Required | The signature over the protected header and the payload, base64url-encoded, made with the account's key. |
Responses
| Status | Description | Schema | Content type |
|---|---|---|---|
| 201 | Order placed, ready to finalize. | AcmeOrderObject | application/json |
| 400 | An ACME error: its type is an urn:ietf:params:acme:error URN. | Problem | application/json |
| 403 | An ACME error: its type is an urn:ietf:params:acme:error URN. | Problem | application/json |
| 404 | An ACME error: its type is an urn:ietf:params:acme:error URN. | Problem | application/json |
| 422 | The input was rejected; errors names each failure. | ValidationProblem | application/json |
| 503 | An ACME error: its type is an urn:ietf:params:acme:error URN. | Problem | application/json |
| Any other status | The request was refused. The problem's type names why, and its detail explains it for people to read. | Problem | application/json |
201 Order placed, ready to finalize.
| Property | Type | Description | |
|---|---|---|---|
status
| string | Required | The order's status: ready, as every order starts, since its binding's names were authorized ahead; processing while a public authority's provider signs it; valid once its certificate is issued; or invalid when it failed. |
expires
| string | Required | When the order expires, a week after it was placed, as an RFC 3339 time in UTC. |
identifiers
| list of AcmeIdentifier | Required | The DNS names and IP addresses the certificate is for. |
authorizations
| list of string | Required | The URL of each identifier's authorization, in the same order as identifiers; each one is valid already. |
finalize
| string | Required | The URL a ready order is finalized at, with a signing request naming exactly its identifiers. |
certificate
| string | Optional | The URL its certificate downloads from; absent until the certificate is issued. |
error
| Problem | Optional | Why the order failed, as an ACME error; absent when nothing failed. |
400 An ACME error: its type is an urn:ietf:params:acme:error URN.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | An explanation of what went wrong, written for people to read. |
instance
| string | Required | The path the request was sent to. |
403 An ACME error: its type is an urn:ietf:params:acme:error URN.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | An explanation of what went wrong, written for people to read. |
instance
| string | Required | The path the request was sent to. |
404 An ACME error: its type is an urn:ietf:params:acme:error URN.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | An explanation of what went wrong, written for people to read. |
instance
| string | Required | The path the request was sent to. |
422 The input was rejected; errors names each failure.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | An explanation of what went wrong, written for people to read. |
instance
| string | Required | The path the request was sent to. |
errors
| InputErrors | Required | What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body. |
503 An ACME error: its type is an urn:ietf:params:acme:error URN.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | An explanation of what went wrong, written for people to read. |
instance
| string | Required | The path the request was sent to. |
Any other status: The request was refused. The problem's type names why, and its detail explains it for people to read.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | An explanation of what went wrong, written for people to read. |
instance
| string | Required | The path the request was sent to. |
Example
curl -X POST 'https://dev.zanpki.com/organizations/{organizationId}/authorities/{authorityId}/acme/new_order' \
-H 'Content-Type: application/jose+json' \
-d '{
"protected": "<string>",
"payload": "<string>",
"signature": "<string>"
}'