WebAPI - Creating a customer
This method allows to create a customer in a simplified manner.
The method to be used when creating a customer:
POST url/api/mytenant/myorganization/businesscore/customerparties
Json example for creating a customer:
- {
"settlementDiscountPercent": 12.000000,
"partyKey": "001",
"name": "Kinet",
"keyword": "Kinet",
"companyTaxID": null,
"electronicMail": null,
"telephone": null,
"mobile": null,
"websiteUrl": null,
"notes": null,
"picture": null,
"pictureThumbnail": null,
"streetName": null,
"buildingNumber": null,
"postalZone": null,
"cityName": null,
"contactName": "Kinet",
"username": null,
"customerGroup": "CF",
"currency": "EUR",
"country": "PT",
"partyAddresses": [
{
"streetName": "rua maria",
"buildingNumber": "456",
"postalZone": "3456-453",
"cityName": "António",
"contactName": "098098098",
"contactTitle": "Tec",
"country": "PT"
}
],
"partyContacts": [
{
"contactTitle": "técnico",
"contactName": "Joao",
"electronicMail": null,
"mobile": "676767678",
"telephone": "234234234",
"contactType": "01"
}
],
"culture": "PT-PT"
}
This method allows to create a
customer according to the parameters filled in:
- settlementDiscountpercent: Customer
discount percentage.
- partyKey: The customer's
key. This field is mandatory.
- name: Short description of the
customer. This field is mandatory.
- keyword: Short description of the
customer.
- companyTaxID: Tax ID number.
- electronicMail: Customer email.
- telephone: Telephone number.
- mobile: Mobile phone number.
- websiteUrl: Website.
- notes: Remarks.
- picture: the image.
- streetName: Street.
- buildingNumber: Building
number.
- postalZone: Postal code.
- cityName: City.
- contactName: Short description of
the customer.
- username: User name.
- customerGroup: The key of the
group of customers. This field is mandatory.
- currency: The currency's key.
- country: Key of the country, this
field is mandatory.
- partyAddresses: Additional
addresses.
- partyContacts: Additional
contacts.
- culture: The culture's key. This
field is mandatory.
When this method is executed
successfully, it returns HttpStatusCode.OK.
Related Articles
WebAPI - Creating a warehouse
This method allows to create a warehouse in a simplified manner. The method to be used when creating a warehouse: POST url/api/mytenant/myorganization/inventorycore/warehouses Json example for creating a warehouse: 1. { "warehouseKey": "W2", ...
WebAPI - Creating a request
This method allows to create a request in a simplified manner. The method to be used when creating a request: POST url/api/mytenant/myorganization/Requests/requests Json example for creating a request: { "requestKey": "00001", "description": "Vidro ...
WebAPI - Creating a tool
This method allows to create a tool in a simplified manner. The method to be used when creating a tool is: POST url/api/mytenant/myorganization/assetmanagementcore/equipmentItems Json example for creating a tool: 1. { "equipmentKey": "PCR", ...
WebAPI - Creating an equipment
This method allows to create an equipment in a simplified manner. The method to be used when creating an equipment: POST url/api/mytenant/myorganization/assetmanagementcore/equipmentItems Json example for creating an equipment: 1. { ...
WebAPI – How do I create work orders?
This method offers a simple way of creating a Work Order for a specific Asset, Location, Tool or Route. The method to be used to create a work order is: POST /api/mytenant/myorganization/maintenance/workorders/newWorkOrderInfo Json example to create ...