For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update commission

Updates the specified commission by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

Request

Method

URL

PUT

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

Parameters

Parameter

Description

paid_at

Timestamp (as an ISO 8601 formatted string) representing when this commission was paid. Can be any time in the past/future.

due_at

Timestamp (as an ISO 8601 formatted string) indicating when this commission should be considered payable to the affiliate. Can be any time in the past/future, but cannot be blank.

Examples

Mark a commission as paid

curl --request PUT \
  --url https://api.getrewardful.com/v1/commissions/01342824-914a-4aee-9f42-de823a8b74e2 \
  --data paid_at=2020-08-23T20:37:59.256Z
  -u YOUR_API_SECRET:

Mark a commission as unpaid

curl --request PUT \
  --url https://api.getrewardful.com/v1/commissions/01342824-914a-4aee-9f42-de823a8b74e2 \
  --data paid_at=
  -u YOUR_API_SECRET:

Change the due date of a commission

Response

Response code

Body

200

JSON object describing the updated commission.

Last updated

Was this helpful?