List Voucher
Testing
GET
/store/vouchers
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/store/vouchers?active=1&start_date=01/06/2025&end_date=02/06/2025&category=code&keyword=VOCH291&type=product&sort_by=code&sort_dir=desc&start=0&limit=10'
Response Response Example
{
"data": [
{
"code": "24H81H0",
"description": "Diskon ongkir 20rb untuk pembelian semua produk",
"type": "DISKON ONGKIR",
"start_date": "2024-12-30",
"end_date": "2024-12-30",
"status": 3,
"amount_used": 0,
"voucher_stok": 100,
"voucher_item": [
{
"product_name": "Biji Kopi Arabica",
"sku": "ESB-001-01"
},
{
"product_name": "Biji Kopi Robusta",
"sku": "ESB-002-01"
}
]
}
],
"total": 1
}
Request
Query Params
active
integer | null
optional
Example:
1
start_date
string | null
required
Example:
01/06/2025
end_date
string | null
required
Example:
02/06/2025
category
enum<string> | enum<null>
optional
Allowed values:
codedescription
Example:
code
keyword
string
optional
Example:
VOCH291
type
enum<string> | enum<null>
required
Allowed values:
allproductongkir
Example:
product
sort_by
enum<string> | enum<null>
required
Allowed values:
codedescriptiontypestatus
Example:
code
sort_dir
enum<string> | enum<null>
required
Allowed values:
descasc
Example:
desc
start
integer
required
Default:
0
Example:
0
limit
integer | null
required
Default:
10
Example:
10
Responses
Modified at 2025-06-23 08:35:17