MarminDeveloper Docs
Document register request – all fields

All fields in the request body are listed below. The Required column indicates whether each field is mandatory or optional. The same structure applies to both Sales Register and Purchase Register.

Root level
FieldTypeRequiredDescription
issue_datestring
Required
Date the document was issued. Format: YYYY-MM-DD.
transaction_datestring
Required
Date of the transaction. Format: YYYY-MM-DD.
accounting_periodstring
Required
Accounting period for the entry. Format: YYYY-MM.
document_numberstring
Required
Your unique document reference number (for example invoice or credit note number).
document_typestring
Required
Type of document. One of: INVOICE, CREDIT_NOTE.
entry_typestring
Required
Type of register entry. For sales use SALES or SALES_ADJUSTMENT.
notestring
Required
Free‑text note or reason for the document (for example adjustment reason).
accounting_supplier_partyobject
Optional
For sales the API sets the supplier from the business profile identified by profile_id in the URL.
accounting_customer_partyobject
Required
Customer (buyer) party details. Must include tax_scheme and postal_address. See Party table below.
document_linesarray
Required
Line items. At least one item required. Each item uses the Document line structure below.
document_currency_codestring
Required
ISO currency code for all amounts (for example AED). See Get Currency Names and Codes.
document_sourcestring
Required
Source of the document (for example WEB, API).
payable_amountnumber
Required
Total amount payable including tax. Must be ≥ 0.
tax_amountnumber
Required
Total tax amount for the document. Must be ≥ 0.
tax_exchange_rateobject
Optional
Exchange rate when tax currency differs from document currency.
Party (accounting_supplier_party / accounting_customer_party)
FieldTypeRequiredDescription
namestring
Required
Legal or display name of the party.
party_namestring
Optional
Trading or business name of the party.
tax_schemestring
Required
Tax scheme (for example VAT for UAE). See Get Tax Schemes.
tinstring
Optional
Tax identification number (TRN).
emailstring
Optional
Party email address.
telephonestring
Optional
Party telephone number.
gl_accountstring
Optional
GL account (often used on customer party).
postal_addressobject
Required
Party address. See Address object below.
Address object

Party postal_address uses the address object structure.

FieldTypeRequiredDescription
street_namestring
Required
Street name and number.
additional_street_namestring
Optional
Additional street details.
city_namestring
Required
City name.
postal_zonestring
Optional
Postal or ZIP code.
country_subentitystring
Required
Emirate or region code (e.g. DXB, SHJ, AUH). See Get UAE Subdivisions.
address_linestring
Optional
Additional address line.
countrystring
Required
Country name (e.g. United Arab Emirates).
country_codestring
Required
ISO 3166-1 alpha-2 country code (e.g. AE). See Get Countries.
Document line (each item in `document_lines`)
FieldTypeRequiredDescription
namestring
Required
Line item description or product/service name.
quantitynumber
Required
Quantity. Must be ≥ 1.
net_amountnumber
Required
Net amount (before tax) for this line. Must be ≥ 0.
tax_amountnumber
Required
Tax amount for this line. Must be ≥ 0.
classified_tax_categoryobject
Required
Tax category for this line. See Tax category object below.
Tax category object

Line-item classified_tax_category uses the shared tax category structure.

FieldTypeRequiredDescription
idstring
Required
Tax category code (for example S, Z, E). See Get Tax Categories.
percentnumber
Optional
Tax rate as percentage (0–100). Should align with id.
tax_exemption_reason_codestring
Conditional
FTA exemption reason code. Required when id is E. See Get Tax Exemption Reason Codes.
tax_exemption_reasonstring
Optional
Exemption reason description. Free text when provided.
tax_schemestring
Optional
Tax scheme (for example VAT). See Get Tax Schemes.
Next