Skip to main content

Inventory Check API

The API is used by the merchant partners to check the skus availability, discounts, applicable other charges, and the final payable amount for the cart.

Merchant partners must call this API before the Create Order API to check the final calculation for the cart. This API confirms the availability of the skus in the 1mg system, discounts, and additional changes and returns the final payable amount for the cart.

The order can be placed for the available quantity for the skus only returned in this API response. Also, merchant partners must collect the payable amount returned in this API call response from the customers if the payment method is to be online.

The user field is optional but recommended to avoid pricing issues.

Path Parameters
  • merchant_id string required
Header Parameters
  • X-Access-Key string

    Default value: 1mg_client_access_key

Request Body
  • skus object
  • 248941 integer
  • pincode string
  • user object
  • email string
  • mobile string
  • first_name string
  • last_name string
  • coupon_code string
Responses

OK

Response Headers
  • Date string
  • Content-Type string
  • Transfer-Encoding string
  • Connection string
  • Vary string
  • X-Request-ID string
  • VISITOR-ID string
  • X-VISITOR-ID string
  • Server string
  • Access-Control-Allow-Methods string
  • Access-Control-Allow-Headers string
  • Access-Control-Allow-Origin string
  • Content-Encoding string

Schema
  • object
Loading...