WebAPI - Creating a supplier

WebAPI - Creating a supplier

This method allows to create a supplier in a simplified manner
The method to be used when creating a supplier:
POST url/api/mytenant/myorganization/businesscore/supplierparties
Json example for creating a supplier: 

1.      {

    "settlementDiscountPercent"15.000000,

    "partyKey""001",

    "name""Samsang",

    "keyword""Samsang",

    "companyTaxID""",

    "electronicMail""support@valuekeep.com",

    "telephone""123123123",

    "mobile""963963963",

    "websiteUrl""http://valuekeep.com",

    "notes""remarks",

    "picture": null,

    "pictureThumbnail"null,

    "streetName""Rua Maria",

    "buildingNumber""147",

    "postalZone""4569-123",

    "cityName""Barcelos",

    "contactName""João",

    "username"null,

    "supplierGroup""G",

    "currency""EUR",

    "country""PT",

    "partyAddresses": [

        {

            "streetName""Rua João Maria Ribeiro",

            "buildingNumber""023",

            "postalZone""1236-123",

            "cityName""Lisboa",

            "contactName""233234243",

            "contactTitle""sr",

            "country""PT"

        }

    ],

    "partyContacts": [

        {

            "contactTitle""Eng",

            "contactName""Manuel da Cunha",

            "electronicMail""support@valuekeep.com",

            "mobile""999888777",

            "telephone""123614789",

            "contactType""01"

        }

    ],

    "culture""PT-PT"

}

This method allows to create a supplier according to the parameters filled in:
  1. settlementDiscountpercent: Supplier discount percentage. 
  2. partyKey: Key of the supplier, this field is mandatory.
  3. name: Short description of the supplier. This field is mandatory.
  4. keyword: Short description of the supplier.
  5. companyTaxID: Tax ID number.
  6. electronicMail: Supplier 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 supplier.
  17. username: User name.
  18. supplierGroup: The key of the group of the supplier. 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", ...