API Endpoint |
https://secure.iforms.africa:443/api/v2/company |
The POST Company API allows you to create Companies on the platform.
This enables scenarios where Companies created/maintained in other systems (e.g. SAP, Salesforce) can be replicated to the platform automatically.
CONTENTS
- POST Request
- POST Response
- API Usage Example
POST Request
You may use either JSON or XML formats in your request. You indicate this by setting the ContentType HTTP header as "application/json" or "application/xml". If no ContentType is specified, XML format is assumed.
The format query string parameter controls the desired response format. Specify either XML or JSON.
/api/v2/company?format=xml/json
The required (red border) and optional parameters for a POST to the Company API are outlined below.
Model Schema
Note, that if you wish to automatically create a support user for your internal use with this Company, you should set the AddSupportUser property on Company to be True.
POST Response
The data returned from a Company POST is provided as follows:
API Usage Example
Given that the API is REST-based, you can access the API directly via your web browser to test it. Obviously, for actual integration works, you will need to make a web request to the given REST URL and then parse the response.
Below is a simple POST example which creates a new Company for the specified Vendor using XML format.
XML Body:
XML Response: