POST
/
{alias}
/
pricing
/
upsells
curl --request POST \
  --url https://api.dooki.com.br/v2/{alias}/pricing/upsells \
  --header 'Content-Type: application/json' \
  --header 'User-Secret-Key: <api-key>' \
  --header 'User-Token: <api-key>' \
  --data '{
  "id": 123,
  "purchased_product_id": 123,
  "suggested_product_id": 123,
  "active": true,
  "context": "<string>",
  "product_price": 123,
  "product_quantity": 123,
  "name": "<string>",
  "description": "<string>",
  "email_subject": "<string>",
  "sms": "<string>",
  "views": 123
}'
{
  "data": [
    {
      "id": 123,
      "purchased_product_id": 123,
      "suggested_product_id": 123,
      "active": true,
      "context": "<string>",
      "product_price": 123,
      "product_quantity": 123,
      "name": "<string>",
      "description": "<string>",
      "email_subject": "<string>",
      "sms": "<string>",
      "views": 123
    }
  ]
}

Authorizations

User-Token
string
header
required
User-Secret-Key
string
header
required

Path Parameters

alias
string
required

Alias da loja

Body

application/json

Response

200
application/json

Upsell criado com sucesso

The response is of type object.