Fakturindocs

Parameters and codes

Registry parameters with their demo values, the status enum and the verification reject codes.

Parameters

Set by ADMIN_ROLE with setParameters. Changes apply to invoices verified afterwards; existing vaults keep their immutable terms.

NameDemo valueMeaning
ratePer30dBps150Seller's all-in cost per 30 days of tenor (1.5%)
platformFeeBps1000Share of that cost kept by the treasury on repayment (10%)
advanceBps8000Paid to the seller when funded (80% of the invoice)
maxTenor180 daysLongest allowed time from verification to due date
fundingWindow3 daysTime to fill the vault
gracePeriod60 secondsAfter the due date, before default is allowed (days in production)
sellerLimit200 000 000e2Open financing per seller wallet (Rp200M)
buyerLimit500 000 000e2Open financing per buyer NPWP hash (Rp500M)
treasuryoperator addressReceives fees (setTreasury)

setParameters reverts InvalidParameters when platformFeeBps > 10000, or when advanceBps × 30 days + ratePer30dBps × maxTenor > 10000 × 30 days, that is, when the advance could exceed the funding target at the longest tenor. setTreasury rejects the zero address.

Invoice status

ValueNameApp label
0NoneNever submitted
1PendingChecking
2RejectedRejected
3FundingRaising funds
4FinancedFinanced
5RepaidRepaid
6DefaultedDefaulted
7FundingFailedFunding failed

Reject codes

CodeConstantSourceMeaning
1REJECT_NOT_FOUNDPJAPNo such Faktur Pajak
2REJECT_CANCELLEDPJAPCancelled (dibatalkan)
3REJECT_REPLACEDPJAPReplaced by a newer Faktur Pajak (diganti)
4REJECT_SELLER_MISMATCHRegistryNPWP on the Faktur Pajak is not the wallet's PKP credential
5REJECT_EXPIREDRegistryDue date already passed
6REJECT_LIMITRegistrySeller or buyer limit would be exceeded
7REJECT_TENORRegistryDue date more than maxTenor away

Roles

RoleContractHolder
DEFAULT_ADMIN_ROLE, ADMIN_ROLEFakturRegistryDeployer
VERIFIER_ROLEFakturRegistryFakturVerifierReceiver, demo relayer
REGISTRY_ROLEFakturNFTFakturRegistry
DEFAULT_ADMIN_ROLEFakturNFTDeployer
Authorized issuerACE OnlyAuthorizedSenderPolicyDemo relayer (simulated KYC/KYB provider)

On this page