PATCH
/
v1
/
app
/
package
/
{package-id}
curl --request PATCH \
  --url https://api.centralcart.com.br/v1/app/package/{package-id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "category_id": 123,
  "enabled": true,
  "price": 123,
  "expiry_days": 123,
  "type": "<string>",
  "inventory_amount": 123,
  "per_user_limit": true
}'
{
  "id": 100214,
  "category_id": 15124,
  "store_id": 1,
  "position": 1,
  "enabled": true,
  "name": "Pacote",
  "type": "MULTIPLE",
  "price": 20,
  "expiry_days": null,
  "inventory_amount": null,
  "per_user_limit": false,
  "description": "Descrição do pacote",
  "slug": "package-100214",
  "image": "https://cdn.centralcart.com.br/stores/1/packages/264573df-588e-45e2-a623-69184f75e7d7.gif",
  "created_at": "2024-02-25T12:27:33.000-03:00",
  "updated_at": "2024-04-09T13:43:55.610-03:00",
  "price_display": "R$ 20,00"
}
package-id
number
required

O ID do comando a ser atualizado

name
string

O nome do pacote

description
string

A descrição do pacote

category_id
number

O ID da categoria do pacote

enabled
boolean

Se o pacote estará visível na loja

price
number

O valor de compra do pacote

expiry_days
number

Número de dias em que o pacote irá expirar

type
string

Tipo do produto: MULTIPLE, SINGLE

inventory_amount
number

Quantidade do pacote em estoque

per_user_limit
boolean

Se o pacote poderá ser comprado apenas uma vez por usuário

{
  "id": 100214,
  "category_id": 15124,
  "store_id": 1,
  "position": 1,
  "enabled": true,
  "name": "Pacote",
  "type": "MULTIPLE",
  "price": 20,
  "expiry_days": null,
  "inventory_amount": null,
  "per_user_limit": false,
  "description": "Descrição do pacote",
  "slug": "package-100214",
  "image": "https://cdn.centralcart.com.br/stores/1/packages/264573df-588e-45e2-a623-69184f75e7d7.gif",
  "created_at": "2024-02-25T12:27:33.000-03:00",
  "updated_at": "2024-04-09T13:43:55.610-03:00",
  "price_display": "R$ 20,00"
}