POST
/
credits
/
grant
curl --request POST \
  --url https://connect.withvayu.com/credits/grant \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "creditAmount": 123,
  "customerId": "<string>"
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
creditAmount
number
required

The amount of credits to be granted to the user.

customerId
string
required

The ID of the customer to whom the credits will be granted.

Response

200
_mintlify/placeholder

RequestSuccess