Skip to content

[Bug]: SCAN form create is broken #390

@lindawogulis

Description

@lindawogulis

Software Version

10.6.0

Language Version

3.14.4

Operating System

MacOS

What happened?

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageIssue is being researched

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions