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
CREDITentry of theamountagainst the recipient Identity account - A
DEBITentry of theamountagainst 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
phoneof the recipient. - An
idempotencyKeyfor 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
categoryfor the reward, which is a free text field used to support client reporting and reconciliation. - A
transactionTypewhich indicates whether this is aCREDIT(add to reward balance) orDEBIT(reduce reward balance). Typically these will beCREDITtransactions. - A free text
noteto be associated with the Reward instance.
