This document explains the API endpoint for Send Points

API Endpoint:

Method: POST

Endpoint: https://canvas.xoxoday.com/chef/v1/oauth/api

Request Body

{
    "query": "storesAdmin.mutation.sendBalance",
    "tag": "storeAdmin",
    "variables": {
        "recipients_data": {
            "sender_email": "[email protected]",
            "recipients": [
                {
                    "to_name": "name1",
                    "to_email": "[email protected]",
                    "amount": "1",
                    "citation": "reason 1"
                }
            ]
        }
    }
}

Response Success

{
  "data": {
    "sendBalance": {
      "error": false,
      "message": "points sent"
    }
  }
}

Response Failure

{
    "data": {
        "user_balance": {
            "success": 0,
            "message": "missing user's details",
            "data": null
        }
    }
}
Language
Credentials
OAuth2
Click Try It! to start a request and see the response here!