PGecom
  • 🚀Introduction
  • đŸŽ¯Guides
    • Getting authenticated
  • 📚Concepts
    • Sandbox Environment
  • 🧑‍đŸ’ģAPI Endpoint
    • Ecommerce
      • đŸ›ī¸Shop
        • GetShopById
        • CreateShop
      • 👔Product
        • ProductSchema
        • GetProductById
        • GetProductBySlug
        • CreateNewProduct
      • 🛒Checkout
        • CreateCheckoutSession
      • Form
        • GetFormById
      • Invoice
        • GetInvoiceById
    • Wordpress Plugin
    • Chrome Extension
    • GiftCards
      • â„šī¸Gift Card Schema
      • ✅List giftcards
      • â˜‘ī¸Order a gift card
      • â˜‘ī¸Get giftcard
      • â˜‘ī¸Rates
    • Send rewards
      • â„šī¸Rewards Schema
      • â˜‘ī¸Send rewards
    • Withdraw
      • â„šī¸Withdraw Schema
      • â˜‘ī¸Process Withdraw
      • â˜‘ī¸Rates
    • Radar
      • â„šī¸Radar Schema
      • â˜‘ī¸Check for Fraudster
    • Top Up
      • â„šī¸Topup Schema
      • â˜‘ī¸Estimate
      • â˜‘ī¸Send
    • Payment
      • Mon Cash
        • CreateMonCashPayment
        • VerifyMonCashPayment
        • WithdrawToMonCashEstimate
        • WithdrawFundsToMonCash
      • PG Pay
        • ConfigurePGPay
        • CreatePGPayPayment
        • VerifyPGPaymentWithToken
        • VerifyPGPaymentWithOrderId
    • Deprecated
      • Card Holder
        • â„šī¸Card Holder Schema
        • â˜‘ī¸Update
      • Card
        • â„šī¸Card Schema
        • ✅Retrieve a single card
        • ✅List cards
        • â˜‘ī¸Create a card
        • â˜‘ī¸Create Customer
  • 🎓Resources
    • Support
    • Production Access
Powered by GitBook
On this page

Was this helpful?

  1. API Endpoint
  2. Ecommerce
  3. Product

ProductSchema

The Product schema lets you update and create products in a merchant's store. You can use product variants with the Product resource to create or update different versions of the same product.

id - string

The unique identifier of the product


name - string

The name of the product


status - string

The status of the product. There are currently 3 statuses for a product

  • active - visible to the consumer

  • draft - still in construction

  • archived - no longer needed


slug - string

Slug will be automatically generated for you based on the name of the product and can be used later to find products by a given slug


published - boolean

Whether or not you want the product to be published in our marketplace


vendor - string

The name of the shop that owns this product


inventory - number

The number of products that are available for purchase


price - number

The price of this product


comparePrice - number

The discounted price of the product


description - string

The description of the product


productType - string

The type of the product. We currently support 3 types of products

  • physical

  • digital

  • service


costPerItem - number

The cost you purchasing the product


sku - string

The SKU of the product


collections - array

A list of collections that this product belongs to


variants - array

A list of variants available for this product


images - array

A list of images available for this product


categories - array

The list of categories available for this product


createdAt - string

The date the product was created


updatedAt - string

The last time that the product was updated

PreviousProductNextGetProductById

Last updated 5 months ago

Was this helpful?

🧑‍đŸ’ģ
👔