Autional Autional
API Reference GitHub autional.com →

POST /admin/wallets/coupons

Create a new coupon

Wallet Service `bearerAuth` application/json

Request Body

Schema: dto.CreateCouponRequest

FieldTypeRequiredExampleConstraintsDescription
code string Yes SUMMER2026
type string Yes discount
value string Yes 10.00
currency string No CNY
expires_at string No 2026-12-31T23:59:59Z
min_spend string No 50.00
name string No Summer coupon

Responses

StatusDescriptionSchema
201Createddto.CouponCreateDetailResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticated or invalid tokengitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.CouponCreateDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.CouponCreateResult No
message string No
timestamp string No

dto.CouponCreateResult

FieldTypeRequiredExampleConstraintsDescription
code string No SUMMER2026 Coupon code
coupon_id string No cpn_abc123 Coupon ID
currency string No CNY Currency
expires_at string No 2026-12-31T23:59:59Z Expiration time
status string No active Status
type string No discount Type
value string No 10.00 Value

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No