Autional Autional
API Reference GitHub autional.com →

POST /wallets/{user_id}/coupons/{code}/redeem

Redeem a coupon using a coupon code.

Wallet Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
user_id path string Yes User ID
code path string Yes Coupon code
wallet_id query string No Wallet ID

Responses

StatusDescriptionSchema
200OKdto.RedeemCouponResponse
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.CouponResponse

Coupon info

FieldTypeRequiredExampleConstraintsDescription
code string No DISCOUNT20 Code
created_at string No 2026-01-01T00:00:00Z Created
id string No cpn_abc123 ID
min_amount string No 100.00 Minimum spend
name string No 20 yuan coupon Name
status string No unused Status
type string No cash Type
used_at string No Usage time
used_order_id string No Order ID
valid_from string No 2026-01-01T00:00:00Z Active
valid_until string No 2026-12-31T23:59:59Z Expired
value string No 20.00 Value

dto.RedeemCouponResponse

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

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No