cURL
curl --request POST \ --url https://app.dilli.studio/api/v1/payment-coupons \ --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" }
X-Api-Key
code
type
amount
percent
value
Created
Show child attributes