Skip to content

Creating shipment with claimService does not add tracking links #2042

@macder

Description

@macder

Bug report

Describe the bug

When creating a shipment via claimService.createShipment it does not add tracking links to the fulfillment. The tracking_links property is missing on the fulfillment object.

It does however mark the shipment as shipped, just no tracking links

System information

Medusa version (including plugins): 1.3.5
Node.js version: 17.1.0
Database: postgres:10.4
Operating system: Ubuntu 18.04
Browser (if relevant):

Steps to reproduce the behavior

  1. Create a claim for an order
  2. Create a fulfillment for the claim order
  3. Create a shipment for the claim fulfillment, eg:
const test = await claimService.createShipment(claim_id, ful_id, [
    {
      tracking_number: "track",
      url: "https://www.usps.com/tracker/123",
    },
  ])

Then observe the fulfillment object, notice there is no tracking_links prop

Expected behavior

Tracking links should be saved to the fulfillment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions