The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /jsv/reply/CompanyGet HTTP/1.1
Host: api.megaventory.com
Content-Type: text/jsv
Content-Length: length
{
Filters:
[
{
AndOr: And,
Group: Undefined,
FieldName: String,
SearchOperator: Undefined,
SearchValue: String
}
],
ReturnTopNRecords: 0,
APIKEY: String,
showDeleted: showOnlyUndeleted
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
mvCompanies:
[
{
CompanyId: 0,
CompanyName: String,
CompanyIsDefault: False,
CompanyAddress:
{
AddressType: General,
AddressLine1: String,
AddressLine2: String,
AddressLine3: String,
Name: String,
Phone: String,
Email: String,
TaxIdNumber: String,
Organization: String,
City: String,
State: String,
Country: NONE,
CountryName: String,
Longitude: String,
Latitude: String,
ZipCode: String
},
CompanyEmail: String,
CompanyPhone: String,
CompanyCurrency: String,
CompanyTaxIdNumber: String,
CompanyComments: String,
CompanyTimeZoneOffsetInMinutes: 0,
CompanyDaylightSavingFlag: False,
CompanyDaylightStartDate: 0001-01-01,
CompanyDaylightEndDate: 0001-01-01
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String
}
]
},
InternalErrorCode: String
}