Maginium
Admin Api
Admin Api
  • About
  • API reference
    • CustomerGroups
      • Permissions
      • Default
      • Search
    • Customers
      • Confirm
      • BillingAddress
      • ShippingAddress
      • Carts
      • Me
        • Activate
        • Password
        • BillingAddress
        • ShippingAddress
      • Search
      • Activate
      • Password
        • ResetLinkToken
      • ResetPassword
      • Validate
      • IsEmailAvailable
      • Addresses
      • Permissions
        • Readonly
    • CmsPage
      • Search
    • CmsBlock
      • Search
    • Products
      • Media
        • Types
      • Options
        • Types
      • Links
        • Types
        • Attributes
      • Websites
      • Downloadable links
        • Samples
      • Attributes
        • Options
        • Types
      • Attribute sets
        • Attributes
        • Groups
          • List
        • Sets
          • List
      • Tier prices
      • Types
      • Tier prices information
      • Tier prices delete
      • Base prices information
      • Base prices
      • Cost information
      • Cost
      • Cost delete
      • Special price information
      • Special price
      • Special price delete
      • StockItems
      • Group prices
        • Tiers
          • Price
    • Categories
      • Attributes
        • Options
      • Products
      • Move
      • List
    • StockItems
      • LowStock
        • /
    • Carts
      • Items
      • Selected payment method
      • Billing address
      • Coupons
      • Gift message
      • Order
      • Shipping methods
      • Estimate shipping methods by address id
      • Estimate shipping methods
      • Payment methods
      • Totals
      • Shipping information
      • Totals information
      • Mine
        • Items
        • Selected payment method
        • Billing address
        • Coupons
        • Payment information
        • Gift message
        • Order
        • Shipping methods
        • Estimate shipping methods by address id
        • Estimate shipping methods
        • Payment methods
        • Totals
        • Collect totals
        • Shipping information
        • Totals information
        • Set payment information
      • Licence
        • List
      • /
      • Search
    • Guest carts
      • Items
      • Selected payment method
      • Billing address
      • Coupons
      • Payment information
      • Gift message
      • Order
      • Shipping methods
      • Estimate shipping methods
      • Payment methods
      • Collect totals
      • Totals
      • Shipping information
      • Totals information
      • Set payment information
    • Orders
      • Comments
      • Statuses
      • Cancel
      • Emails
      • Hold
      • Unhold
      • Items
      • Create
    • Invoices
      • Comments
      • Emails
      • Void
      • Capture
      • /
    • Creditmemo
      • Comments
      • Emails
      • Refund
    • Shipment
      • Comments
      • Emails
      • Label
      • Track
      • /
    • Transactions
    • TaxRates
      • Search
    • TaxRules
      • Search
    • TaxClasses
      • Search
    • SalesRules
      • Search
    • Coupons
      • Search
      • Generate
      • DeleteByIds
      • DeleteByCodes
    • Bulk
      • Detailed status
      • Status
      • Operation status
    • Modules
    • Search
    • Addresses
    • Products render info
    • StockStatuses
    • Creditmemos
    • Shipments
    • Amazon shipping address
    • Amazon billing address
    • Store
      • StoreViews
      • StoreGroups
      • Websites
      • StoreConfigs
    • Adobestock
      • Asset
        • Search
        • List
      • Search
    • Directory
      • Countries
      • Currency
    • Eav
      • Attribute sets
        • List
    • AttributeMetadata
      • Customer
        • Attribute
        • Form
        • Custom
      • CustomerAddress
        • Attribute
        • Form
        • Custom
    • Bundle products
      • Links
      • Options
        • Children
        • All
        • Types
        • Add
      • Children
    • Order
      • Refund
      • Ship
      • Invoice
      • Notify orders are ready for pickup
    • Configurable products
      • Children
      • Options
        • All
      • Child
      • Variation
    • Inventory
      • Sources
      • Stocks
      • Stock source links
      • Source items
      • Low quantity notification
      • Get sources assigned to stock ordered by priority
      • Stock source links delete
      • Source items delete
      • Bulk product source assign
      • Bulk product source unassign
      • Bulk product source transfer
      • Bulk partial source transfer
      • Get distance provider code
      • Get distance
      • Get latlng from address
      • Get latslngs from address
      • Export stock salable qty
      • Dump stock index data
      • Get product salable quantity
      • Is product salable
      • Are products salable
      • Is product salable for requested qty
      • Stock resolver
      • Source selection algorithm list
      • Source selection algorithm result
      • Low quantity notifications delete
      • Are product salable for requested qty
        • /
      • In store pickup
        • Pickup locations
          • /
    • Invoice
      • Refund
    • Analytics
      • Link
    • Amazon
      • Order ref
    • Applepay
      • Auth
    • Address
      • Cleanse
    • Guest address
      • Cleanse
    • Vertex address validation
      • Vertex address
    • Integration
      • Admin
        • Token
      • Customer
        • Token
