List 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.
Request
- Base URLhttps://api.partnerstack.com/api
- URLhttps://api.partnerstack.com/api/v2/rewards
- AuthHTTP bearer
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.
Reward key in which the results are filtered by. When provided, returns only the matching reward (or an empty list if not found).
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
PartnerStack internal customer key (cus_*) in which the results are filtered by
Customer external 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
Filter rewards by how they were created. Accepts a comma-separated list of values: api_key, content_order, drip, import, manual, offer_trigger, mdf.
Drip key (drip_*) in which the results are filtered by. Returns only rewards generated from the given drip schedule.
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,
"created_by": "user_9ebOwdTywVFOFr",
"created_by_name": "Jane Smith",
"creation_source": "manual",
"currency": "USD",
"decline_reason": "Invalid reward",
"description": "$30 earned for every transaction made by each customer",
"drip": {
"created_at": 1622733671000,
"key": "drip_9ebOwdTywVFOFr"
},
"reward_status": "pending",
"company": {
"id": 1234567,
"key": "comp_1234567",
"name": "Company"
},
"customer": {
"created_at": 1592944078600,
"email": "cust@examle.com",
"key": "cus_1h1QBVUg03Ij69",
"name": "Adrian",
"shared_id": "twitter",
"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
}
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.