Skip to main content
PUT
/
payment-coupons
/
{paymentCoupon}
Update payment coupon
curl --request PUT \
  --url https://app.dilli.studio/api/v1/payment-coupons/{paymentCoupon} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "code": "<string>",
  "type": "amount",
  "value": 123
}
'
{
  "id": "<string>",
  "payment_link_id": "<string>",
  "code": "<string>",
  "type": "amount",
  "value": 123,
  "is_active": true,
  "payment_link": {
    "id": "<string>",
    "name": "<string>"
  },
  "max_redemptions": 123,
  "times_redeemed": 123,
  "expires_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z"
}
Use the API Playground below to send this request with your X-Api-Key. Update value, max_redemptions, is_active, or change the linked payment link.

Authorizations

X-Api-Key
string
header
required

Path Parameters

paymentCoupon
string
required

Body

application/json
code
string
required
type
enum<string>
required
Available options:
amount,
percent
value
number<float>
required
max_redemptions
integer | null
is_active
boolean
expires_at
string<date-time> | null

Response

200 - application/json

OK

id
string
code
string
type
enum<string>
Available options:
amount,
percent
value
number<float>
is_active
boolean
max_redemptions
integer | null
times_redeemed
integer
expires_at
string<date-time> | null
created_at
string<date-time>