Skip to content

RfrdDocInf

Provides the identification and the content of the referred document.

With the following properties:

PropertyTypeRequiredDescription
TpObjectOptionalSpecifies the type of referred document.
NbStringOptionalUnique and unambiguous identification of the referred document. Maximum length: 35 characters
RltdDtStringOptionalDate associated with the referred document. Format: date-time
LineDtlsarrayOptionalQuantity of cash resulting from the calculation of the tax.

Tp

Specifies the type of referred document.

With the following properties:

PropertyTypeRequiredDescription
CdOrPrtryObjectOptionalProvides the type details of the referred document.
IssrStringOptionalIdentification of the issuer of the Reference document type. Maximum length 35 characters

CdOrPrtry

Coded or proprietary format creditor Reference type.

With the following properties:

PropertyTypeRequiredDescription
CdStringOptionalDocument type in a coded form. As defined in ISO list DocumentType6Code, the value of this property must be equal to one of the known values below.
PrtryOptionalStringProprietary identification of the type of garnishment. Maximum length 35 characters
Cd known values
ValueDescription
MSINMetered Service Invoice
CNFACredit Note Related To Financial Adjustment
DNFADebit Note Related To Financial Adjustment
CINVCommercial Invoice
CRENCredit Note
DEBNDebit Note
HIRIHire Invoice
SBINSelf Billed Invoice
CMCNCommercial Contract
SOACStatement Of Account
DISPDispatch Advice
BOLDBill Of Lading
VCHRVoucher
AROIAccount Receivable Open Item
TSUTTrade Services Utility Transaction
PUORPurchase Order

LineDtls

Set of elements used to provide the content of the referred document line.

With the following properties:

PropertyTypeRequiredDescription
IdObjectOptionalProvides identification of the document line.
DescStringOptionalDescription associated with the document line. Maximum length: 2048 characters
AmtObjectOptionalProvides details on the amounts of the document line.

Id

Set of elements used to provide the content of the referred document line.

With the following properties:

PropertyTypeRequiredDescription
TpObjectOptionalSpecifies the type of referred document line identification.
NbStringOptionalIdentification of the type specified for the referred document line.. Maximum length: 35 characters
RltdDtStringOptionalDate associated with the referred document line. Format: Date-time

Id.Tp

Specifies the type of creditor reference.

With the following properties:

PropertyTypeRequiredDescription
CdOrPrtryObjectOptionalProvides the type details of the referred document line identification.
IssrStringOptionalIdentification of the issuer of the Reference document line identification type.

CdOrPrtry

Provides the type details of the referred document line identification.

With the following properties:

PropertyTypeRequiredDescription
CdStringOptionalLine identification type in a coded form. Uses ISO list ExternalDocumentLineType1Code, the value of this property must be equal to one of the known values below.
PrtryStringOptionalField to support proprietary value. Maximum length 35 characters
Known values
ValueDescription
ADPIAdditional Product Identification Assigned by the Manufacturer. Line item Reference is an additional product identification assigned by the manufacturer.
AISBAlternate ISBN. Line item Reference is an alternate International Standard Book Number (ISBN).
ASNBAsset Number. Line item Reference is an asset number.
CTNBCatalog Number. Line item Reference is a catalog number.
DBSPDun & Bradstreet Standard Product and Service Code. Line item Reference is Dun & Bradstreet Standard Product and Service code.
EANNEuropean Article Number (EAN) (2-5-5-1). Line item Reference is an European Article Number (EAN).
EINBEquipment Identification Number. Line item Reference is an equipment identification number.
GSNBGeneral Specification Number. Line item Reference is a general specification number.
HIBCHIBC (Health Care Industry Bar Code). Line item Reference is a Health Care Industry Bar Code (HIBC)
ISBNInternational Standard Book Number (ISBN). Line item Reference is an International Standard Book Number (ISBN).
LTNBLot Number. Line item Reference is a lot number.
MDNBModel Number. Line item Reference is a model number.
PRNBPart Number. Line item Reference is a part Reference number.
PTCDProduct Type Code. Line item Reference is a product type code.
SKNBStock Number. Line item Reference is a stock number.
STNBStyle Number. Line item Reference is a style number.
TONBTechnical Order Number. Line item Reference is a technical order number.
UPCCUPC Consumer Package Code. Line item Reference is an UPC consumer package code.
UPNBUniversal Product Number. Line item Reference is an Universal Product Number.

