YM REST Services

<back to all web services

InvoiceItems

Requires Authentication
Requires any of the roles:admin, oauthadmin
The following routes are available for this service:
GET/Ams/{ClientID}/InvoiceItemsInvoice items lookup - with cache.Return all invoice items for given criteria.
InvoiceItems Parameters:
NameParameterData TypeRequiredDescription
DateFromqueryDateTimeNo
InvoiceItemTypequeryInvoiceItemTypeNo
PageSizequeryintNo
PageNumberqueryintNo
OffSetqueryintNo
LineItemDateEnteredFromqueryDateTime?No
BaseDto Parameters:
NameParameterData TypeRequiredDescription
UsingRedisformboolNo
AppInitTimeformDateTimeNo
ServerIDformstringNo
BaseSharedDto Parameters:
NameParameterData TypeRequiredDescription
ClientIDformintNo
ResponseStatusformResponseStatusNo
BypassCacheformboolNo
DateCachedformDateTimeNo
DeviceformDeviceNo
InvoiceItemsResponse Parameters:
NameParameterData TypeRequiredDescription
InvoiceItemsListformList<InvoiceItemData>No
InvoiceItemData Parameters:
NameParameterData TypeRequiredDescription
InvoiceNoformintNo
InvoiceTypeformstringNo
InvoiceNameLastformstringNo
InvoiceNameFirstformstringNo
InvoiceNameMiddleformstringNo
InvoiceNameSuffixformstringNo
OriginalInvoicePaymentOptionformstringNo
PaymentTermsformstringNo
OrganizationformstringNo
Address1formstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
ProvinceformstringNo
PostalCodeformstringNo
CountryformstringNo
EmailAddressformstringNo
PhoneformstringNo
OutstandingBalanceformdoubleNo
OriginalInvoiceBillingAddress1formstringNo
OriginalInvoiceBillingAddress2formstringNo
OriginalInvoiceBillingCityformstringNo
OriginalInvoiceBillingStateformstringNo
OriginalInvoiceBillingProvinceformstringNo
OriginalInvoiceBillingPostalCodeformstringNo
OriginalInvoiceBillingCountryformstringNo
OriginalInvoiceBillingPhoneformstringNo
OriginalInvoiceNameOnCardformstringNo
OriginalInvoiceCardNumberformstringNo
OriginalInvoiceCardTypeformstringNo
OriginalInvoiceCardExpMonthformintNo
OriginalInvoiceCardExpYearformintNo
OriginalInvoiceCommentsformstringNo
OriginalInvoiceInternalNotesformstringNo
DateInvoiceLastSentformDateTimeNo
LineItemIDformintNo
LineItemRelatedToformintNo
LineItemTypeformstringNo
LineItemDescriptionformstringNo
GLCodeItemNameformstringNo
QBClassItemNameformstringNo
LineItemDateformDateTimeNo
LineItemAmountformdoubleNo
LineItemQuantityformintNo
LineTotalformdoubleNo
LineItemTaxVATRateformdoubleNo
LineItemNotesVisibleformstringNo
LineItemNotesInternalformstringNo
PaymentOptionformstringNo
PaymentCheckReferenceNumberformstringNo
PaymentBillingAddress1formstringNo
PaymentBillingAddress2formstringNo
PaymentBillingCityformstringNo
PaymentBillingStateformstringNo
PaymentBillingProvinceformstringNo
PaymentBillingPostalCodeformstringNo
PaymentBillingCountryformstringNo
PaymentBillingPhoneformstringNo
PaymentNameOnCardformstringNo
PaymentEmailAddressformstringNo
PaymentCardNumberformstringNo
PaymentCardTypeformstringNo
PaymentCardExpMonthformintNo
PaymentCardExpYearformintNo
EnteredByformstringNo
AccountformstringNo
OriginalInvoiceBillingOrganizationformstringNo
PaymentBillingOrganizationformstringNo
POformstringNo
WebSiteMemberIDformintNo
ConstituentIDformstringNo
PaymentProcessorAccountIDformintNo
PaymentProcessorformstringNo
PaymentProcessorAccountNicknameformstringNo
LineItemDateEnteredformDateTimeNo

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 /Ams/{ClientID}/InvoiceItems HTTP/1.1 
Host: ws.yourmembership.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	InvoiceItemsList: 
	[
		{
			InvoiceNo: 0,
			InvoiceType: String,
			InvoiceNameLast: String,
			InvoiceNameFirst: String,
			InvoiceNameMiddle: String,
			InvoiceNameSuffix: String,
			OriginalInvoicePaymentOption: String,
			PaymentTerms: String,
			Organization: String,
			Address1: String,
			Address2: String,
			City: String,
			State: String,
			Province: String,
			PostalCode: String,
			Country: String,
			EmailAddress: String,
			Phone: String,
			OutstandingBalance: 0,
			OriginalInvoiceBillingAddress1: String,
			OriginalInvoiceBillingAddress2: String,
			OriginalInvoiceBillingCity: String,
			OriginalInvoiceBillingState: String,
			OriginalInvoiceBillingProvince: String,
			OriginalInvoiceBillingPostalCode: String,
			OriginalInvoiceBillingCountry: String,
			OriginalInvoiceBillingPhone: String,
			OriginalInvoiceNameOnCard: String,
			OriginalInvoiceCardNumber: String,
			OriginalInvoiceCardType: String,
			OriginalInvoiceCardExpMonth: 0,
			OriginalInvoiceCardExpYear: 0,
			OriginalInvoiceComments: String,
			OriginalInvoiceInternalNotes: String,
			DateInvoiceLastSent: 0001-01-01,
			LineItemID: 0,
			LineItemRelatedTo: 0,
			LineItemType: String,
			LineItemDescription: String,
			GLCodeItemName: String,
			QBClassItemName: String,
			LineItemDate: 0001-01-01,
			LineItemAmount: 0,
			LineItemQuantity: 0,
			LineTotal: 0,
			LineItemTaxVATRate: 0,
			LineItemNotesVisible: String,
			LineItemNotesInternal: String,
			PaymentOption: String,
			PaymentCheckReferenceNumber: String,
			PaymentBillingAddress1: String,
			PaymentBillingAddress2: String,
			PaymentBillingCity: String,
			PaymentBillingState: String,
			PaymentBillingProvince: String,
			PaymentBillingPostalCode: String,
			PaymentBillingCountry: String,
			PaymentBillingPhone: String,
			PaymentNameOnCard: String,
			PaymentEmailAddress: String,
			PaymentCardNumber: String,
			PaymentCardType: String,
			PaymentCardExpMonth: 0,
			PaymentCardExpYear: 0,
			EnteredBy: String,
			Account: String,
			OriginalInvoiceBillingOrganization: String,
			PaymentBillingOrganization: String,
			PO: String,
			WebSiteMemberID: 0,
			ConstituentID: String,
			PaymentProcessorAccountID: 0,
			PaymentProcessor: String,
			PaymentProcessorAccountNickname: String,
			LineItemDateEntered: 0001-01-01
		}
	],
	DateFrom: 0001-01-01,
	InvoiceItemType: All,
	PageSize: 0,
	PageNumber: 0,
	OffSet: 0,
	LineItemDateEnteredFrom: 0001-01-01,
	UsingRedis: True,
	AppInitTime: 2024-05-03T03:25:08.2888604-04:00,
	ServerID: WS-4-69-031,
	ClientID: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	BypassCache: False,
	DateCached: 2024-05-03T05:43:38.5774507-04:00,
	Device: Desktop
}