Automatic gebt distribution
To use this endpoint, you will need to send an HTTP POST request to the URL /automatic-gebt-distribution. The request body should be in JSON format and should contain the following fields:
transaction_date: a string representing the date of the transaction in the format "dd-mm-yyyy"ganga_txn: a string representing the Ganga transaction IDproduct_category: a string representing the product categoryproduct_name: a string representing the product nametransaction_value: a number representing the transaction value, with 2 decimal placestransaction_rating_score: a number representing the transaction rating score, with 8 decimal placestransaction_users: an array of objects representing the users involved in the transaction. Each object should have the following fields:user_id: a string representing the user's shared ID between Ganga and Green Earthtoken_ratio: a number representing the ratio of tokens that the user should receive in this transactionuser_email: (optional) a string representing the user's email addressuser_first_name: (optional) a string representing the user's first nameuser_last_name: (optional) a string representing the user's last name
Here's an example of what the request body might look like:
```postman_json
{
"transaction_date": "dd-mm-yyyy",
"ganga_txn": "ABCD123456789123",
"product_category": "ABCD1234",
"product_name": "ABCDEFGHIJKL1234",
"transaction_value": 2400,
"transaction_rating_score": 0.58650000,
"transaction_users": [
{
"user_id": "1234123412341254",
"user_email": "[email protected]",
"token_ratio": 0.4
},
{
"user_id": "1234123412341235",
"user_email": "[email protected]",
"token_ratio": 0.4
},
{
"user_id": "1234123412341237",
"user_email": "[email protected]",
"token_ratio": 0.1
},
{
"user_id": "1234123412341239",
"user_email": "[email protected]",
"token_ratio": 0.1
}
]
}
```Last updated