crm-v1-deal-products

Criar produto na negociação

Criar produto na negociação

post/deals/{deal_id}/deal_products

Request

  • Base URL
    https://api.rd.services
  • URL
    https://api.rd.services/deals/{deal_id}/deal_products
  • Auth
    none declared

Path parameters

deal_idstring required

ID da negociação.

Request body

amountnumber
discountnumber
discount_typestring
pricenumber
product_idstring
recurrencestring

Example request

{
  "amount": 3.1,
  "discount": 50,
  "discount_type": "value",
  "price": 150,
  "product_id": "64ed33c20fcffb0013dce556",
  "recurrence": "spare"
}

Response

Success

_idstring
amountnumber
base_pricenumber
created_atstring
descriptionstring
discountnumber
discount_typestring
namestring
pricenumber
product_idstring
recurrencestring
totalnumber
updated_atstring

Example response

{
  "_id": "ID",
  "amount": 3.1,
  "base_price": 100,
  "created_at": "2023-08-28T20:59:32.240-03:00",
  "description": "Descrição do Produto X",
  "discount": 50,
  "discount_type": "value",
  "name": "Produto X",
  "price": 150,
  "product_id": "ID",
  "recurrence": "spare",
  "total": 400,
  "updated_at": "2023-08-28T20:59:32.240-03:00"
}

Changes

No recorded changes to this operation across all 1 revision of this API.