Metadata on io.cozy.files documents

Image files

For pictures files, like jpg, png, gif

Administrative documents

Mostly imported by the connectors, cozy stores many different types of administrative documents, like invoices, contracts or certificates.

Data structure

Common attributes

There attributes are shared by all the document types covered by the specification.

Other Attributes

These attributes depend on the classification.

Description of different document types

Payslips

Tax Notices

Tax Returns

Contracts

Certificates

Diplomas and Driving licenses

Identity documents

Bank Statements

Bank Details (IBAN)

Mail

Report

Office

Examples

Invoices, payment statements, payment schedules

// invoice - bouygues telecom
'metadata': {
  'classification': 'invoicing',
  'datetime': '2019-05-10',
  'datetimeLabel': 'issueDate',
  'contentAuthor': 'bouyguestelecom',
  'categories': ['phone','isp','telecom'],
  'subClassification': 'invoice',
  'issueDate': '2019-05-10',
  'contractReference': '0645874398',
  'invoiceNumber': 'KJF949875',
  'isSubscription': true,
},
'cozyMetadata': {
  ...
}
// payment statement - ameli
'metadata': {
  'classification': 'invoicing',
  'datetime': '2019-05-10',
  'datetimeLabel': 'issueDate',
  'contentAuthor': 'ameli',
  'categories': ['insurance', 'health'],
  'subClassification': 'payment_statement',
  'issueDate': '2019-05-10',
},
'cozyMetadata': {
  ...
}
// payment schedule - EDF
'metadata': {
  'classification': 'invoicing',
  'datetime': '2019-05-10',
  'datetimeLabel': 'issueDate',
  'contentAuthor': 'edf',
  'categories': ['energy'],
  'subClassification': 'paiement_schedule',
  'iSubscription': true,
  'issueDate': '2019-05-10',
},
'cozyMetadata': {
  ...
}

Taxe notices

// taxe notice on income
'metadata': {
  'classification': 'tax_notice',
  'datetime': '2019-05-10',
  'datetimeLabel': 'issueDate',
  'contentAuthor': 'impots.gouv',
  'subjects': ['income'],
  'issueDate': '2019-05-10',
},
'cozyMetadata': {
  ...
}
// tax return on income
'metadata': {
  'classification': 'tax_report',
  'datetime': '2019-05-10',
  'datetimeLabel': 'issueDate',
  'contentAuthor': 'impots.gouv',
  'subjects': ['income'],
  'formReference': '2042RICI',
  'issueDate': '2019-05-10',
},
'cozyMetadata': {
  ...
}

Payslips

// payslip - cozycloud
'metadata': {
  'classification': 'payslip',
  'datetime': '2019-05-01',
  'datetimeLabel': 'startDate',
  'contentAuthor': 'cozycloud',
  'startDate': '2019-05-01',
  'endDate': '2019-05-31',
},
'cozyMetadata': {
  ...
}

Certificates

// contrat certificate - EDF
'metadata': {
  'classification': 'certificate',
  'datetime': '2019-05-10',
  'datetimeLabel': 'startDate',
  'contentAuthor': 'edf',
  'categories': ['energy'],
  'subjects': ['subscription'],
  'issueDate': '2019-05-10',
  'startDate': '2019-01-01',
  'startDate': '2019-12-31',
},
'cozyMetadata': {
  ...
}
// health insurance certificate - ameli
'metadata': {
  'classification': 'certificate',
  'datetime': '2019-05-10',
  'datetimeLabel': 'issueDate',
  'contentAuthor': 'ameli',
  'categories': ['insurance'],
  'subCategories' : ['health'],
  'issueDate': '2019-05-10',
  'startDate': '2019-01-01',
  'endDate': '2019-12-31',
},
'cozyMetadata': {
  ...
}
// car insurance certificate - maif
'metadata': {
  'classification': 'certificate',
  'datetime': '2019-05-10',
  'datetimeLabel': 'issueDate',
  'contentAuthor': 'macif',
  'categories': ['insurance'],
  'subCategories' : ['car'],
  'issueDate': '2019-05-10',
  'startDate': '2019-01-01',
  'endDate': '2019-12-31',
},
'cozyMetadata': {
  ...
}
// tax certificate - CAF
'metadata': {
  'classification': 'certificate',
  'datetime': '2019-05-10',
  'datetimeLabel': 'issueDate',
  'contentAuthor': 'caf',
  'categories': ['public_service', 'tax'],
  'issueDate': '2019-05-10',
  'startDate': '2019-05-01',
  'endDate': '2019-05-31',
},
'cozyMetadata': {
  ...
}

Identity documents

// id card
'metadata': {
  'classification': 'identity_document',
  'datetime': '2019-05-10',
  'datetimeLabel': 'issueDate',
  'contentAuthor': 'france',
  'subClassification': 'national_id_card',
  'issueDate': '2014-05-10',
  'expirationDate': '2029-05-10',
  'number': 'ABC123456',
  'country': 'france',
  'relationships': {
    'contacts': {
      'data': {
        '_id': 'ce61088e116994e265d7f0e6091d0755',
        '_type': 'io.cozy.contacts'
      }
    }
  },
}
'cozyMetadata': {
  ...
}