Add commission
documentedCreates commission for given ambassador. Useful for commission events without referrers. For commissions with a referred party, use the event/record method.
POST /api/v2/{username}/{token}/json/commission/add/Commissionsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.getambassador.com/v2/{{$username}}/{{$token}}/json/commission/add/" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"amount": {{$amount}}, "currency": "{{$currency}}", "type": "{{$commissionType}}", "description": "{{$description}}", "scheduledDate": "{{$scheduledDate}}", "settledDate": "{{$settledDate}}"}'