Skip to content

[21402] feat(shopify): add Discount Code actions#21428

Merged
ashwins01 merged 6 commits into
masterfrom
issue-21402-shopify
Jul 24, 2026
Merged

[21402] feat(shopify): add Discount Code actions#21428
ashwins01 merged 6 commits into
masterfrom
issue-21402-shopify

Conversation

@ashwins01

@ashwins01 ashwins01 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #21402
Adds six Shopify actions for working with discount codes:

  • Get Discount Code
  • Update Discount Code
  • Delete Discount Code
  • Create Discount Codes in Bulk
  • List Discount Codes
  • List Price Rules

Checklist

Please check the following items before your PR can be reviewed:

Versioning

  • All components updated in this PR had their version updated (0.0.1 for new ones)
  • The app updated in this PR had its package.json's version updated

New app

If this is a new app, please submit an app integration request - the PR will only be reviewed after the app is integrated.

  • The app updated in this PR is already integrated

CodeRabbit review

After the PR is opened, and if new changes are pushed, CodeRabbit will automatically review it. Do not 'mark as resolved' CodeRabbit's comments, but reply to them instead, whether you agree (and update the PR accordingly) or disagree.

  • I have addressed or acknowledged all of CodeRabbit's review comments

Summary by CodeRabbit

  • New Features

    • Added actions to create discount codes in bulk, retrieve, update, delete, and list discount codes.
    • Added an action to list Shopify price rules.
    • Added support for discount code and price rule operations, including configurable result limits.
  • Chores

    • Updated Shopify component and action metadata versions.
    • Updated Shopify event source metadata versions.

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
pipedream-docs-redirect-do-not-edit Ignored Ignored Jul 24, 2026 6:51am

Request Review

@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: f8fac72e-c798-4f3e-8c18-2935108be4f9

📥 Commits

Reviewing files that changed from the base of the PR and between e71e7d4 and 2232c29.

📒 Files selected for processing (66)
  • components/shopify/actions/add-product-to-custom-collection/add-product-to-custom-collection.mjs
  • components/shopify/actions/add-tags/add-tags.mjs
  • components/shopify/actions/bulk-import/bulk-import.mjs
  • components/shopify/actions/cancel-fulfillment-order/cancel-fulfillment-order.mjs
  • components/shopify/actions/cancel-fulfillment/cancel-fulfillment.mjs
  • components/shopify/actions/cancel-order/cancel-order.mjs
  • components/shopify/actions/create-article/create-article.mjs
  • components/shopify/actions/create-blog/create-blog.mjs
  • components/shopify/actions/create-custom-collection/create-custom-collection.mjs
  • components/shopify/actions/create-discount-codes-batch/create-discount-codes-batch.mjs
  • components/shopify/actions/create-gift-card/create-gift-card.mjs
  • components/shopify/actions/create-metafield/create-metafield.mjs
  • components/shopify/actions/create-metaobject/create-metaobject.mjs
  • components/shopify/actions/create-order/create-order.mjs
  • components/shopify/actions/create-page/create-page.mjs
  • components/shopify/actions/create-product-variant/create-product-variant.mjs
  • components/shopify/actions/create-product/create-product.mjs
  • components/shopify/actions/create-refund/create-refund.mjs
  • components/shopify/actions/create-return/create-return.mjs
  • components/shopify/actions/create-smart-collection/create-smart-collection.mjs
  • components/shopify/actions/delete-article/delete-article.mjs
  • components/shopify/actions/delete-blog/delete-blog.mjs
  • components/shopify/actions/delete-discount-code/delete-discount-code.mjs
  • components/shopify/actions/delete-metafield/delete-metafield.mjs
  • components/shopify/actions/delete-page/delete-page.mjs
  • components/shopify/actions/get-articles/get-articles.mjs
  • components/shopify/actions/get-assigned-fulfillment-orders/get-assigned-fulfillment-orders.mjs
  • components/shopify/actions/get-customer/get-customer.mjs
  • components/shopify/actions/get-customers/get-customers.mjs
  • components/shopify/actions/get-discount-code/get-discount-code.mjs
  • components/shopify/actions/get-draft-order/get-draft-order.mjs
  • components/shopify/actions/get-draft-orders/get-draft-orders.mjs
  • components/shopify/actions/get-fulfillment-order/get-fulfillment-order.mjs
  • components/shopify/actions/get-fulfillment-orders/get-fulfillment-orders.mjs
  • components/shopify/actions/get-fulfillment/get-fulfillment.mjs
  • components/shopify/actions/get-metafields/get-metafields.mjs
  • components/shopify/actions/get-metaobjects/get-metaobjects.mjs
  • components/shopify/actions/get-pages/get-pages.mjs
  • components/shopify/actions/hold-fulfillment-order/hold-fulfillment-order.mjs
  • components/shopify/actions/list-discount-codes/list-discount-codes.mjs
  • components/shopify/actions/list-price-rules/list-price-rules.mjs
  • components/shopify/actions/refund-return/refund-return.mjs
  • components/shopify/actions/search-custom-collection-by-name/search-custom-collection-by-name.mjs
  • components/shopify/actions/search-orders/search-orders.mjs
  • components/shopify/actions/search-product-variant/search-product-variant.mjs
  • components/shopify/actions/search-products/search-products.mjs
  • components/shopify/actions/send-order-invoice/send-order-invoice.mjs
  • components/shopify/actions/submit-cancellation-request/submit-cancellation-request.mjs
  • components/shopify/actions/update-article/update-article.mjs
  • components/shopify/actions/update-discount-code/update-discount-code.mjs
  • components/shopify/actions/update-inventory-level/update-inventory-level.mjs
  • components/shopify/actions/update-metafield/update-metafield.mjs
  • components/shopify/actions/update-metaobject/update-metaobject.mjs
  • components/shopify/actions/update-order/update-order.mjs
  • components/shopify/actions/update-page/update-page.mjs
  • components/shopify/actions/update-product-variant/update-product-variant.mjs
  • components/shopify/actions/update-product/update-product.mjs
  • components/shopify/package.json
  • components/shopify/shopify.app.mjs
  • components/shopify/sources/collection-updated/collection-updated.mjs
  • components/shopify/sources/customer-data-request/customer-data-request.mjs
  • components/shopify/sources/new-abandoned-cart/new-abandoned-cart.mjs
  • components/shopify/sources/new-article/new-article.mjs
  • components/shopify/sources/new-event-emitted/new-event-emitted.mjs
  • components/shopify/sources/new-page/new-page.mjs
  • components/shopify/sources/new-product-created/new-product-created.mjs

