FinCEN Version: 0.3.6
What were you trying to do?
- learn the repo by running through the docs
What did you expect to see?
from the docs:
Reformat the file with generated attributes:
curl -X POST --data-binary "@./data/samples/ctr_batch.txt" http://localhost:8088/reformat
<EFilingBatchXML ActivityCount="1" TotalAmount="47000" PartyCount="6" SeqNum="1"
xsi:schemaLocation="www.fincen.gov/base https://www.fincen.gov/base https://www.fincen.gov/base/EFL_8300XBatchSchema.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:fc2="www.fincen.gov/base">
<Activity SeqNum="1">
What did you see?
- no text file in data/samples
- even when i supplied my own dummy data, i still had to change the localhost from
8088 to 8206
How can we reproduce the problem?
- run the commands in the docs
- run my python code that seems to get a valid response
import requests
import json
import io
url = "http://localhost:8206/reformat"
data = {
"SeqNum": 123,
"StatusCode": "OK",
"TotalAmount": 100.0,
"PartyCount": 1,
"ActivityCount": 1,
"AccountCount": 1,
"ActivityAttachmentCount": 1,
"AttachmentCount": 1,
"JointlyOwnedOwnerCount": 1,
"NoFIOwnerCount": 1,
"ConsolidatedOwnerCount": 1,
"FormTypeCode": "FTC",
"Activity": [],
"EFilingSubmissionXML": {"SubmissionType": "ST", "SubmissionDate": "2022-01-01"}
}
data_json = json.dumps(data)
data_file = io.StringIO(data_json)
files = { 'input': ('data.json', data_file, 'application/json') }
response = requests.post(url, files=files)
print(response.text)
<EFilingBatchXML SeqNum="123" StatusCode="OK" TotalAmount="100" PartyCount="1" ActivityCount="1" AccountCount="1" ActivityAttachmentCount="1" AttachmentCount="1" JointlyOwnedOwnerCount="1" NoFIOwnerCount="1" ConsolidatedOwnerCount="1"><fc2:FormTypeCode>FTC</fc2:FormTypeCode><EFilingSubmissionXML SeqNum="0"></EFilingSubmissionXML></EFilingBatchXML>
(fincen-py3.10) honey@honeyair fincen-python %
FinCEN Version:
0.3.6What were you trying to do?
What did you expect to see?
from the docs:
Reformat the file with generated attributes:
curl -X POST --data-binary "@./data/samples/ctr_batch.txt" http://localhost:8088/reformatWhat did you see?
8088to8206How can we reproduce the problem?