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
}Product
Update a product
Atualiza parcialmente um produto. Campos invalidos podem ser descartados no preprocessamento.
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
api_keytoken
API key no formato keyId.secret.
Body
application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I