Amt

Provides details on the amounts of the document line.

With the following properties:

PropertyTypeRequiredDescription
DuePyblAmtObjectOptionalAmount specified is the exact amount due and payable to the creditor.
DscntApldAmtObjectOptionalAmount specified for the referred document is the amount of discount to be applied to the amount due and payable to the creditor.
CdtNoteAmtObjectOptionalAmount specified for the referred document is the amount of a credit note.
TaxAmtObjectOptionalQuantity of cash resulting from the calculation of the tax.
AdjstmntAmtAndRsnObjectOptionalSpecifies detailed information on the amount and reason of the document adjustment.
RmtdAmtObjectOptionalAmount of money remitted for the referred document.

DuePyblAmt

Provides details on the amounts of the referred document.

With the following properties:

PropertyTypeRequiredDescription
amountstringoptionalAmount. Maximum length: 19 characters
currencystringoptionalCurrency for the amountm, defined in #/definitions/currency

DscntApldAmt

Amount specified for the referred document is the amount of discount to be applied to the amount due and payable to the creditor.

With the following properties:

PropertyTypeRequiredDescription
TpStringOptionalSpecifies the type of the amount.
AmtStringOptionalAmount of money, which has been typed.

DscntApldAmt.Tp

With the following properties:

PropertyTypeRequiredDescription
CdStringOptionalSpecifies the amount type, in a coded form. Based on ISO ExternalDiscountAmountType1Code, the value of this property must be equal to one of the known values below.
PrtryStringOptionalField to support proprietary value. Maximum length 35 characters
DscntApldAmt.Cd known values
ValueDescription
APDSAdditional Promotional Discount
STDSStanding Discount
TMDSTerms Discount

DscntApldAmt.Amt

Amount of money, which has been typed.

With the following properties:

PropertyTypeRequiredDescription
amountstringoptionalAmount. Maximum length: 19 characters
currencystringoptionalCurrency for the amountm, defined in #/definitions/currency

CdtNoteAmt

Amount specified for the referred document is the amount of a credit note.

With the following properties:

PropertyTypeRequiredDescription
amountstringoptionalAmount. Maximum length: 19 characters
currencystringoptionalCurrency for the amountm, defined in #/definitions/currency

TaxAmt

Quantity of cash resulting from the calculation of the tax.

With the following properties:

PropertyTypeRequiredDescription
TpStringOptionalSpecifies the type of the amount.
AmtStringOptionalAmount of money, which has been typed.

TaxAmt.Tp

Specifies the type of the amount.

With the following properties:

PropertyTypeRequiredDescription
CdStringOptionalSpecifies the amount type, in a coded form. Based on the ISO ExternalTaxAmountType1Code list, the value of this property must be equal to one of the known values below.
PrtryStringOptionalField to support proprietary value. Maximum length 35 characters
TaxAmt.Cd known values
ValueDescription
CITYCity Tax
CNTYCounty Tax
LOCLLocal Tax
PROVProvince Tax
STATState Tax

TaxAmt.Amt

Amount of money, which has been typed.

With the following properties:

PropertyTypeRequiredDescription
amountstringoptionalAmount. Maximum length: 19 characters
currencystringoptionalCurrency for the amountm, defined in #/definitions/currency

AdjstmntAmtAndRsn

Specifies detailed information on the amount and reason of the document adjustment.

With the following properties:

PropertyTypeRequiredDescription
AdjstmntAmtAndRsn.AmtobjectoptionalAmount of money of the document adjustment.
CdtDbtIndstringoptionalSpecifies whether the adjustment must be substracted or added to the total amount, the value of this property must be equal to one of the known values below.
RsnstringoptionalSpecifies the reason for the adjustment. Maximum length: 4 characters
AddtlInfstringoptionalProvides further details on the document adjustment. Maximum length: 140 characters

AdjstmntAmtAndRsn known values

ValueDescription
CRDTCredit
DBITDebit

