Orders

List orders

When our system need to check for usage or do statistics, our system will query your endpoint for orders and expect a JSON result matching the WebhookOrder[] interface

Interface used in post body

interface VoucherOrders {
	voucherID: string
}

Interfaces expected in result

interface ApiOrder {
	orderID: string,
	items: ApiOrderItem[],
	date: number, //Unix timestamp in milliseconds
}


interface ApiOrderItem {
	id: string,
	name: string,
	amount: number, //The amount is given in minor units, which means that a decimal amount of 100.20 has to be given as 10020
	quantity: number,
}

List voucher orders

POST

Headers

Name
Type
Description

Authorization*

String

sha256 hashed version of your token

Request Body

Name
Type
Description

module*

String

orders

event*

String

list

data*

Object

data.voucherID*

String

Unique voucher id

Last updated