This is the reference section for the CUSIN format. The CUSIN File is organized around XML.
More text is needed. Lorem ipsum..

CUSIN File

XML Declaration

CUSIN Header

Attributes Description
Version
xs:string
(required)

Describes which version of the xsd the xml is validated against. XSD validation should be done before sending xml file to PayEx.

CreatedDateTime
xs:dateTime
(required)

Date and time when the file was created.

CompanyNo
string
(required)

Your company number (accountsreceivable) at PayEx.
minLength 9, maxLength 15, pattern [0-9]

CompanyName
xs:string
(required)

Your company name (accountsreceivable) at PayEx.

Distribution Date

Attribute Description
DistributionDate
xs:date or xs:anytype
(required)

Valid attributes Date or AsSoonAsPossible.

Date: Only used if distribution of invoices are part of a contracted production planning. Distributiondate has to be in the future. Distributiondate has to be a bankday
AsSoonAsPossible: Used to distribute invoices as soon as possible. The element supposed to be empty. 

CUSINInfo

CustomerNo

Attributes Description
CustomerNo
Identifier15
(required)

CustomerNo is your unique identifier of the customer in the accountsreceivable and should always be used. CustomerNo is mandatory by default. 

Requirements

MinLength 1
MaxLength 15
Pattern [a-zA-Z0-9äåöÄÅÖ&/_ -.]*

If you do not have unique identifiers of your customers, please contact PayEx. 

CustomerInfo
array
(required)

This array contains the following elements Name, LegalEntity, RegNo, DistributionAddressInfo, PaymentInfo and DistributionInfo

Invoices
array
(required)

This array contains with a lot of elementes.

CustomerInfo

Name

Attribute Description
Name
NameAddressString72
(required)

Full name for the customer in the accountsreceivablesystem. Used as display name 

Requirements

MinLength 1
MaxLength 72
Pattern [a-zA-Z0-9_:!;"#<>=?\[\]@{}´

 %-/À-ÖØ-öø-úü]*

RegNo

Attribute Description
RegNo
RegNo
(required)

Customer social security number/corporate identity number. Has to conform to country specific algorithms

Requirements

CountryCode: Nationality according to ISO3166 in conjuction with PXString.
MinLength 1
MaxLength 15
Pattern [a-zA-Z0-9_:!;"#<>=?\[\]@{}´

 %-/À-ÖØ-öø-ú]*

Category

Attribute Description
Category
String10
(optional)

Can only be used if contracted with PayEx. Category has to be preconfigured in the accountsreceivable system

Requirements

MinLength 1
MaxLength 10
Pattern [a-zA-Z0-9_:!;"#<>=?\[\]@{}´

 %-/À-ÖØ-öø-ú]

LanguageCode

Attribute Description
LanguageCode
ISO639
(optional)

Only used if preferred invoice language is other than accounts receivable default

Requirements

MinLength 1
Pattern [a-zA-Z0-9_:!;"#<>=?\[\]@{}´

 %-/À-ÖØ-öø-ú]*
Example values {SV,NO,DA,FI,EN}

VatNo

DistributionAddressInfo

PaymentInfo

DunningInfo

DistributionInfo

NotificationInfo

Invoices

InvoiceWithDistribution

InvoiceNo
ReferenceInfo
InvoiceDate
PreferredDueDate
Amount
DistributionInfo
CreditInstructions

Datatypes

Created by Tore Aasebo on 2018/02/19 16:20