v1
latestOpenAPI 3.0.22026-07-24800528.1 KBList all rewards
Returns a list of your rewards. The rewards are returned sorted by creation date by default, with the most recent rewards appearing first.
Query parameters
Company key in which the results are filtered by.
The payment status of the rewards
Applies a maximum epoch timestamp (ms) filter to the response created_at.
Applies a minimum epoch timestamp (ms) filter to the response created_at.
The field in which the results are ordered by. A - prefix denotes that the results are in descending order.
Group key in which the results are filtered by
Customer key in which the results are filtered by
Invoice key in which the results are filtered by
The status of the rewards
Flag if drip rewards should be included into the results
Flag to hide rewards that have been archived
Flag if drip rewards returned have a line_id (invoice) attached or not
Free keywords that will filter on the followingReward key, Customer name, Partner first name, Partner last name, Partner email, Partner key
Text that the description must contain
Flag the returned results should have distinct descriptions or not
Flag the returned results should have distinct decline reasons or not
Text that the decline_reason must contain
Flag if the returned results should have only pending and approved rewards which do not have an associated payment line.
The currency of the rewards
A limit on the number of items to be returned. Limits can range between 1 and 250, and the default is 10.
A cursor for use in pagination, starting_after takes in an item key and the subsequent call will return the following items in the list. This is mutually exclusive with ending_before.
A cursor for use in pagination, ending_before takes in an item key and the subsequent call will return the prior items in the list. This is mutually exclusive with starting_after.
Response
Returns a list of your rewards. The rewards are returned sorted by creation date by default, with the most recent rewards appearing first.
Example response
{
"data": {
"items": [
{
"created_at": 1574181282399,
"key": "co_a80cb515fe",
"updated_at": 1574181282399,
"amount": 1000,
"currency": "USD",
"decline_reason": "Invalid reward",
"description": "$30 earned for every transaction made by each customer",
"reward_status": "pending",
"company": {
"id": 1234567,
"key": "comp_1234567",
"name": "Company"
},
"customer": {
"created_at": 1592944078600,
"email": "cust@examle.com",
"key": "cus_1h1QBVUg03Ij69",
"name": "Adrian",
"sub_ids": [
"youtube"
],
"updated_at": 1592944078600
},
"partnership_key": "part_1234567",
"payment_date": 1592944078600,
"payment_status": "pending",
"payout_id": 1234567,
"source": {
"key": "tran_b0qwaE3cCldjci",
"type": "transaction"
},
"transaction": {
"amount": 100,
"amount_usd": 50,
"category_key": "subscription",
"created_at": 1592944078600,
"currency": "USD",
"product_key": "monthly_plan",
"updated_at": 1592944078600
}
}
]
}
}