Skip to main content
GET
Get User Discount Code List

Endpoint Overview

GET https://api.unibee.dev/merchant/discount/user_discount_list Get user discountCode list

Authorization

All UniBee Merchant API requests require authentication via API key.

Parameters

Parameters for this endpoint are listed below. The schema is also shown in the Try it panel.

Query parameters


Request examples

cURL

Sandbox


Response

Success responses return a JSON envelope with code, data, message, redirect, and requestId. code 0 indicates success.

Error handling

When code in the response body is non-zero, check message for details. Use requestId when contacting support.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

id
integer<int64>
required

The discount's Id

userIds
integer<int64>[]

Filter UserIds Default All

email
string<string>

Filter Email Default All

planIds
integer<int64>[]

Filter PlanIds Default All

subscriptionIds
string<string>[]

Filter SubscriptionIds Default All

status
integer<int>[]

Filter Status Default All, 1-used, 2-rollback

childCode
string<string>

Filter Child Code (fuzzy search), only available when Id is batch template ID

sortField
string<string>

Sort Field,gmt_create|gmt_modify,Default gmt_modify

sortType
string<string>

Sort Type,asc|desc,Default desc

page
integer<int>

Page, Start 0

count
integer<int>

Count Of Per Page

createTimeStart
integer<int64>

CreateTimeStart,UTC timestamp,seconds

createTimeEnd
integer<int64>

CreateTimeEnd,UTC timestamp,seconds

Response

200 - application/json
code
integer<int>
data
object
merchantId
integer<int64>
message
string<string>
redirect
string<string>
requestId
string<string>