CreateDocument
Type: schema
TypeScript Definition
typescript
CreateDocument: {{
document_type_id: string;
document_number: string;
note?: string;
/**
* Format: binary
* @description Document attachment. A supplied file must contain at least one byte. Required on creation when the selected document type requires an attachment.
*/
file?: string;
};
/** CreatedReview */
}OpenAPI Schema
json
{
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/CreateDocument",
"description": "API reference for the CreateDocument schema"
},
"required": [
"document_type_id",
"document_number"
],
"properties": {
"document_type_id": {
"type": "string",
"maxLength": 32,
"minLength": 1,
"pattern": "\\S"
},
"document_number": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "\\S"
},
"note": {
"type": "string",
"maxLength": 512,
"minLength": 1,
"pattern": "\\S"
},
"file": {
"description": "Document attachment. A supplied file must contain at least one byte. Required on creation when the selected document type requires an attachment.",
"type": "string",
"format": "binary",
"minLength": 1
}
}
}Auto-generated from OpenAPI spec and TypeScript definitions