beel_restore_payment_event
Restores a previously discarded payment event, plus every record removed in the same discard action, returning them to the default list.
Instructions
Reverses a previous discard, bringing a payment event back into the default list.
The operation reverses the whole discard operation: the event named in the request and
every event with the same payment identity (see the discard operation) that was discarded
together with it, that is, with exactly the same deleted_at timestamp. Events discarded
in an earlier or later operation are not affected. Idempotent — restoring an event that is
not discarded is a no-op.
Endpoint: POST /v1/companies/{company_id}/payment-connections/{connection_id}/events/{event_id}/restore
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event_id | Yes | Identifier of the payment event, as returned by the list operation. | |
| company_id | Yes | Unique identifier (UUID) of the company the events belong to — its identifier, not its NIF. It is the only source of context: the account that owns it is derived from it, and the `BeeL-Active-Company` header plays no part. A company you do not reach answers `403`, and so does a company that does not exist, so the existence of a company in another account is never disclosed. | |
| connection_id | Yes | Unique identifier (UUID) of the payment connection the operation acts on, as returned by `GET /v1/companies/{company_id}/payment-connections`. A NIF can hold several connections of the same provider, so the provider slug alone does not name one. A connection of another NIF answers `404`, exactly like one that does not exist. | |
| idempotency_key | No | Optional idempotency key for this operation. Omit it and one is derived from the request itself, which makes a blind retry safe but also collapses a SECOND, deliberately identical operation into the first for 24 hours. Set it — to an order id, or anything unique per intended operation — whenever you mean to create something that may look identical to what you just created. |