Gateway Configuration Activated
v1.0.0eventsA gateway configuration of a recipient became active, born active or activated once the vendor returned the subaccount: the configuration with its recipient, capture channel and vendor. Recorded by cna-pay in its outbox in the transaction of the activation. No consumer yet.
1{
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "title": "GatewayConfigurationActivated payload",
4 "type": "object",
5 "additionalProperties": false,
6 "properties": {
7 "eventId": {
8 "type": "string",
9 "format": "uuid",
10 "description": "Unique, immutable id of the event (events.Fact), the same in every resend of it. A consumer drops an event whose eventId it already applied."
11 },
12 "objectVersion": {
13 "type": "integer",
14 "minimum": 1,
15 "description": "Version of the gateway configuration after the change the event reports, from 1 (events.Fact): a stream of its own, apart from the version of the recipient. A consumer drops a fact older than the version it holds."
16 },
17 "id": {
18 "type": "string",
19 "format": "uuid",
20 "description": "Id of the gateway configuration in cna-pay. Kafka message key."
21 },
22 "recipientId": {
23 "type": "string",
24 "format": "uuid",
25 "description": "Id of the recipient the configuration belongs to, the id of the Recipient topic."
26 },
27 "captureChannel": {
28 "type": "string",
29 "enum": ["ONLINE", "TERMINAL"],
30 "description": "Capture channel the configuration serves: ONLINE (remote charge) or TERMINAL (payment terminal, not configured in this delivery). A recipient has at most one ACTIVE configuration per channel (RN-RCB-080)."
31 },
32 "vendor": {
33 "type": "string",
34 "pattern": "^[a-z][a-z0-9_]{0,31}$",
35 "description": "Stable name of the payment vendor of the subaccount the configuration points to, lowercase: pagarme, the only vendor today."
36 },
37 "state": {
38 "type": "string",
39 "enum": ["IN_VALIDATION", "ACTIVE", "CLOSED"],
40 "description": "State of the configuration after the change (cna-pay gateway configuration state): always ACTIVE in this event."
41 },
42 "activatedAt": {
43 "type": "string",
44 "format": "date-time",
45 "description": "When the configuration became ACTIVE: ISO 8601 in UTC with milliseconds (2026-11-18T12:00:00.000Z)."
46 }
47 },
48 "required": [
49 "eventId",
50 "objectVersion",
51 "id",
52 "recipientId",
53 "captureChannel",
54 "vendor",
55 "state",
56 "activatedAt"
57 ]
58}
59Details
- Format
- JSON Schema
- Resource
- events
- Filename
- schema.json