AdjstmntAmtAndRsn.Amt

Amount of money remitted for the referred document.

With the following properties:

PropertyTypeRequiredDescription
amountstringoptionalAmount. Maximum length: 19 characters
currencystringoptionalCurrency for the amountm, defined in #/definitions/currency

RmtdAmt

Amount of money remitted for the referred document.

With the following properties:

PropertyTypeRequiredDescription
amountstringoptionalAmount. Maximum length: 19 characters
currencystringoptionalCurrency for the amountm, defined in #/definitions/currency

JSON schema extract

Click to expand
"RfrdDocInf": {
    "type": "object",
    "description": "Provides the identification and the content of the referred document.",
    "properties": {
        "Tp": {
            "type": "object",
            "description": "Specifies the type of referred document.",
            "properties": {
                "CdOrPrtry": {
                    "type": "object",
                    "description": "Provides the type details of the referred document.",
                    "properties": {
                        "Cd": {
                            "type": "string",
                            "description": "Document type in a coded form. As defined in ISO list DocumentType6Code ",
                            "enum": [
                                "MSIN",
                                "CNFA",
                                "DNFA",
                                "CINV",
                                "CREN",
                                "DEBN",
                                "HIRI",
                                "SBIN",
                                "CMCN",
                                "SOAC",
                                "DISP",
                                "BOLD",
                                "VCHR",
                                "AROI",
                                "TSUT",
                                "PUOR"
                            ]
                        },
                        "Prtry": {
                            "type": "string",
                            "description": "Field to support proprietary values",
                            "maxLength": 35
                        }
                    },
                    "Issr": {
                        "type": "string",
                        "description": "Identification of the issuer of the Reference document type.",
                        "maxLength": 35
                    }
                }
            }
        },
        "Nb": {
            "type": "string",
            "description": "Unique and unambiguous identification of the referred document.",
            "maxLength": 35
        },
        "RltdDt": {
            "type": "string",
            "description": "Date associated with the referred document.",
            "format": "date-time"
        },
        "LineDtls": {
            "type": "array",
            "description": "Set of elements used to provide the content of the referred document line.",
            "items": [
                    {
                    "Id": {
                        "type": "object",
                        "description": "Provides identification of the document line.",
                        "properties": {
                            "Tp": {
                                "type": "object",
                                "description": "Specifies the type of referred document line identification.",
                                "properties": {
                                    "CdOrPrtry": {
                                        "type": "object",
                                        "description": "Provides the type details of the referred document line identification.",
                                        "properties": {
                                            "Cd": {
                                                "type": "string",
                                                "description": "Line identification type in a coded form. Uses ISO list ExternalDocumentLineType1Code",
                                                "enum": [
                                                    "CINV",
                                                    "CNFA",
                                                    "CONT",
                                                    "CREN",
                                                    "DEBN",
                                                    "DISP",
                                                    "DNFA",
                                                    "HIRI",
                                                    "INVS",
                                                    "MSIN",
                                                    "PROF",
                                                    "PUOR",
                                                    "QUOT",
                                                    "SBIN",
                                                    "SPRR",
                                                    "TISH",
                                                    "USAR"
                                                ]
                                            },
                                            "Prtry": {
                                                "type": "string",
                                                "description": "Field to support proprietary value",
                                                "maxLength": 35
                                            }
                                        },
                                    "Issr": {
                                        "type": "string",
                                        "description": "Identification of the issuer of the Reference document line identification type.",
                                        "maxLength": 35
                                    }
                            },
                            "Nb": {
                                "type": "string",
                                "description": "Identification of the type specified for the referred document line.",
                                "maxLength": 35
                            },
                            "RltdDt": {
                                "type": "string",
                                "description": "Date associated with the referred document line.",
                                "format": "date-time"
                                }
                            }
                        },
                    "Desc": {
                        "type": "string",
                        "description": "Description associated with the document line.",
                        "maxLength": 2048
                    },
                    "Amt": {
                        "type": "object",
                        "description": "Provides details on the amounts of the document line.",
                        "properties": {
                            "DuePyblAmt": {
                                "type": "object",
                                "description": "Amount specified is the exact amount due and payable to the creditor.",
                                "properties": {
                                    "amount": {
                                        "type": "string",
                                        "maxLength": 19
                                    },
                                    "currency": {
                                        "$ref": "#/definitions/currency"
                                    }
                                }
                            },
                            "DscntApldAmt": {
                                "type": "object",
                                "description": "Amount of discount to be applied to the amount due and payable to the creditor.",
                                "properties": {
                                    "Tp": {
                                        "type": "object",
                                        "description": "Specifies the type of the amount.",
                                        "properties": {
                                            "Cd": {
                                                "type": "string",
                                                "description": "Specifies the amount type, in a coded form. Based on ISO list ExternalDiscountAmountType1Code",
                                                "enum": [
                                                    "APDS",
                                                    "STDS",
                                                    "TMDS"
                                                ]
                                            },
                                            "Prtry": {
                                                "type": "string",
                                                "description": "Field to support proprietary value",
                                                "maxLength": 35
                                            }
                                        }
                                    },
                                    "Amt": {
                                        "type": "object",
                                        "description": "Amount of money, which has been typed",
                                        "properties": {
                                            "amount": {
                                                "type": "string",
                                                "maxLength": 19
                                            },
                                            "currency": {
                                                "$ref": "#/definitions/currency"
                                            }
                                        }
                                    }
                                }
                            },
                            "CdtNoteAmt": {
                                "type": "object",
                                "description": "Amount of a credit note.",
                                "properties": {
                                    "amount": {
                                        "type": "string",
                                        "maxLength": 19
                                    },
                                    "currency": {
                                        "$ref": "#/definitions/currency"
                                    }
                                }
                            },
                            "TaxAmt": {
                                "type": "object",
                                "description": "Amount of the tax.",
                                "properties": {
                                    "Tp": {
                                        "type": "object",
                                        "description": "Specifies the type of the amount.",
                                        "properties": {
                                            "Cd": {
                                                "type": "string",
                                                "description": "Specifies the amount type, in a coded form. Based on ISO ExternalTaxAmountType1Code list",
                                                "enum": [
                                                    "CITY",
                                                    "CNTY",
                                                    "LOCL",
                                                    "PROV",
                                                    "STAT"
                                                ]
                                            },
                                            "Prtry": {
                                                "type": "string",
                                                "description": "Specifies the amount type, in a free-text form.",
                                                "maxLength": 35
                                            }
                                        }
                                    },
                                    "Amt": {
                                        "type": "object",
                                        "description": "Amount of money, which has been typed",
                                        "properties": {
                                            "amount": {
                                                "type": "string",
                                                "maxLength": 19
                                            },
                                            "currency": {
                                                "$ref": "#/definitions/currency"
                                            }
                                        }
                                    }
                                }
                            },
                            "AdjstmntAmtAndRsn": {
                                "type": "object",
                                "description": "Specifies detailed information on the amount and reason of the adjustment.",
                                "properties": {
                                    "Amt": {
                                        "type": "object",
                                        "properties": {
                                            "amount": {
                                                "type": "string",
                                                "maxLength": 19
                                            },
                                            "currency": {
                                                "$ref": "#/definitions/currency"
                                            }
                                        }
                                    },
                                    "CdtDbtInd": {
                                        "type": "string",
                                        "description": "Specifies whether the adjustment must be substracted or added to the total amount.",
                                        "enum": [
                                            "CRDT",
                                            "DBIT"
                                        ]
                                    },
                                    "Rsn": {
                                        "type": "string",
                                        "description": "Specifies the reason for the adjustment.",
                                        "maxLength": 4
                                    },
                                    "AddtlInf": {
                                        "type": "string",
                                        "description": "Provides further details on the document adjustment.",
                                        "maxLength": 140
                                    }
                                }
                            },
                            "RmtdAmt": {
                                "type": "object",
                                "description": "Amount of money remitted.",
                                "properties": {
                                    "amount": {
                                        "type": "string",
                                        "maxLength": 19
                                    },
                                    "currency": {
                                        "$ref": "#/definitions/currency"
                                    }
                                }
                                }
                            }
                        }
                    }
                }
            }]
        }
    }
}