Mexico - Archiving
Invoice
Changes to generic fields
This route operates with a slightly narrower data model, and include the following required fields:
refissuedrecipient.taxIdrecipient.nametotal.amountlines[].descriptionlines[].quantitylines[].price.amountlines[].vat.amountlines[].vat.typelines[].vat.coderouteAsattachments
type Invoice {
// Subset of generic fields
ref: string;
issued: string;
recipient: {
taxId: string;
name: string;
};
total: {
amount: number;
};
lines: {
description: string;
quantity: number;
price: {
amount: number;
};
vat: {
amount: number;
type: string;
code: string;
};
}[];
routeAs: string;
attachments?: Attachment[];
};
type Attachment {
name: string;
contentType: 'application/pdf' | 'image/png' | 'image/jpeg' | 'text/csv' |
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' |
'application/vnd.oasis.opendocument.spreadsheet' ;
data: string;
};Field information
| Name | Type | Required | Description |
|---|---|---|---|
routeAs | string | Yes | Set value: MEX_ARCHIVE |
attachments | Object Array | No | An array of attachment objects |
attachment.name | string | Yes | File Name |
attachment.contentType | string | Yes | File MIME type. Allowed values include:application/pdfimage/pngimage/jpegtext/csvapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheetapplication/vnd.oasis.opendocument.spreadsheet |
attachment.data | string | Yes | Base64 encoded file content with a maximum size of 1MB |
Updated 17 days ago