BokaMera.API.Host

<back to all web services

PaymentLogQuery

Requires Authentication
Requires any of the roles:bookingsupplier-administrator-write, superadmin
The following routes are available for this service:
GET/articles/paymentsQuery payment logsQuery payment logs
PaymentLogQuery Parameters:
NameParameterData TypeRequiredDescription
CompanyIdqueryGuid?NoThe company id, if empty will use the company id for the user you are logged in with.
CreatedFromquerydateTimeNoStart of interval to query for payments when they where created. UTC+0 and parameter as defined by date-time - RFC3339
CreatedToquerydateTimeNoEnd of interval to query for payments when they where created. UTC+0 and parameter as defined by date-time - RFC3339
ArticleTypeIdqueryint?YesArticle type (Could be Service, rebate code types, etc..
IncludeArticleTypequeryboolNo
QueryBase Parameters:
NameParameterData TypeRequiredDescription
SkipqueryintNoSkip over a given number of elements in a sequence and then return the remainder. Use this when you need paging.

Example:
?skip=10&orderBy=Id
TakequeryintNoReturn a given number of elements in a sequence and then skip over the remainder. Use this when you need paging.

Example:
?take=20
OrderByquerystringNoComma separated list of fields to order by. Prefix the field name with a minus if you wan't to invert the sort for that field.

Example:
?orderBy=Id,-Age,FirstName
OrderByDescquerystringNoComma separated list of fields to order by in descending order. Prefix the field name with a minus if you wan't to invert the sort for that field.

Example:
?orderByDesc=Id,-Age,FirstName
IncludequerystringNoInclude any of the aggregates AVG, COUNT, FIRST, LAST, MAX, MIN, SUM in your result set. The results will be returned in the meta field.

Example:
?include=COUNT(*) as Total

or multiple fields with
?include=Count(*) Total, Min(Age), AVG(Age) AverageAge

or unique with
?include=COUNT(DISTINCT LivingStatus) as UniqueStatus
FieldsformstringNo
MetaformDictionary<string, string>No
PaymentLog Parameters:
NameParameterData TypeRequiredDescription
CurrencyIdformstringYes
CurrencyInfoformCurrencyYes
CompanyIdformGuidYes
IdformintNo
InternalReferenceIdformstringYes
ArticleTypeIdformintYes
PaymentReferenceIdformstringNo
PaymentProviderIdformint?No
OrderItemReferenceIdformstringNo
Amountformdouble?No
VATformdecimal?No
AmountCreditedformdouble?No
CommentsformstringNo
CreatedformDateTimeYes
UpdatedformDateTimeYes
ModifiedDateformDateTimeOffset?No
Currency Parameters:
NameParameterData TypeRequiredDescription
NameformstringYes
CurrencySignformstringYes
ActiveformboolYes
ModifiedDateformDateTimeOffset?No
IdformstringYes
PaymentLogQueryResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNoThe payment log id
InternalReferenceformintNoThe internal reference id, could be reference to a booking, rebate code, gift card etc.
PaymentReferenceIdformstringYesThe payment reference id
OrderItemReferenceIdformstringYesThe payment order item reference id
PaymentProviderIdformint?NoThe payment reference id
AmountformdoubleNoThe payment amount
ArticleTypeformArticleTypeYesThe article type
VATformdecimalNoThe payment VAT in percent
AmountCreditedformdoubleNoThe payment amount that is credited
CurrencyIdformstringYesThe payment currency id
CurrencyInfoformCurrencyInfoResponseYesThe payment currency info
CommentsformstringYesComments that could be added to the event log item
CreatedformDateTimeNoThe date when the payment items was created
UpdatedformDateTimeNoThe date when the payment items were updated.
ArticleType Parameters:
NameParameterData TypeRequiredDescription
ArticleTypeIdformintNo
ArticleTypeNameformstringYes
ArticleTypeDescriptionformstringNo
CurrencyInfoResponse Parameters:
NameParameterData TypeRequiredDescription
IdformstringYesThe currency id
NameformstringYesThe currency id
CurrencySignformstringYesThe currency id
QueryResponse<T> Parameters:
NameParameterData TypeRequiredDescription
OffsetformintNo
TotalformintNo
ResultsformList<AccessKeyTypeResponse>No
MetaformDictionary<string, string>No
ResponseStatusformResponseStatusNo
AccessKeyTypeResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
KeyTypeformstringYes
DescriptionformstringYes

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 /articles/payments HTTP/1.1 
Host: api.bokamera.se 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Offset: 0,
	Total: 0,
	Results: 
	[
		{
			Id: 0,
			InternalReference: 0,
			PaymentReferenceId: String,
			OrderItemReferenceId: String,
			PaymentProviderId: 0,
			Amount: 0,
			ArticleType: 
			{
				ArticleTypeId: 0,
				ArticleTypeName: String,
				ArticleTypeDescription: String
			},
			VAT: 0,
			AmountCredited: 0,
			CurrencyId: String,
			CurrencyInfo: 
			{
				Id: String,
				Name: String,
				CurrencySign: String
			},
			Comments: String
		}
	],
	Meta: 
	{
		String: String
	},
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}