post https://api.dev.coinfx.network/v1/reward
Create a reward for a specific CFX Identity.
Rewards are issued to a recipient through their phone number. Consequently Rewards can be issued to a recipient Identity prior to them registering within the CFX Network, which allows the creation of a Reward prior to recipient registration.
Rewards are managed within the CFX Platform as a ledger mechanism aligning with double entry account priciples. The issuance of a Reward to a recipient Identity results two matching entries:
- A
CREDIT
entry of theamount
against the recipient Identity account - A
DEBIT
entry of theamount
against the reward issuer
The ledger allows the system to flexibily manage the growing Reward assets and liabilities for recipients and our CFX partners.
When creating a reward the body must contain:
- The
phone
of the recipient. - An
idempotencyKey
for the request, which is used to filter out duplicate reward issuances. Each invocation of the Create Reward endpoint should nominate a unique idempotency key. - A
category
for the reward, which is a free text field used to support client reporting and reconciliation. - A
transactionType
which indicates whether this is aCREDIT
(add to reward balance) orDEBIT
(reduce reward balance). Typically these will beCREDIT
transactions. - A free text
note
to be associated with the Reward instance.