14. Discounts

Unlock this lesson

Create a free account, then buy the course to open every lesson.

What you will learn in this lesson

  • What a discount code is and which parts it needs.
  • How to create a 10% code for one product, with an end date and a usage limit.
  • How to read a discount by its ID and find it by its code.
  • How to change a discount with discountCodeBasicUpdate.
  • Which userErrors you get for a used code and wrong dates.

50 minutes Lesson 14 of 25

Everything in Shopify API

  • 25 step-by-step lessons
  • 4 mini projects with solutions
  • A final project for your portfolio
  • Real commands and real output in every lesson
  • Practice task with a solution in each lesson
  • Progress saved to your account