TratowAPI
API aberta · Pacotes

Configurações de pacotes

get/api/open/v1/package-settings

Em resumo

  • GET /api/open/v1/package-settings
  • Chave read ou read_write.
  • Sucesso: 200.
  • Authorizationstringheaderobrigatório

    Chave de API no formato Bearer ttw_live_<prefixo>_<segredo>, criada em Integrações → Chaves de API. Este endpoint precisa de chave read ou read_write.

Resposta 200

application/json
  • allowPriceEditbooleanobrigatório

    Permite preço edit.

  • defaultValidityDaysintegerpode ser nuloobrigatório

    -9007199254740991 a 9007199254740991

  • defaultCommissionBpintegerobrigatório

    Default comissão em pontos-base (100 = 1%).

    -9007199254740991 a 9007199254740991

curl --request GET \  --url 'https://qa-tratow.ips.app.br/api/open/v1/package-settings' \  --header 'Authorization: Bearer <chave>'
Resposta
{  "allowPriceEdit": false,  "defaultValidityDays": 1,  "defaultCommissionBp": 1000}

Os valores são ilustrativos.