Commissions
Update a commission
API Documentation
Tracking Api
Referrals
Promoters
Promoter Campaigns
Commissions
Promo Codes
Payouts
Commissions
Update a commission
With this endpoint you can update a commission.
HTTP Request
PUT https://v2.firstpromoter.com/api/v2/company/commissions/{id}
PUT
/
commissions
/
{id}
curl --request PUT \
--url https://v2.firstpromoter.com/api/v2/company/commissions/{id} \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"internal_note": "<string>",
"external_note": "<string>"
}'
{
"id": 123,
"status": "pending",
"metadata": {},
"is_self_referral": true,
"commission_type": "sale",
"created_by_user_email": "<string>",
"created_by_user_at": "2023-11-07T05:31:56Z",
"sale_amount": 123,
"original_sale_amount": 123,
"original_sale_currency": "<string>",
"event_id": "<string>",
"plan_id": "<string>",
"tier": 123,
"internal_note": "<string>",
"external_note": "<string>",
"unit": "cash",
"fraud_check": "no_suspicion",
"amount": 123,
"is_paid": true,
"is_split": true,
"created_at": "2023-11-07T05:31:56Z",
"status_updated_at": "2023-11-07T05:31:56Z",
"promoter_campaign": {
"id": 123,
"campaign_id": 123,
"promoter_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"promoter": {
"id": 123,
"email": "<string>",
"name": "<string>"
},
"campaign": {
"id": 123,
"name": "<string>",
"color": "<string>"
}
},
"referral": {
"id": 123,
"email": "<string>",
"uid": "<string>"
},
"reward": {
"id": 123,
"name": "<string>"
}
}
Authorizations
Access token passed as a Bearer token in the Authorization header
Headers
Account identifier that specifies which account is making the request
Example:
"acc_123456"
Path Parameters
Id of the commission
Body
application/json
Response
200
application/json
Commission updated successfully
The response is of type object
.
curl --request PUT \
--url https://v2.firstpromoter.com/api/v2/company/commissions/{id} \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"internal_note": "<string>",
"external_note": "<string>"
}'
{
"id": 123,
"status": "pending",
"metadata": {},
"is_self_referral": true,
"commission_type": "sale",
"created_by_user_email": "<string>",
"created_by_user_at": "2023-11-07T05:31:56Z",
"sale_amount": 123,
"original_sale_amount": 123,
"original_sale_currency": "<string>",
"event_id": "<string>",
"plan_id": "<string>",
"tier": 123,
"internal_note": "<string>",
"external_note": "<string>",
"unit": "cash",
"fraud_check": "no_suspicion",
"amount": 123,
"is_paid": true,
"is_split": true,
"created_at": "2023-11-07T05:31:56Z",
"status_updated_at": "2023-11-07T05:31:56Z",
"promoter_campaign": {
"id": 123,
"campaign_id": 123,
"promoter_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"promoter": {
"id": 123,
"email": "<string>",
"name": "<string>"
},
"campaign": {
"id": 123,
"name": "<string>",
"color": "<string>"
}
},
"referral": {
"id": 123,
"email": "<string>",
"uid": "<string>"
},
"reward": {
"id": 123,
"name": "<string>"
}
}