ApexERPHost

<back to all web services

GetBuyerInvoicesWithBook

Requires Authentication
The following routes are available for this service:
GET/RS/Invoices/Buyer/Book
GetBuyerInvoicesWithBook Parameters:
NameParameterData TypeRequiredDescription
Date1queryDateTime?No
Date2queryDateTime?No
InvoiceNumquerystringNo
snquerystringNo
OpDate1queryDateTime?No
OpDate2queryDateTime?No
GetBuyerInvoicesWithBookResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
InvoicesformList<MOFInvoiceWithDetails>No
ErrorformintNo
ErrorMessageformstringNo
BookListformList<RSWaybillBooks>No
MOFInvoiceWithDetails Parameters:
NameParameterData TypeRequiredDescription
InvoiceIDformintNo
FSeriesformstringNo
FNumberformstringNo
OperationDateformDateTimeNo
RegDateformDateTimeNo
SellerUnIDformintNo
BuyerUnIDformintNo
OverheadNoformstringNo
OverheadDateformDateTimeNo
StatusformintNo
SeqNumSformstringNo
SeqNumBformstringNo
K_IDformintNo
R_UN_IDformintNo
K_TYPEformintNo
B_S_UserIDformintNo
DecStatusformintNo
OrgNameformstringNo
OrgSnformstringNo
NotesformstringNo
WAS_REFformintNo
AmountformdecimalNo
VatAmountformdecimal?No
AgreeDateformDateTime?No
AgreeUserIdformint?No
InvoiceDetsformList<MOFInvoiceDet>No
InvoiceNosformList<MOFInvoiceNosWithAmount>No
LocalAmountformdecimal?No
LocalVatAmountformdecimal?No
MOFInvoiceDet Parameters:
NameParameterData TypeRequiredDescription
IDformlongNo
InvoiceIDformintNo
GoodformstringNo
UnitformstringNo
SCountformdecimalNo
FullAmountformdecimalNo
VatAmountformdecimalNo
AkcizAmountformdecimalNo
AkcizIDformintNo
SVatAmountformstringNo
WaybillIdformint?No
VatTypeformint?No
MOFInvoiceNosWithAmount Parameters:
NameParameterData TypeRequiredDescription
NosIDformlongNo
OverheadNoformstringNo
OverheadDateformDateTimeNo
OverheadDateStrformstringNo
LocalAmountformdecimal?No
LocalVatAmountformdecimal?No
RSWaybillBooks Parameters:
NameParameterData TypeRequiredDescription
DDateformDateTimeNo
CRformstringNo
CRNameformstringNo
SNformstringNo
WaybillIdformint?No
WaybillNumformstringNo
InvoiceIdformint?No
InvoiceNumformstringNo
Amountformdecimal?No
VatAmountformdecimal?No
DocsIdformstringNo

To override the Content-type in your clients, use the 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.

GET /RS/Invoices/Buyer/Book HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Invoices: 
	[
		{
			InvoiceID: 0,
			FSeries: String,
			FNumber: String,
			OperationDate: 0001-01-01,
			RegDate: 0001-01-01,
			SellerUnID: 0,
			BuyerUnID: 0,
			OverheadNo: String,
			OverheadDate: 0001-01-01,
			Status: 0,
			SeqNumS: String,
			SeqNumB: String,
			K_ID: 0,
			R_UN_ID: 0,
			K_TYPE: 0,
			B_S_UserID: 0,
			DecStatus: 0,
			OrgName: String,
			OrgSn: String,
			Notes: String,
			WAS_REF: 0,
			Amount: 0,
			VatAmount: 0,
			AgreeDate: 0001-01-01,
			AgreeUserId: 0,
			InvoiceDets: 
			[
				{
					ID: 0,
					InvoiceID: 0,
					Good: String,
					Unit: String,
					SCount: 0,
					FullAmount: 0,
					VatAmount: 0,
					AkcizAmount: 0,
					AkcizID: 0,
					SVatAmount: String,
					WaybillId: 0,
					VatType: 0
				}
			],
			InvoiceNos: 
			[
				{
					NosID: 0,
					OverheadNo: String,
					OverheadDate: 0001-01-01,
					OverheadDateStr: String,
					LocalAmount: 0,
					LocalVatAmount: 0
				}
			],
			LocalAmount: 0,
			LocalVatAmount: 0
		}
	],
	Error: 0,
	ErrorMessage: String,
	BookList: 
	[
		{
			DDate: 0001-01-01,
			CR: String,
			CRName: String,
			SN: String,
			WaybillId: 0,
			WaybillNum: String,
			InvoiceId: 0,
			InvoiceNum: String,
			Amount: 0,
			VatAmount: 0,
			DocsId: String
		}
	]
}