WebAPI - Creating a customer

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:
  1. {
        "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:

  1. settlementDiscountpercent: Customer discount percentage. 
  2. partyKey: The customer's key. This field is mandatory.
  3. name: Short description of the customer. This field is mandatory.
  4. keyword: Short description of the customer.
  5. companyTaxID: Tax ID number.
  6. electronicMail: Customer email.
  7. telephone: Telephone number.
  8. mobile: Mobile phone number.
  9. websiteUrl: Website.
  10. notes: Remarks.
  11. picture: the image. 
  12. streetName: Street.
  13. buildingNumber: Building number.
  14. postalZone: Postal code.
  15. cityName: City.
  16. contactName: Short description of the customer.
  17. username: User name.
  18. customerGroup: The key of the group of customers. This field is mandatory.
  19. currency: The currency's key.
  20. country: Key of the country, this field is mandatory.
  21. partyAddresses: Additional addresses.
  22. partyContacts: Additional contacts.
  23. culture: The culture's key. This field is mandatory.

When this method is executed successfully, it returns HttpStatusCode.OK.

 


    • Related Articles

    • 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 ...
    • WebAPI - Creating a requisition type

      This method allows creating a type of requisition in a simplified manner. The method to be used to create a requisition type is: POST url/api/mytenant/myorganization/requisitionscore/requisitiontypes Json example for creating a type of requisition:  ...
    • 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: {     "equipmentKey": "PCR", ...