Skip to content

reward.rejected

POST

Sent for each action that doesn’t earn data, with the reason, so actions uploaded by CSV get the same answer as API calls. It isn’t sent for customers in the comparison group, who were never offered a plan. Also sent when a flagged reward is rejected in review, or a reward lapses because the customer didn’t accept in time. The event carries the action; reward is the reward that was rejected, when there was one.

Aura-Event-Id
required
string

The event’s unique ID. The same event delivered twice has the same ID.

Example

evt_01JAC7T2Q4N8M3B6H6K8P1D5QS
Aura-Event-Type
required
string

Example

reward.delivered
Aura-Timestamp
required
string

When this delivery attempt was signed, in Unix seconds.

Example

1792489320
Aura-Signature
required
string

v1= followed by the lowercase hex HMAC-SHA256 of {Aura-Timestamp}.{raw body}, keyed with your webhook secret. During a secret rotation the header carries two signatures separated by a comma.

Example

v1=8c3e0f2b9e8a41b3c6d0e9f2a7b4c1d8e3f6a9b2c5d8e1f4a7b0c3d6e9f2a5b8
Media typeapplication/json
object
id
required

Same as the Aura-Event-Id header.

string
object
required
string
Allowed value: event
type
required
string
created_at
required
string format: date-time
test
required

true for events from test actions and for test events sent from the dashboard.

boolean
type
required
string
Allowed value: reward.rejected
data
required
object
object
required
object
id
required
string
object
required
string
Allowed value: action
reference
required
string
campaign_id
required
string
action
required
string
customer_id
required
string
phone_number
required
string
occurred_at
required
string format: date-time
received_at
required
string format: date-time
value
object
amount
object
amount
required

Amount in the currency’s minor unit (kobo for NGN).

integer
currency
required

ISO 4217 currency code.

string
/^[A-Z]{3}$/
count
integer
source
string | null
friend
object
customer_id
string
phone_number
string
group
required

The customer’s group, set at random the first time you report them. Don’t show the plan to customers in the comparison group, but keep sending their actions.

string
Allowed values: offer comparison
earned
required

Whether the action earned data under the plan’s rules. It can change once, from true to false, when a flagged reward is rejected in review or the customer doesn’t accept the plan in time.

boolean
reason
required
One of:

Why an action earned no data. New reasons may be added in v1.

comparison_group: the customer is in the comparison group; the action is recorded and nothing is paid. already_rewarded: this period’s reward was already earned. number_already_rewarded: another customer ID on this phone number already earned this reward this period. condition_not_met: the action carried less than the plan’s condition. not_eligible: the plan is only for customers first reported after it started. no_plan: a keep action for a customer whose plan hasn’t started. plan_cancelled: the plan cancelled after a missed period. plan_ended: the customer has held the plan for its full length. too_late: the action arrived after its period closed; it still counts in results. customer_limit_reached and daily_limit_reached: a campaign limit was reached. budget_reached: the campaign’s budget is spent. campaign_paused and campaign_ended: the campaign isn’t live. referral_not_allowed: a self-referral, a friend on the customer’s own number, or a friend who was already a customer. friend_limit_reached: the customer has brought the most friends the plan allows. rejected_in_review: a flagged reward was rejected in review. customer_not_accepted: the customer didn’t accept the plan before the period ended.

string
Allowed values: comparison_group already_rewarded number_already_rewarded condition_not_met not_eligible no_plan plan_cancelled plan_ended too_late customer_limit_reached daily_limit_reached budget_reached campaign_paused campaign_ended referral_not_allowed friend_limit_reached rejected_in_review customer_not_accepted
rewards
required

The rewards this action earned. A referral earns one for the customer and one for the friend.

Array<object>
object
id
required
string
object
required
string
Allowed value: reward
customer_id
required

Who receives it. For a referral, one reward is the customer’s and one is the friend’s.

string
kind
required

plan_delivery: a period’s data. first_action: a one-off reward for starting the plan. referral: a referral reward.

string
Allowed values: plan_delivery first_action referral
amount_gb
required

An amount of mobile data in gigabytes (GB), as set in the plan, to at most two decimal places.

number
multiple of 0.01
status
required

waiting_for_customer: earned, waiting for the customer to accept the plan. flagged: waiting for review. waiting_for_balance: your balance doesn’t cover it; it waits up to 24 hours for a top-up, then fails. pending: its price is held and the delivery is on its way. delivered: the network confirmed it and your balance was charged. failed: not delivered, nothing charged. reversed: the network reversed a delivery and you were refunded. rejected: rejected in review, or lapsed because the customer didn’t accept the plan.

string
Allowed values: waiting_for_customer flagged waiting_for_balance pending delivered failed reversed rejected
plan
required
One of:
object
id
required
string
object
required
string
Allowed value: plan
status
required

not_offered: the customer is in the comparison group. offered: the plan was offered, after its start action or by an offer, and waits for the customer to accept. active: accepted, and this period is kept or still open. at_risk: the warning has gone out and this period’s action isn’t in yet. cancelled: a period ended without its action. ended: the customer held the plan for its full length, or the campaign ended.

string
Allowed values: not_offered offered active at_risk cancelled ended
current_period
required
object
ends_at
required
string format: date-time
kept
required
boolean
test
required

true when sent with a test key.

boolean
metadata
required
object
key
additional properties
string
reward
required
One of:
object
id
required
string
object
required
string
Allowed value: reward
campaign_id
required
string
action_id
required

The action that earned it. null for the first week’s data of a plan started by offer, which accepting earns.

string | null
customer_id
required
string
kind
required

plan_delivery: a period’s data. first_action: a one-off reward for starting the plan. referral: a referral reward.

string
Allowed values: plan_delivery first_action referral
amount_gb
required

An amount of mobile data in gigabytes (GB), as set in the plan, to at most two decimal places.

number
multiple of 0.01
status
required

waiting_for_customer: earned, waiting for the customer to accept the plan. flagged: waiting for review. waiting_for_balance: your balance doesn’t cover it; it waits up to 24 hours for a top-up, then fails. pending: its price is held and the delivery is on its way. delivered: the network confirmed it and your balance was charged. failed: not delivered, nothing charged. reversed: the network reversed a delivery and you were refunded. rejected: rejected in review, or lapsed because the customer didn’t accept the plan.

string
Allowed values: waiting_for_customer flagged waiting_for_balance pending delivered failed reversed rejected
phone_number
required

The number the data goes to, chosen by the customer when they accepted the plan. null until they accept.

string | null
network_id
required

The number’s network, found by a number lookup before delivery.

string | null
period
required

The plan period this delivery is for. null for referral and first-action rewards.

object
starts_at
required
string format: date-time
ends_at
required
string format: date-time
price
required
One of:
object
amount
required

Amount in the currency’s minor unit (kobo for NGN).

integer
currency
required

ISO 4217 currency code.

string
/^[A-Z]{3}$/
created_at
required
string format: date-time
resolve_by
required

Set when delivery starts. The delivery is final by then, as for purchases.

string | null format: date-time
delivered_at
required
string | null format: date-time
failure
required
object
code
required

Why a delivery failed. The first five match the Data Reselling API. New codes may be added in v1.

string
Allowed values: network_rejected number_not_eligible bundle_unavailable network_timeout internal_error insufficient_balance
message
required
string
reversal
required
object
reversed_at
required
string format: date-time
reason
required
string
rejection

Present when the reward was rejected.

object
reason
required
string
Allowed values: rejected_in_review customer_not_accepted
note

The reviewer’s note, if any.

string | null
test
required
boolean

Return any 2xx status within 10 seconds to acknowledge the event.