Skip to content

Fix: Add customer email for fulfillment providers #12577

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Vallabh-Mahanta
Copy link
Contributor

@Vallabh-Mahanta Vallabh-Mahanta commented May 22, 2025

Fix: Adding customer email for fulfillment providers _ Resolves #12093

The Problem

When shipping providers need to send tracking updates to customers, they need the customer's email address. Currently, when our system passes order information to fulfillment providers, the email address is missing, causing providers to fail or be unable to send notifications.

What I Fixed

I updated both the regular fulfillment and return fulfillment processes to:

  1. Check if an order is missing the customer's email
  2. If missing, fetch the email from our database
  3. Include the email in the data sent to shipping providers

This ensures providers can properly communicate with customers about their shipments.

Testing

I added tests that verify:

  • Regular fulfillment properly includes customer email
  • Return fulfillment properly includes customer email

This fix is backward compatible and requires no changes from users.

Copy link

changeset-bot bot commented May 22, 2025

⚠️ No Changeset found

Latest commit: d4c2814

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented May 22, 2025

@renoschubert is attempting to deploy a commit to the medusajs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: createFulfillment order object doesn't include order/customer email
1 participant