Record referral event
documentedRecords an instance of a campaign referral event.
POST /api/v2/{username}/{token}/json/event/record/Eventsno 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/api/v2/{{$username}}/{{$token}}/json/event/record/" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-Api-Key: {{GETAMBASSADOR_API_KEY}}" \
-d '{"event": {"type": "{{$event_type}}", "campaign_id": "{{$campaign_id}}", "ambassador_id": "{{$ambassador_id}}", "customer_id": "{{$customer_id}}", "order_id": "{{$order_id}}", "value": {{$value}}, "occurred_at": "{{$occurred_at}}" }}'