Driffle Seller API
  • Driffle Seller API
  • Guide
    • Getting Started
    • Monitoring Your Competition
  • FAQ
    • Cannot use the API, it throws 401/403/404 errors
  • Reference
    • Automate Your Stock with "Declare Stock"
    • API Reference
      • Products
        • Get Products List
        • Get Single product
        • Get Product Commission
      • Competition
      • Offers (Auction)
        • Offers List
        • Get Single Offer
        • Update Offer Price
        • Enable/Disable Offers
        • Create a new offer
        • Update Offer
        • Bulk Update Offers
      • Manage Inventory/Stock
        • Declare Stock
        • Upload Stock
        • Inventory Actions
        • Fetch a single Key
      • Transactions
        • Get Transactions List
        • Get a Single Transaction
      • Dashboard Stats
      • Regions
      • Platforms
Powered by GitBook
On this page
  1. Reference
  2. API Reference
  3. Products

Get Product Commission

Gets the commission on a single product.

Supported arguments

The following arguments are supported by this API:

POST /product/commission

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Params

Param
Param Tpe
Type
Required
Description

productId

body

Number

Yes

The ID of the product

sellingPrice

body

Number

Yes

"Retail Price" / "Selling Price" is the price after commission. Buyers will see this price

Response

{
  "statusCode": 200,
  "message": "string",
  "data": {
    "commission": {
      "amount": "number"
      "currency": "string"
    },
    "sellingPrice": {
      "amount": "number"
      "currency": "string"
    },
    "youGetPrice": {
      "amount": "number"
      "currency": "string"
    },
    
  }
}
{
    "message": "Bad Request. Wrong/Invalid params format.",
    "statusCode": 400 
}
{
    "message": "UnAuthorized request. Invalid/Expired token",
    "statusCode": 401
}
{
    "message": "Forbidden Request. Action not allowed or Rate Limit exhausted.", 
    "statusCode": 403
}
{
    "message": "Internal Server Error",
    "statusCode": 500
}

PreviousGet Single productNextCompetition

Last updated 11 months ago

  • Supported arguments
  • POST/product/commission
post
Header parameters
AuthorizationstringRequired

Authorization token in Bearer format. Example: Bearer dvakycjgw8liyd278y

Body
productIdnumberRequired
sellingPricenumberRequired
Responses
200
Default Response
application/json
400
Bad Request. Wrong/Invalid params format.
application/json
401
UnAuthorized request. Invalid/Expired token
application/json
403
Forbidden Request. Action not allowed or Rate Limit exhausted.
application/json
500
Server Error.
application/json
post
POST /api/seller/legacy/product/commission HTTP/1.1
Host: services.driffle.com
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 32

{
  "productId": 1,
  "sellingPrice": 1
}
{
  "message": "text",
  "status": 1,
  "data": {
    "commission": {
      "amount": 1,
      "currency": "text"
    },
    "sellingPrice": {
      "amount": 1,
      "currency": "text"
    },
    "youGetPrice": {
      "amount": 1,
      "currency": "text"
    }
  }
}