Software Version
10.6.0
Language Version
3.14.4
Operating System
MacOS
What happened?
- Call
client.scan_form.create as in the examples
I get the error Unable to create batch, one or more parameters were invalid. and upon more digging, it seems the issue is that the structure fed to the EasyPost API is wrong - it looks like {scan_form: {shipments: [...]}} instead of just {shipments: [...]}
What was expected?
A successful API request to generate a SCAN form
Sample Code
client = easypost.EasyPostClient("EASYPOST_API_KEY")
scan_form = client.scan_form.create(
shipments=[
{"id": "shp_..."},
{"id": "shp_..."},
]
)
Relevant logs
Software Version
10.6.0
Language Version
3.14.4
Operating System
MacOS
What happened?
client.scan_form.createas in the examplesI get the error
Unable to create batch, one or more parameters were invalid.and upon more digging, it seems the issue is that the structure fed to the EasyPost API is wrong - it looks like{scan_form: {shipments: [...]}}instead of just{shipments: [...]}What was expected?
A successful API request to generate a SCAN form
Sample Code
Relevant logs