Powered by GitBook
On this page
  1. API reference
  2. Products

Tier prices

PreviousListNextTypes
  • POSTcatalog Tier Price Storage V1Update Post
  • PUTcatalog Tier Price Storage V1Replace Put

catalog Tier Price Storage V1Update Post

post

Add or update product prices. If any items will have invalid price, price type, website id, sku, customer group or quantity, they will be marked as failed and excluded from update list and \Magento\Catalog\Api\Data\PriceUpdateResultInterface[] with problem description will be returned. If there were no failed items during update empty array will be returned. If error occurred during the update exception will be thrown.

Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"prices":[{"price":21804712.969169542,"price_type":"ullamco voluptate incididunt velit et","website_id":-65136892,"sku":"anim magna exercitation","customer_group":"pariatur velit","quantity":-17125640.573636994,"extension_attributes":{}},{"price":88335992.19005963,"price_type":"ex","website_id":72431031,"sku":"Excepteur aute enim","customer_group":"amet","quantity":-78675421.14905852,"extension_attributes":{}}]}
Responses
200
OK
application/json
Responseobject
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
POST /V1/products/tier-prices HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 416

{
  "prices": [
    {
      "price": 21804712.969169542,
      "price_type": "ullamco voluptate incididunt velit et",
      "website_id": -65136892,
      "sku": "anim magna exercitation",
      "customer_group": "pariatur velit",
      "quantity": -17125640.573636994,
      "extension_attributes": {}
    },
    {
      "price": 88335992.19005963,
      "price_type": "ex",
      "website_id": 72431031,
      "sku": "Excepteur aute enim",
      "customer_group": "amet",
      "quantity": -78675421.14905852,
      "extension_attributes": {}
    }
  ]
}
[
  {
    "message": "Duis",
    "parameters": [
      "Excepteur in pariatur",
      "ut n"
    ],
    "extension_attributes": {}
  },
  {
    "message": "aliqua pariatur",
    "parameters": [
      "tempor adipisicing voluptate est",
      "incididunt est sint in proident"
    ],
    "extension_attributes": {}
  }
]

catalog Tier Price Storage V1Replace Put

put

Remove existing tier prices and replace them with the new ones. If any items will have invalid price, price type, website id, sku, customer group or quantity, they will be marked as failed and excluded from replace list and \Magento\Catalog\Api\Data\PriceUpdateResultInterface[] with problem description will be returned. If there were no failed items during update empty array will be returned. If error occurred during the update exception will be thrown.

Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"prices":[{"price":19216035.254590124,"price_type":"Duis Ut","website_id":5133488,"sku":"irure quis minim amet tempor","customer_group":"mollit nostrud reprehenderit","quantity":-4871832.695546806,"extension_attributes":{}},{"price":14720943.397007912,"price_type":"cillum est ad eu","website_id":53384041,"sku":"sit voluptate","customer_group":"fugiat cillum mollit","quantity":-23893126.237930804,"extension_attributes":{}}]}
Responses
200
OK
application/json
Responseobject
401
Unauthorized
application/json
500
Internal Server Error
application/json
put
PUT /V1/products/tier-prices HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 428

{
  "prices": [
    {
      "price": 19216035.254590124,
      "price_type": "Duis Ut",
      "website_id": 5133488,
      "sku": "irure quis minim amet tempor",
      "customer_group": "mollit nostrud reprehenderit",
      "quantity": -4871832.695546806,
      "extension_attributes": {}
    },
    {
      "price": 14720943.397007912,
      "price_type": "cillum est ad eu",
      "website_id": 53384041,
      "sku": "sit voluptate",
      "customer_group": "fugiat cillum mollit",
      "quantity": -23893126.237930804,
      "extension_attributes": {}
    }
  ]
}
[
  {
    "message": "Duis",
    "parameters": [
      "Excepteur in pariatur",
      "ut n"
    ],
    "extension_attributes": {}
  },
  {
    "message": "aliqua pariatur",
    "parameters": [
      "tempor adipisicing voluptate est",
      "incididunt est sint in proident"
    ],
    "extension_attributes": {}
  }
]