cURL
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" }
Atualiza detalhes do pacote.
MULTIPLE
SINGLE