Skip to main content
PUT
/
events
/
{event}
/
legal-discounts
Definir descontos legais
curl --request PUT \
  --url http://localhost/api/v1/events/{event}/legal-discounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "discounts": [
    {
      "enabled": true,
      "value": 50000000,
      "requires_proof": true
    }
  ]
}
'
{
  "data": [
    {
      "id": 123,
      "event_id": 123,
      "type": "<string>",
      "discount_type": "<string>",
      "value": 123,
      "requires_proof": true,
      "is_active": true,
      "created_at": "<string>",
      "updated_at": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key do hub com escopo manage. Header: Authorization: Bearer <api_key>.

Path Parameters

event
string
required

Body

application/json

PUT /api/v1/events/{event}/legal-discounts — bloco em massa por categoria legal. Espelha EventSales::saveLegal: chaveado por type (pcd|student|senior); cada entrada habilita/desabilita e define discount_type/value/requires_proof.

discounts
object[]
required
Minimum array length: 1

Response

data
EventDiscountRuleResource · object[]
required