POST
/
events
/
dry-run
curl --request POST \
  --url https://connect.withvayu.com/events/dry-run \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "events": [
    {
      "name": "api_call",
      "timestamp": "2023-09-13T18:25:43.511Z",
      "customerAlias": "customer_12345",
      "ref": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
      "data": {
        "key1": "processing_duration",
        "key2": "api_url"
      }
    }
  ]
}'
{
  "events": [
    {
      "event": {
        "timestamp": "2023-11-07T05:31:56Z",
        "customerAlias": "<string>",
        "accountId": "<string>",
        "data": {},
        "ref": "<string>",
        "name": "<string>"
      },
      "matchedCustomer": "<string>",
      "meterWithValues": [
        {
          "name": "<string>",
          "eventName": "<string>",
          "aggregationMethod": {
            "operator": "Count",
            "field": "<string>",
            "instanceKey": "<string>"
          },
          "filter": {
            "conditions": [
              {
                "criterions": [
                  {
                    "field": "<string>",
                    "operator": "Equals",
                    "value": "<string>"
                  }
                ]
              }
            ]
          },
          "pricing": {
            "pricingModel": "PerUnit",
            "priceConfiguration": {
              "price": 1,
              "chunkSize": 1
            }
          },
          "value": 123,
          "instanceValue": "<any>"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
An array of events following the EventInput schema. This request body should be included in the PUT request to '/events' Up to 1000 events or a total payload max size of 256KB
events
object[]
required

Response

200
application/json
Events with their corresponding meter and customer data.
events
object[]
required