Buy

Notifies when a Purchase of a Creator Coin event happens.

Example Event payload for a non creator approved webhook. Notice that the username is null because in this case the user has chosen to NOT make their username public.

{
"event":"BUY",
"coinKind":"KSK",
"data":
{
"transactionId":"5ec31129-f5e6-4c25-9188-9a0401183d3d",
"username":null,
"amountOfCoin":75.30323,
"costInUSCents":10450,
"createdDate":"2021-02-07T15:12:54.880Z",
"completedDate":null
}
}

Example Event payload for a creator approved webhook for the same event as above. Notice how the username is now shown along with the showUsername flag indicating the user chose to make their username NOT public. If the application is only going to be seen and used by the creator themselves, it is permissible to show the username all the time. If the application will be seen by the public, it must respect the showUsername flag and hide/display the username accordingly.

{
"event":"BUY",
"coinKind":"KSK",
"data":
{
"transactionId":"5ec31129-f5e6-4c25-9188-9a0401183d3d",
"username":"iamausername",
"amountOfCoin":75.30323,
"costInUSCents":10450,
"createdDate":"2021-02-07T15:12:54.880Z",
"completedDate":null,
"userId":"58b314f4-cc51-11ea-8bc5-72318caf4d1a",
"showUsername":false
}
}