Skip to content

SudoSOS Back-end API / internal/spec/invoice-request-spec / createInvoiceRequestSpec

Function: createInvoiceRequestSpec() ​

ts
function createInvoiceRequestSpec(): Specification<CreateInvoiceParams, ValidationError>;

Specification for a CreateInvoiceRequest. Registered with the async validator middleware; runs against req.body before the handler. byId is validated only if provided (the handler defaults it from the token).

Returns ​

Specification<CreateInvoiceParams, ValidationError>