Sandbox.Invoice Service.Reference - Reference

Page of - last modified by Asbjørn Ulsberg on 2018/09/03 10:57

Reference

Asbjørn Ulsberg

2018/09/03 10:57

Table of Contents

CUSIN File

XML Declaration

CUSIN Header

Distribution Date

CUSINInfo

CustomerNo

CustomerInfo

Invoices

Datatypes

This is the reference section for the CUSIN format. The CUSIN File is organized around XML.

This section is currently being worked on. If something is missing, you'll find it here.

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äåöÄÅÖ&amp;/_ -.]* 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_:!;&quot;#&lt;&gt;=?\[\]@{}´&#xA;&#xD; %-/À-ÖØ-öø-úü]*

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_:!;&quot;#&lt;&gt;=?\[\]@{}´&#xA;&#xD; %-/À-ÖØ-öø-ú]*

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_:!;&quot;#&lt;&gt;=?\[\]@{}´&#xA;&#xD; %-/À-ÖØ-öø-ú]

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_:!;&quot;#&lt;&gt;=?\[\]@{}´&#xA;&#xD; %-/À-ÖØ-öø-ú]* Example values {SV,NO,DA,FI,EN}

VatNo

Attribute	Description
VatNo VatNumber (optional)	Customer VAT registration number. Mandatory if reverse tax is used. Must conform to country specific algorithm Requirements MinLength 7 MaxLength 14 Pattern [A-Z]{2}.*

DistributionAddressInfo

Attribute	Description
DistributionAddressInfo ??Type?? (Required)	Contains customer distribution address information and has the following children Addresses, E-MailAddress and Cellphone

Addresses

E-MailAddress

Cellphone

PaymentInfo

Attribute	Description
PaymentInfo ??Type?? (optional)	Contains differing customer paymentinfo from accounts receivable default and has the following children Clear and Set

Clear

Set

DunningInfo

Attribute	Description
DunningInfo ??Type?? (optional)	Contains differing customer dunninginfo from accountsreceivable default and has the following children Clear and Set

Clear

Set

DistributionInfo

Attribute	Description
DistributionInfo ??Type?? (optional)	Contains differing customer distribution info from accountsreceivable default and has the following children Clear and Set

Clear

Set

NotificationInfo

Attribute	Description
NotificationInfo ??Type?? (optional)	Contains differing notification settings from accounts receivable default and has the following children Clear and Set

Clear

Set

Invoices

InvoiceWithDistribution

InvoiceNo

ReferenceInfo

InvoiceDate

PreferredDueDate

Amount

DistributionInfo

CreditInstructions

Datatypes