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:

Last updated