put https://api.plugg.to/skus/
Instructions
When creating a price table, our API will create a unique "ID" for that table, so you can update or delete it whenever you want.
Request object has the following properties:
| Attribute | Type | Description | 
|---|---|---|
| code | string | Price table name | 
| label | string | Price table information | 
| action | string | Type of action the table will perform Values: | 
Example of Price Table creation
{
    "price_table": [
        {
            "code": "Mercado Livre",
            "action": "overwrite",
            "label": "Preço para o mercadolivre",
            "maximum_price": 0,
            "minimum_price": 0,
            "price": 150,
            "special_price": 100
        }
    ]
}Example of Price Table return
Example of return after creating the price table, see that when creating it generated an "id".
{
    "price_table": [
        {
            "code": "Mercado Livre",
            "action": "overwrite",
            "maximum_price": 0,
            "minimum_price": 0,
            "price": 150,
            "special_price": 100,
            "label": "Preço para o mercadolivre",
            "percentage": null,
            "id": "60c9f2ade3f84445a74c627b"
        }
    ]
}Update Example
In this example update, I will change the price table.
I will use the "code" to make this price change.
{
    "price_table": [
        {
            "code": "Mercado Livre",
            "price": 250,
            "special_price": 200
        }
    ]
}Example of Price Table return
{
    "price_table": [
        {
            "code": "Mercado Livre",
            "action": "overwrite",
            "maximum_price": 0,
            "minimum_price": 0,
            "price": 250,
            "special_price": 200,
            "label": "Preço para o mercadolivre",
            "percentage": null,
            "id": "60c9f2ade3f84445a74c627b"
        }
    ]
}Example of creating a price table using "increase" and "decrease"
This type of action will increase or decrease the real price registered in the product outside the price table.
{
    "price_table": [
        {
            "code": "Mercado Livre",
            "action": "increase/decrease",
            "percentage": 1,
            "label": "Preço para o mercadolivre",
        }
    ]
}Deleting Price Table
To delete a table price, just inform the corresponding "code" and send the "remove" with a "true" value.
{
    "price_table": [
        {
            "code": "Mercado Livre",
            "remove": true
        }
    ]
}