Megaventory API v2017a

<back to all web services

BalanceGet

The following routes are available for this service:
GET POST/Balance/BalanceGetGet existing balances

To override the Content-type in your clients HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/BalanceGet HTTP/1.1 
Host: api.megaventory.com 
Content-Type: text/jsv
Content-Length: length

{
	APIKEY: String,
	CompanyIds: 
	[
		0
	],
	SupplierClientIds: 
	[
		0
	],
	CurrencyCodes: 
	[
		String
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	mvBalances: 
	[
		{
			CompanyId: 0,
			SupplierClientId: 0,
			BalanceCurrencyCode: String,
			BalanceAmount: 0,
			BalanceCreatedDate: 0001-01-01,
			BalanceUpdatedDate: 0001-01-01
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String
			}
		]
	},
	InternalErrorCode: String
}