diff --git a/api/account-memberships/index.html b/api/account-memberships/index.html index ff64d8029..1641be447 100644 --- a/api/account-memberships/index.html +++ b/api/account-memberships/index.html @@ -19,7 +19,7 @@

Events

An event is a record of a user action or outcome. Centrapay performs various tasks in response to events.

+

Events

An event is a record of a user action or outcome. Centrapay performs various tasks in response to events.


POST/api/accounts/{accountId}/events

This endpoint allows you to create an Event   API .

Attributes

  • type

    stringrequired

    The type of Event.

  • idempotencyKey

    stringrequired

    Client-supplied identifier that prevents double creation.

  • data

    string

    An object with one or more string fields containing any relevant metadata.

Errors

  • type

    stringrequired

    The type of Event.

  • idempotencyKey

    stringrequired

    Client-supplied identifier that prevents double creation.

  • data

    string

    An object containing any relevant metadata.

Errors

  • EVENT_ALREADY_EXISTS

    403

    An Event with this idempotencyKey has already been created for the account.

Request
POST/api/accounts/Jaim1Cu1Q55uooxSens6yk/events
curl -X POST \
  https://service.centrapay.com/api/accounts/Jaim1Cu1Q55uooxSens6yk/events \
diff --git a/api/external-assets/index.html b/api/external-assets/index.html
index eaec5dd03..9efe82fc3 100644
--- a/api/external-assets/index.html
+++ b/api/external-assets/index.html
@@ -19,7 +19,7 @@