tolt.js
Guides / How To
Customers
Clicks
Commissions
Transactions
Update Commission
This endpoint updates a commission.
curl -X PUT 'https://api.tolt.com/v1/commissions/comm_eK9bzRGn46BhVgNFHD6fDgXW' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"amount": 2999,
"status": "approved",
"revenue": 14999
}'
{
"success": true,
"data": [
{
"id": "comm_eK9bzRGn46BhVgNFHD6fDgXW",
"revenue": "14999",
"charge_id": "ch_9bzRGn46BhVgNFHD6fDgXW",
"charge_status": "paid",
"source": "manual",
"status": "approved",
"type": "reward",
"currency": null,
"partner_id": "part_JE3mfL9dfdffci7sFaJazAv2",
"organization_id": "org_JEsdfL9dfci7sFaJazAv2",
"program_id": "prg_YRdddbPDAKhWfdqhJbeh",
"transaction_id": "txn_7m46BhVkjkgNFHD6fDgXW",
"customer_id": "cust_d6BhVgNFHD6fDgkjkjXW",
"payout_id": null,
"created_at": "2025-04-25T09:36:10.858Z",
"updated_at": "2025-04-25T09:36:10.858Z",
"amount": "2999",
"scheduled_approval_date": null,
"approval_type": "immediate",
"flow_id": "flw_FX567GZjkn7RtaKbEuFatWw"
}
]
}
Base URL https://api.tolt.com
Body Parameters
The commission amount in cents
Associated transaction identifier
Associated charge identifier
Source of the commission
Commission status. Valid values are: ‘pending’, ‘approved’, ‘paid’, ‘rejected’, ‘refunded’
The revenue amount in cents
ISO 8601 timestamp of when the commission was created
Response
Whether the request was successful
Unique identifier for the commission
Commission amount in cents
ID of the associated customer
Associated transaction identifier
Associated charge identifier
Status of the related charge (e.g. “paid”, “failed”)
Source of the commission
Commission status
Type of commission (e.g. “reward”, “referral”)
Currency of the commission (ISO currency code) or null if not set
Revenue amount in cents
ISO 8601 timestamp of creation
ISO 8601 timestamp of update
ID of the partner who earned the commission
Program ID the commission belongs to
Organization ID
ID of the payout if the commission has been paid, otherwise null
Scheduled approval date if applicable, otherwise null
Approval type for the commission (e.g. “immediate”, “manual”)
ID of the flow that generated the commission
curl -X PUT 'https://api.tolt.com/v1/commissions/comm_eK9bzRGn46BhVgNFHD6fDgXW' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"amount": 2999,
"status": "approved",
"revenue": 14999
}'
{
"success": true,
"data": [
{
"id": "comm_eK9bzRGn46BhVgNFHD6fDgXW",
"revenue": "14999",
"charge_id": "ch_9bzRGn46BhVgNFHD6fDgXW",
"charge_status": "paid",
"source": "manual",
"status": "approved",
"type": "reward",
"currency": null,
"partner_id": "part_JE3mfL9dfdffci7sFaJazAv2",
"organization_id": "org_JEsdfL9dfci7sFaJazAv2",
"program_id": "prg_YRdddbPDAKhWfdqhJbeh",
"transaction_id": "txn_7m46BhVkjkgNFHD6fDgXW",
"customer_id": "cust_d6BhVgNFHD6fDgkjkjXW",
"payout_id": null,
"created_at": "2025-04-25T09:36:10.858Z",
"updated_at": "2025-04-25T09:36:10.858Z",
"amount": "2999",
"scheduled_approval_date": null,
"approval_type": "immediate",
"flow_id": "flw_FX567GZjkn7RtaKbEuFatWw"
}
]
}
curl -X PUT 'https://api.tolt.com/v1/commissions/comm_eK9bzRGn46BhVgNFHD6fDgXW' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"amount": 2999,
"status": "approved",
"revenue": 14999
}'
{
"success": true,
"data": [
{
"id": "comm_eK9bzRGn46BhVgNFHD6fDgXW",
"revenue": "14999",
"charge_id": "ch_9bzRGn46BhVgNFHD6fDgXW",
"charge_status": "paid",
"source": "manual",
"status": "approved",
"type": "reward",
"currency": null,
"partner_id": "part_JE3mfL9dfdffci7sFaJazAv2",
"organization_id": "org_JEsdfL9dfci7sFaJazAv2",
"program_id": "prg_YRdddbPDAKhWfdqhJbeh",
"transaction_id": "txn_7m46BhVkjkgNFHD6fDgXW",
"customer_id": "cust_d6BhVgNFHD6fDgkjkjXW",
"payout_id": null,
"created_at": "2025-04-25T09:36:10.858Z",
"updated_at": "2025-04-25T09:36:10.858Z",
"amount": "2999",
"scheduled_approval_date": null,
"approval_type": "immediate",
"flow_id": "flw_FX567GZjkn7RtaKbEuFatWw"
}
]
}