bosOnline
  1. Voucher
bosOnline
  • bosOnline
  • BosOnline
    • auth
      • Register
      • Login
      • Refresh Token
    • Product
      • Inventory
      • Download Inventory
      • Download Variant
      • Update Inventory
      • Get Category
      • Get Edit Product
      • Product List
      • Edit Product Detail (Product Detail)
      • product
      • Delete Product
      • Edit Status Product (Product List)
      • Download Product (Product List)
      • Product Detail
      • Product Variant
      • Edit Status Variant (Product Detail)
      • Update Variant
      • Upload Image
      • Cek SKU
    • Form
      • Form
      • Edit Form
      • Form Detail
      • Edit Status Form (Product Detail)
      • Form list
      • Custom Success Page
      • Custom Success Page
      • Edit Success Page
    • Order
      • Checkout
        • Request Create Order
        • Request Create Order Abandoned
      • Follow up
        • Follow Up
        • Follow Up Attempts
      • Edit Choose Courier
      • Edit Payment Method
      • Detail Order
      • Edit Customer Order
      • Edit Another Fee
      • Order List
      • Confirm Payment
      • Update Payment Method
      • Update Pengiriman Kurir
      • Update Status Order
    • Store
      • Custom Domain
        • Set Default Subdomain
        • Subdomain
        • Create Subdomain
        • Verifikasi Subdomain
        • Get Revenue
      • Store
      • Cek SubDomain
      • Get Region
      • Store
      • Warehouse
      • On Boarding
      • Recap Order
      • Recap Store
      • Recap Product
      • Recap CS
      • Tips
      • Announcement
      • Edit Subdomain
    • API Boscod
      • Cek Ongkir
      • Wilayah
      • Tracking Order
      • Reset Password
      • Warehouse
      • Order Shipping
      • winpay service
    • Profile
      • Warehouse
      • Edit Warehouse
      • Profile
      • Data Deletion
      • Default Warehouse
      • Me
    • Staff
      • Staff
      • Delete staff
      • Create Staff
      • Edit Status Staff
    • Rekening
      • Bank List
      • Get Rekening List
      • Rekening Detail
      • Create Rekening
      • Edit Rekening
      • Delete Rekening
      • Edit Status Rekening
    • Voucher
      • List Voucher
        GET
      • Edit Voucher Status
        PATCH
      • Voucher
        POST
      • List Voucher Checkout
        GET
      • Delete Voucher
        DELETE
  • AdminBosOnline
    • Dashboard
      • Recap Store
      • Revenue
      • Order Recap
  1. Voucher

List Voucher

Testing
GET
/store/vouchers
Endpoint ini digunakan untuk menampilkan list voucher yang sudah dibuat.
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

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
active
integer  | null 
optional
0, 1
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
code, type
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

🟢200Success
application/json
Body
data
array [object {9}] 
required
voucher_code
string 
optional
description
string 
optional
voucher_type
string 
optional
periode_min
string 
optional
periode_max
string 
optional
status
enum<integer> 
optional
Allowed values:
01234
voucher_use
integer 
optional
voucher_stok
integer 
optional
voucher_item
array [object {2}] 
optional
Modified at 2025-06-23 08:35:17
Previous
Edit Status Rekening
Next
Edit Voucher Status
Built with