Automatic gebt distribution

api-docs Redoc document (api spec)

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 ID

  • product_category: a string representing the product category

  • product_name: a string representing the product name

  • transaction_value: a number representing the transaction value, with 2 decimal places

  • transaction_rating_score: a number representing the transaction rating score, with 8 decimal places

  • transaction_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 Earth

    • token_ratio: a number representing the ratio of tokens that the user should receive in this transaction

    • user_email: (optional) a string representing the user's email address

    • user_first_name: (optional) a string representing the user's first name

    • user_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