coupon

ساخت یک کد تخفیف جدید

post/v1/coupon

Request

  • Base URL: https://api.payping.ir
  • URL: https://api.payping.ir/v1/coupon
  • Auth: one of:
    • API key in header Authorization
    • OAuth 2 (authorization code, authorization URL https://oauth.payping.ir/connect/authorize, token URL https://oauth.payping.ir/connect/token, scopes: coupon:write)

Request body

namestring
userCouponCodestring
type0 | 1
amountinteger
redeemDatestring date-time
redeemTimestring
maxRedemptioninteger
isActiveboolean
activeProductCodestring[]

Response

کد تخفیف با موفقیت ساخته شد

codestring

Changes

No recorded changes to this operation across all 1 revision of this API.