📝 Walkthrough

Walkthrough

Shopify adds discount-code and price-rule actions, app methods, validation, and pagination support. Existing Shopify action and source versions are incremented, and the package version changes from 0.11.1 to 0.12.0.

Changes

Shopify discount-code integration

Layer / File(s) Summary
Discount-code API methods and schemas
components/shopify/shopify.app.mjs
Adds discount-code identifiers, an optional limit, discount-code CRUD methods, batch creation, and paginated price-rule and discount-code listing.
Discount-code action entry points
components/shopify/actions/{create-discount-codes-batch,delete-discount-code,get-discount-code,list-discount-codes,list-price-rules,update-discount-code}/*
Adds actions for discount-code retrieval, updating, deletion, listing, price-rule listing, and batch creation, including input validation and execution summaries.
Shopify component version updates
components/shopify/actions/*, components/shopify/sources/*, components/shopify/package.json
Increments existing action and source metadata versions and updates the Shopify package version to 0.12.0.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Action
  participant ShopifyApp
  participant ShopifyAPI
  Action->>ShopifyApp: submit discount-code operation
  ShopifyApp->>ShopifyAPI: call REST endpoint
  ShopifyAPI-->>ShopifyApp: return response or paginated results
  ShopifyApp-->>Action: return response and summary
Loading

Possibly related PRs

Suggested labels: javascript

Suggested reviewers: jcortes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately describes the main change: adding Shopify discount code actions.
Description check ✅ Passed The description matches the template and clearly summarizes the six new actions, with the checklist mostly filled out.
Linked Issues check ✅ Passed The PR implements the requested get, update, delete, and batch-create discount code actions from #21402.
Out of Scope Changes check ✅ Passed The extra list actions and version bumps align with the PR objectives and supporting Shopify app updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue-21402-shopify

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ashwins01

Copy link
Copy Markdown
Contributor Author

QA passed.

@ashwins01
ashwins01 merged commit e409d41 into master Jul 24, 2026
9 checks passed
@ashwins01
ashwins01 deleted the issue-21402-shopify branch July 24, 2026 06:51
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.

[ACTION] Add actions for Shopify Discount Code REST endpoints (get, update, delete, batch create)

2 participants