Skip to content
Events

Create Eventexperimental

POST/api/accounts/{accountId}/events

This endpoint allows you to create an Event.

Path parameters

  • accountIdrequired string
    The Account id.

Request body

  • dataoptional object
    An object containing any relevant metadata.
  • idempotencyKeyrequired string
    Client-supplied identifier that prevents double creation.
  • typerequired string
    The type of Event.

Responses

Request
curl -X POST https://service.centrapay.com/api/accounts/Jaim1Cu1Q55uooxSens6yk/events \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"data": {
"userId": "b657195e-dc2f-11ea-8566-e7710d592c99-123"
},
"idempotencyKey": "login-de32dd90-b46c-11ea-93c3-83a333b86e7b",
"type": "user-login"
}'