Skip to content

Instantly share code, notes, and snippets.

@ikourfaln
Created December 10, 2025 14:21
Show Gist options
  • Select an option

  • Save ikourfaln/590cca231adabbfb7d6c29323db55705 to your computer and use it in GitHub Desktop.

Select an option

Save ikourfaln/590cca231adabbfb7d6c29323db55705 to your computer and use it in GitHub Desktop.
AMG Conta model

User

Field Required/Optional Description
id Required Internal unique identifier for the user.
externalAccountingId Optional External Identifier coming from the accounting integration.
... ... ...

Property

Field Required/Optional Description
id Required Internal unique identifier for the property.
externalAccountingId Optional External Identifier coming from the accounting integration.
... ... ...

PurchaseRequest

Field Required/Optional Description
id Required Internal identifier for the purchase request.
externalAccountingId Optional External Identifier coming from the accounting integration.
createdAt Required Internal creation timestamp.
externalCreatedAt Optional External creation timestamp.
updatedAt Optional Internal last update timestamp.
externalUpdatedAt Optional External last update timestamp.
deletedAt Optional Internal deletion timestamp.
externalDeletedAt Optional External deletion timestamp.
createdById Optional Internal ID of the User who submitted the request.
externalCreatorId Optional External ID of the User who submitted the request.
propertyId Optional ID of the target Property for the request.
externalPropertyId Optional External ID of the target Property for the request.
creationStatus Optional Status indicating an error when creating the purchase request

Enum values: creationStatus uses PurchaseRequestCreationStatusDUPLICATED, MISSING_CREATOR_OR_PROPERTY.

PurchaseRequestDocument

Field Required/Optional Description
id Required Identifier for the uploaded document.
fileName Required Uploaded filename.
documentType Required Enum describing the document type.
purchaseRequest Required ID of the associated PurchaseRequest.
createdAt Required Creation timestamp.
deletedAt Optional Deletion timestamp.

Enum values: documentType uses PurchaseRequestDocumentTypeDOCUMENT, IMAGE.

PurchaseQuote

Field Required/Optional Description
id Required Internal identifier for the quote.
externalAccountingId Optional External Identifier coming from the accounting integration.
totalPrice Required Total price of the quote's items.
createdAt Required Quote creation timestamp.
updatedAt Optional Timestamp of the latest change.
deletedAt Optional Deletion timestamp.
createdById Required ID of the User who created the quote.
supplierId Optional ID of Supplier providing the quote.
purchaseRequestId Required ID of the associated PurchaseRequest.

PurchaseQuoteDocument

Field Required/Optional Description
id Required Identifier for the quote document.
fileName Required Uploaded filename.
documentType Required Enum describing the document type.
purchaseQuoteId Required ID of the associated PurchaseQuote.
createdAt Required Creation timestamp.
deletedAt Optional Deletion timestamp.

Enum values: documentType uses PurchaseQuoteDocumentTypeDOCUMENT, IMAGE.

Supplier

Field Required/Optional Description
id Required Internal supplier identifier.
externalAccountingId Optional External Identifier coming from the accounting integration.
name Required Supplier’s name.
createdAt Required Creation timestamp.
updatedAt Optional Timestamp for the last update.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment