Mexico - Archiving

For archiving and to facilitate access to external parties.

Invoice

Changes to generic fields

This route operates with a slightly narrower data model, and include the following required fields:

  • ref
  • issued
  • recipient.taxId
  • recipient.name
  • total.amount
  • lines[].description
  • lines[].quantity
  • lines[].price.amount
  • lines[].vat.amount
  • lines[].vat.type
  • lines[].vat.code
  • routeAs
  • attachments
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;
    };
  }[];

	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

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/pdf
image/png
image/jpeg
text/csv
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
application/vnd.oasis.opendocument.spreadsheet


attachment.data

string

Yes

Base64 encoded file content with a maximum size of 1MB