v1

latestOpenAPI 3.1.0Apache 2.02026-07-26141310.8 KB
Signing

Sign a GOBL document

Builds the document, wraps it in an envelope, and signs it with the provided private key.

post/sign

Request body

{"stackTrail":"components:schemas:SignRequest:properties:data","oasType":"schema","type":"unknown","description":"GOBL document to sign."}
{"stackTrail":"components:schemas:SignRequest:properties:template","oasType":"schema","type":"unknown","description":"Optional template to merge with the data before signing."}
typestring

Document type hint.

envelopboolean

Wrap in envelope (always true for signing).

Example request

{
  "privatekey": {
    "kty": "EC",
    "crv": "P-256",
    "alg": "ES256",
    "use": "sig"
  }
}

Response

Signed envelope

{"stackTrail":"paths:/sign:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}