LogoLogo
REST APIWebhooksHelp Center →
  • Introduction
  • JavaScript API
    • Overview
  • REST API
    • Overview
    • Campaigns
      • The campaign object
      • List campaigns
      • Create campaign
      • Retrieve campaign
      • Update campaign
    • Affiliates
      • The affiliate object
      • List affiliates
      • Create affiliate
      • Retrieve affiliate
      • Update affiliate
      • Magic Link (SSO)
    • Affiliate Links
      • The affiliate link object
      • List affiliate links
      • Create affiliate link
      • Retrieve affiliate link
      • Update affiliate link
    • Affiliate Coupons
      • The affiliate coupon object
      • List affiliate coupons
      • Create affiliate coupon
      • Retrieve affiliate coupon
    • Referrals
      • The referral object
      • List referrals
    • Commissions
      • The commission object
      • List commissions
      • Retrieve commission
      • Update commission
      • Delete commission
    • Payouts
      • The payout object
      • List payouts
      • Retrieve a payout
      • Mark a payout as paid
  • Webhooks
    • Overview
    • Endpoints
    • Requests
    • Event types
    • Signed webhooks
  • Links
    • Help Center
    • Sign up
    • Login
    • Learn more about Rewardful
Powered by GitBook
On this page
  • Request
  • Example
  • Response

Was this helpful?

Export as PDF
  1. REST API
  2. Commissions

Delete commission

Permanently deletes a commission. Financial stats for the associated affiliate and campaign will be recalculated.

Deleting a commission is permanent and cannot be reversed.

Request

Method

URL

DELETE

https://api.getrewardful.com/v1/commissions/:id

Example

curl --request DELETE \
  --url https://api.getrewardful.com/v1/commissions/39e68c88-d84a-4510-b3b4-43c75016a080 \
  -u YOUR_API_SECRET:

Response

Response code

Body

200

JSON object confirming the operation succeeded.

{
  "object": "commission",
  "id": "39e68c88-d84a-4510-b3b4-43c75016a080",
  "deleted": true
}

Not found

Response code

Body

404

JSON object describing the error.

{  "error": "Commission not found: 39e68c88-d84a-4510-b3b4-43c75016a080" }

Authentication failure

Response code

Body

401

Description of the authentication failure.

{  "error": "Invalid API Secret." }
PreviousUpdate commissionNextPayouts

Last updated 6 months ago

Was this helpful?