curl -X POST "$FRAYME_API/cases" \
-H "X-API-Key: $FRAYME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workflowId": "wf-docs-onboarding",
"type": "Transaction",
"idempotencyKey": "order-9f8e7d6c",
"subject": {
"displayName": "Beatriz Nogueira",
"transaction": {
"amount": 50000, "currency": "USD", "direction": "outbound",
"method": "fiat", "type": "wire", "externalTransactionId": "txn-20260916-0001",
"parties": [
{ "role": "sender", "displayName": "Beatriz Nogueira",
"identifiers": [ { "type": "external_customer_id", "value": "cust-beatriz-nogueira" },
{ "type": "email", "value": "beatriz.nogueira@example.com" } ] },
{ "role": "receiver", "identifiers": [ { "type": "pix_key", "value": "beneficiary-001" } ] }
]
}
},
"payload": { "document_number": "CPF-529.982.247-25", "document_type": "cpf", "country_code": "BR", "amount": 50000 },
"metadata": { "source": "checkout-service" }
}'