Skip to main content
PUT
/
v1
/
product
Update a product
curl --request PUT \
  --url https://sandbox.api.veepag.com/v1/product \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --data '
{
  "companyId": "<string>",
  "active": true,
  "deleted": true,
  "setting": {
    "re1to1": true,
    "successChargeDay": true,
    "cardAuth": true,
    "limitOverdueCharges": {
      "active": true,
      "qty": 123
    }
  },
  "charge": {
    "frequencyDays": 1,
    "deniedIntervalDays": 1,
    "maxDeniedAttempts": 1,
    "invoiceIdentification": "<string>",
    "paymentMethod": [
      {
        "active": true,
        "installments": [
          {
            "installment": 123,
            "fee": 1,
            "totalAmount": 1,
            "installmentAmount": 1
          }
        ]
      }
    ],
    "routes": []
  },
  "product": {
    "price": 1,
    "originalPrice": 1,
    "title": "<string>",
    "photo": "<string>",
    "warranty": 1,
    "description": "<string>",
    "SKU": "<string>"
  },
  "unsubscription": {
    "overdueDays": 1
  },
  "checkout": {
    "header": {
      "color": "<string>",
      "fixed": true,
      "active": true,
      "logo": "<string>"
    },
    "topBanner": {
      "active": true,
      "url": "<string>"
    },
    "sideBanner": {
      "active": true,
      "url": "<string>"
    },
    "contact": {
      "active": true,
      "text": "<string>"
    },
    "terms": {
      "active": true,
      "text": "<string>"
    },
    "privacyterms": {
      "active": true,
      "linkTermsUse": "<string>",
      "linkPrivacyPolicy": "<string>"
    },
    "tracking": {
      "meta": "<string>",
      "gtm": "<string>"
    },
    "color": {
      "textPrimary": "<string>",
      "secondary": "<string>",
      "background": "<string>",
      "primary": "<string>",
      "textSecondary": "<string>"
    },
    "countdown": {
      "time": 123,
      "fixed": true,
      "active": true,
      "color": {
        "background": "<string>",
        "text": "<string>"
      }
    },
    "faq": {
      "active": true,
      "list": [
        {
          "question": "<string>",
          "answer": "<string>"
        }
      ]
    }
  },
  "send": {
    "active": true,
    "list": [
      {
        "active": true,
        "id": "<string>",
        "integrationId": "<string>",
        "linkAccess": "<string>",
        "name": "<string>",
        "productId": "<string>"
      }
    ]
  },
  "discount": {
    "list": []
  },
  "notification": {
    "overdueCharge": {
      "email": true
    },
    "paidCharge": {
      "email": true,
      "message": "<string>"
    }
  },
  "_id": "<string>"
}
'
{
  "_id": "product_id",
  "active": true
}

Authorizations

apiKey
string
header
required

API key no formato keyId.secret.

Body

application/json
companyId
string
active
boolean
deleted
boolean
setting
object
charge
object
product
object
unsubscription
object
checkout
object
send
object
discount
object
notification
object
_id
string

Response

Produto atualizado.

_id
string
companyId
string
active
boolean
deleted
boolean
product
object
charge
object
setting
object
unsubscription
object