| POST | /api/customerMaster | Add new customer master |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CustomerMaster | model | CustomerMasterMessage | Yes | Customer Master model containing all of the Customer Master data |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DataSource | form | TransactionalParty | Yes | |
| DataRecipient | form | TransactionalParty | Yes | |
| CustomerMasterIdentification | form | string | Yes | |
| Customer | form | List<CustomerMasterType> | Yes | |
| DocumentStatusCode | form | string | Yes | |
| DocumentActionCode | form | string | Yes | |
| CreationDateTime | form | DateTime | No | |
| LastUpdateDateTime | form | DateTime | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Contact | form | List<Contact> | Yes | |
| Address | form | Address | Yes | |
| CommunicationChannel | form | List<AvpList> | Yes | |
| FinancialInstitutionInformation | form | FinancialInstitutionInformation | Yes | |
| DutyFeeTaxRegistration | form | string | Yes | |
| EntityIdentification | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Gln | form | string | Yes | |
| Name | form | string | Yes | |
| AdditionalPartyIdentification | form | List<AvpList> | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Code | form | string | Yes | |
| Value | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ContactTypeCode | form | string | Yes | |
| PersonName | form | string | Yes | |
| DepartmentName | form | string | Yes | |
| JobTitle | form | string | Yes | |
| Responsibility | form | string | Yes | |
| CommunicationChannel | form | List<CommunicationChannel> | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CommunicationChannelCode | form | string | Yes | |
| CommunicationChannelName | form | string | Yes | |
| CommunicationValue | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| StreetAddressOne | form | string | Yes | |
| StreetAddressTwo | form | string | Yes | |
| StreetAddressThree | form | string | Yes | |
| City | form | string | Yes | |
| PostalCode | form | string | Yes | |
| ProvinceCode | form | string | Yes | |
| CountryCode | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FinancialInstitutionBranchName | form | string | Yes | |
| FinancialInstitutionName | form | string | Yes | |
| FinancialRoutingNumber | form | FinancialRoutingNumber | Yes | |
| FinancialAccount | form | FinancialAccount | Yes | |
| SwiftCode | form | string | Yes | |
| ExportersCode | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Number | form | string | Yes | |
| NumberTypeCode | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Number | form | string | Yes | |
| NumberTypeCode | form | string | Yes | |
| Name | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PayByCustomer | form | CustomerRecord | Yes | |
| BillToCustomer | form | CustomerRecord | Yes | |
| RoutingCode | form | string | Yes | |
| StoreType | form | string | Yes | |
| CurrencyCode | form | string | Yes | |
| Type | form | string | Yes | |
| Group | form | string | Yes | |
| Region | form | string | Yes | |
| ZoneRate | form | string | Yes | |
| TaxRule | form | string | Yes | |
| PaymentTerm | form | string | Yes | |
| ShipmentSite | form | string | Yes | |
| ShipmentSiteName | form | string | Yes | |
| ShipmentSiteGln | form | string | Yes | |
| AccountingCode | form | string | Yes | |
| CommercialRepresentative | form | string | Yes | |
| CommercialTerritory | form | string | Yes | |
| Credit | form | CreditLimit | Yes | |
| NOD | form | List<string> | Yes | |
| NDD | form | List<string> | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Gln | form | string | Yes | |
| Code | form | string | Yes | |
| Name | form | string | Yes | |
| BuyerAssignedVendorNo | form | string | Yes | |
| SupplierAssignedVendorNo | form | string | Yes | |
| DutyFeeTaxRegistration | form | string | Yes | |
| EntityIdentification | form | string | Yes | |
| Contact | form | List<Contact> | Yes | |
| Address | form | CustomerMasterAddress | Yes | |
| AvpList | form | List<AvpList> | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AddressType | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Limit | form | decimal | No | |
| Balance | form | decimal | No | |
| Available | form | decimal | No | |
| EffectiveDateTime | form | DateTime? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Token | form | Guid | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/customerMaster HTTP/1.1
Host: stf-api-uat.data-xchange.co.za
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
customerMaster:
{
dataSource:
{
contact:
[
{
contactTypeCode: String,
personName: String,
departmentName: String,
jobTitle: String,
responsibility: String,
communicationChannel:
[
{
communicationChannelCode: String,
communicationChannelName: String,
communicationValue: String
}
]
}
],
address:
{
streetAddressOne: String,
streetAddressTwo: String,
streetAddressThree: String,
city: String,
postalCode: String,
provinceCode: String,
countryCode: String
},
communicationChannel:
[
{
code: String,
value: String
}
],
financialInstitutionInformation:
{
financialInstitutionBranchName: String,
financialInstitutionName: String,
financialRoutingNumber:
{
number: String,
numberTypeCode: String
},
financialAccount:
{
number: String,
numberTypeCode: String,
name: String
},
swiftCode: String,
exportersCode: String
},
dutyFeeTaxRegistration: String,
entityIdentification: String,
gln: String,
name: String,
additionalPartyIdentification:
[
{
code: String,
value: String
}
]
},
dataRecipient:
{
contact:
[
{
contactTypeCode: String,
personName: String,
departmentName: String,
jobTitle: String,
responsibility: String,
communicationChannel:
[
{
communicationChannelCode: String,
communicationChannelName: String,
communicationValue: String
}
]
}
],
address:
{
streetAddressOne: String,
streetAddressTwo: String,
streetAddressThree: String,
city: String,
postalCode: String,
provinceCode: String,
countryCode: String
},
communicationChannel:
[
{
code: String,
value: String
}
],
financialInstitutionInformation:
{
financialInstitutionBranchName: String,
financialInstitutionName: String,
financialRoutingNumber:
{
number: String,
numberTypeCode: String
},
financialAccount:
{
number: String,
numberTypeCode: String,
name: String
},
swiftCode: String,
exportersCode: String
},
dutyFeeTaxRegistration: String,
entityIdentification: String,
gln: String,
name: String,
additionalPartyIdentification:
[
{
code: String,
value: String
}
]
},
customerMasterIdentification: String,
customer:
[
{
payByCustomer:
{
gln: String,
code: String,
name: String,
buyerAssignedVendorNo: String,
supplierAssignedVendorNo: String,
dutyFeeTaxRegistration: String,
entityIdentification: String,
contact:
[
{
contactTypeCode: String,
personName: String,
departmentName: String,
jobTitle: String,
responsibility: String,
communicationChannel:
[
{
communicationChannelCode: String,
communicationChannelName: String,
communicationValue: String
}
]
}
],
address:
{
addressType: String,
streetAddressOne: String,
streetAddressTwo: String,
streetAddressThree: String,
city: String,
postalCode: String,
provinceCode: String,
countryCode: String
},
avpList:
[
{
code: String,
value: String
}
]
},
billToCustomer:
{
gln: String,
code: String,
name: String,
buyerAssignedVendorNo: String,
supplierAssignedVendorNo: String,
dutyFeeTaxRegistration: String,
entityIdentification: String,
contact:
[
{
contactTypeCode: String,
personName: String,
departmentName: String,
jobTitle: String,
responsibility: String,
communicationChannel:
[
{
communicationChannelCode: String,
communicationChannelName: String,
communicationValue: String
}
]
}
],
address:
{
addressType: String,
streetAddressOne: String,
streetAddressTwo: String,
streetAddressThree: String,
city: String,
postalCode: String,
provinceCode: String,
countryCode: String
},
avpList:
[
{
code: String,
value: String
}
]
},
routingCode: String,
storeType: String,
currencyCode: String,
type: String,
group: String,
region: String,
zoneRate: String,
taxRule: String,
paymentTerm: String,
shipmentSite: String,
shipmentSiteName: String,
shipmentSiteGln: String,
accountingCode: String,
commercialRepresentative: String,
commercialTerritory: String,
credit:
{
limit: 0,
balance: 0,
available: 0,
effectiveDateTime: 0001-01-01
},
nod:
[
String
],
ndd:
[
String
],
gln: String,
code: String,
name: String,
buyerAssignedVendorNo: String,
supplierAssignedVendorNo: String,
dutyFeeTaxRegistration: String,
entityIdentification: String,
contact:
[
{
contactTypeCode: String,
personName: String,
departmentName: String,
jobTitle: String,
responsibility: String,
communicationChannel:
[
{
communicationChannelCode: String,
communicationChannelName: String,
communicationValue: String
}
]
}
],
address:
{
addressType: String,
streetAddressOne: String,
streetAddressTwo: String,
streetAddressThree: String,
city: String,
postalCode: String,
provinceCode: String,
countryCode: String
},
avpList:
[
{
code: String,
value: String
}
]
}
],
documentStatusCode: String,
documentActionCode: String
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
}