Case de funcionalidade VTEX IO: PBM Extrafarma

Feature Case VTEX IO: PBM Extrafarma

Benefit programs are increasingly used in e-commerce to build customer loyalty to a brand and when thinking about inserting this type of strategy in a business you must think mainly about the scalability and adherence of your target audience.

It is common in offline retail pharmacies to be offered special discounts by the manufacturing industry. Online it is also possible to give this type of discount through integration with benefit programs of partners, to make available discounts on selected products for the end customer.

It was through the need to integrate the benefits program that Extrafarma, a national pharmacy chain sought our assistance to develop a functionality that would enable the use of its points program in e-commerce.

About the need met by the functionality

Extrafarma's PBM was developed to integrate with the benefits program available in its physical stores.

The discount option appears on the pages of products that participate in the program, and shows the customer the discounts he can get by registering in the program. The registration can be done through some components, if you already have an account linked to your CPF in the program.

Once you agree to the terms and the customer is signed up, he can proceed with the purchase and have the discount applied directly at checkout.

About the development

This functionality was developed by the Codeby team, which built a purchase flow and integrated external systems with the VTEX IO platform. The applications developed serve as the basis for part of the store's Front-end and also the Back-end responsible for reading the orders on the platform to validate the discounts only on PBM products.

In addition, it was necessary to create a Lambda Function in conjunction with Amazon's Dynamo DB to provide an API to query the products that are part of the PBM, since they are dynamic lists that change every day, this was the best way to keep this part of the program up to date.


With this application, Extrafarma expects to be able to integrate its benefits program into e-commerce once and for all, delivering a more unified and complete experience for the customer, as well as increasing brand loyalty through the registrations to obtain discounts, positively impacting the increase in sales volume and customer retention.

About Codeby

We are specialized in e-commerce solutions, focusing on performance, usability improvement to deliver to our customers a significant increase in sales conversions with full transparency and agility.

With over 6 years of experience, we have evolved and transformed the reality of digital businesses of major brands and companies in the market, contributing with customized technological solutions for virtual store environments. MVP Partner in the Vtex quadrant for 3 years.

Want to know how we can help you? Contact our experts and learn about the conditions to evolve your project.

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.

Qual o próximo passo? Vamos evoluir o seu e-commerce hoje.

Transform the shopping experience of digital channels!
Our team of experts awaits your contact to understand how we can make your business evolve today with the best strategies and technologies on the market.

Talk to an expert

A Codeby precisa das informações de contato que você nos fornece para contatá-lo sobre nossos produtos e serviços. Você pode cancelar a assinatura dessas comunicações a qualquer momento. Para obter informações sobre como cancelar a inscrição, bem como nossas práticas de privacidade e compromisso de proteger sua privacidade, consulte nossa Política de Privacidade.


  • Vtex Solutions
  • Digital Commerce
  • Digital Marketing
  • Digital Transformation
  • Data Transformation

About us

  • We are a Tech
  • We are a Team
  • We are a Keyrus Company
  • Carreira
  • Parceiros


  • Nossos Cases


  • Blog
  • Ebooks

Get in touch

  • Talk to an expert

Rua Bandeira Paulista, 275 - 1º Andar | ECOMFY TECNOLOGIA E DESENVOLVIMENTO LTDA | CNPJ 30.084.751/0001-02
© 2023, Codeby | Technology for Business Powered by Shopify

Privacy Policy