Skip to main content
POST
Create SME electronic-money movement

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Idempotency
string
required

Idempotency key. Required on every mutation.

X-TTL
string

Idempotency key TTL in seconds.

Body

application/json
amount
string
required

Movement amount as a decimal-reais string, forwarded verbatim into the SME submit — Lerian SPB performs NO arithmetic on it. Canonical form only: exactly two decimal places and no leading integer zeros — the single spelling the durable column stores; anything else is refused at the door with 422.

Pattern: ^(0|[1-9][0-9]*)\.[0-9]{2}$
Example:

"1500.25"

kind
enum<string>
required

Operator-facing movement kind. deposit funds an IEME's conta correspondente a moeda eletrônica (CCME) from Reservas Bancárias / Conta de Liquidação (wire SME0001); withdrawal recalls funds out of the CCME (SME0002); return gives back an entry received in error (SME0004).

Available options:
deposit,
withdrawal,
return
Example:

"deposit"

counterpartyISPB
string

The other party's ISPB. On a deposit it is the OPTIONAL ISPBIEME whose CCME is credited (empty is the own-CCME deposit); on a return it is the REQUIRED credited IEME being paid back. A withdrawal names its credited FI inside creditedAccount instead, so supplying one there is refused.

Pattern: ^[0-9A-Z]{8}$
Example:

"00038166"

creditedAccount
object

Withdrawal-only credited Reservas Bancárias account (all four children required when the group is present). Absent is the own-account withdrawal. Supplying it on a deposit or return is refused.

description
string

Return-only free-text history (Hist). SME0001 and SME0002 declare no such element, so supplying it there is refused.

Example:

"devolucao lancamento indevido"

originalControlNumber
string

Return-only: the BACEN STR control number (NumCtrlSTROr) of the entry this return reverses. Required on a return; refused on a deposit or withdrawal.

Example:

"20260619000001"

Response

Accepted

correlationId
string
required

Request-scoped correlation identifier echoing X-Request-ID, for pivoting from response to trace.

Example:

"req-7a3f9c2e"

operationId
string<uuid>
required

Server-assigned operation UUID identifying the accepted SME movement.

Example:

"7c8b3a2e-9f1d-4a55-9b8e-1e1234567890"

status
enum<string>
required

Projection lifecycle status; PENDING on accept (awaiting the STR R-leg settlement confirmation).

Available options:
PENDING,
SETTLED,
REJECTED
Example:

"PENDING"

wireCode
enum<string>
required

SME wire code derived server-side from the kind: deposit=SME0001, withdrawal=SME0002, return=SME0004.

Available options:
SME0001,
SME0002,
SME0004
Example:

"SME0001"