Logo
Get supportSee a Demo
HomeAPI Reference
HomeAPI Reference
    • Authentication
  • API Reference
Get supportSee a Demo
API ReferenceAttributions

POST
/issuers/:organizationId/attributions
POST
/issuers/:organizationId/attributions
1import requests
2
3url = "https://rewards-api.getkard.com/issuers/%7BorganizationId%7D/attributions"
4
5payload = { "data": [
6 {
7 "type": "attribution",
8 "attributes": {
9 "userId": "123",
10 "type": "OFFER",
11 "subtype": "VIEW",
12 "typeId": "60e4ba1da31c5a22a144c075",
13 "medium": "SEARCH"
14 }
15 }
16 ] }
17headers = {
18 "Authorization": "Bearer <token>",
19 "Content-Type": "application/json"
20}
21
22response = requests.post(url, json=payload, headers=headers)
23
24print(response.json())
Try it
1"OK"
Was this page helpful?
Previous

List

Next
Built with

Call this endpoint to send all attribution events made by all enrolled users in your rewards program. These attribution events will be processed by the Kard system.
Required scopes: attributions.write

Create Attribution Events

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path Parameters

organizationIdstringRequired
Your organization ID, provided by Kard.

Headers

X-Kard-organizationIdstringOptional

Request

This endpoint expects an object.
datalist of objectsRequired
Data and attributes related to the attribution event.

Response

This endpoint returns a string.

Errors