Skip to content

Approve Cash Out

Approves a previously created PIX transfer. Used in the two-step flow (create + approve), where the transfer awaits explicit approval before being sent to SPI.

Endpoint

POST /api/v2/external/pix/cash-out/approve

Headers

HeaderTypeRequiredDescription
AuthorizationStringYesBearer {access_token}
Content-TypeStringYesapplication/json
hmacStringYesHMAC-SHA512 signature of the body (hex)

Request Body

FieldTypeRequiredDescription
transaction_idStringYesTransaction ID returned when creating the cash-out

Approval flow

This endpoint should only be called for transactions with pending_approval status. Transactions that have already been approved or processed will return an error.

Example

bash
curl -X POST https://api.owem.com.br/api/v2/external/pix/cash-out/approve \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "hmac: $HMAC" \
  -d '{
    "transaction_id": "PIXOUT20260309a1b2c3d4e5f6"
  }'

Success Response — 200

json
{
  "worked": true,
  "transaction_id": "PIXOUT20260309a1b2c3d4e5f6",
  "status": "processing",
  "detail": "Transaction approved and sent for processing"
}
FieldTypeDescription
workedBooleantrue indicates the approval was accepted
transaction_idStringApproved transaction identifier
statusStringNew status: processing
detailStringDescriptive message

Error Response — 404

json
{
  "worked": false,
  "detail": "Transaction not found"
}

Error Response — 422

json
{
  "worked": false,
  "detail": "Transaction has already been processed"
}

Create + Approve Flow

1. POST /api/v2/external/pix/cash-out      → status: pending_approval
2. POST /api/v2/external/pix/cash-out/approve → status: processing
3. Webhook or query                          → status: completed / failed

When to use the approval flow

The two-step flow allows you to validate the transaction internally (for example, with compliance rules or limits) before authorizing submission to SPI. If your operation does not require manual approval, the cash-out by key or EMV already sends directly for processing.

Owem Pay Instituição de Pagamento — ISPB 37839059