Skip to content

[Bug]: pickup.buy(String, PickupRate) wrong params in POST request #340

Closed
@kiakimov

Description

@kiakimov

Software Version

7.4.3

Language Version

jdk 17

Operating System

mac os

What happened?

  1. Obtain a pickup
  2. Call easyPostClient.pickup.buy(pickup.getId(), pickup.getPickupRates().get(0))
  3. Inside buy method PickupRate is wrapped into the "rate" json field which makes the request not correct. API complains on missed required "carrier" field .

What was expected?

To buy a pickup rate should not be wrapped into the "rate" JSON root object

https://docs.easypost.com/docs/pickups#buy-a-pickup

Sample Code

No response

Relevant logs

No response

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