Skip to main content
curl -X GET "https://api.chargefy.io/v1/prices/price_123" \
  -H "Authorization: Bearer {{API_KEY}}"
{
  "id": "price_123",
  "object": "price",
  "created_at": "2026-05-16T14:09:27Z",
  "currency": "brl",
  "is_active": true,
  "livemode": true,
  "metadata": {},
  "name": "Mensal",
  "product": "prod_123",
  "recurring": {
    "interval": "month",
    "interval_count": 1,
    "trial_period_days": null,
    "usage_type": "licensed"
  },
  "tax_behavior": "unspecified",
  "type": "recurring",
  "unit_amount": 9990,
  "updated_at": null
}
Retorna um price pelo ID.

Autenticação

A API key da própria organização atua diretamente. A API key de plataforma exige o header Organization: <organization_id> apontando para uma organização conectada ativa.

Parâmetros de caminho

id
string
required
ID do preço (price_*).
curl -X GET "https://api.chargefy.io/v1/prices/price_123" \
  -H "Authorization: Bearer {{API_KEY}}"

Resposta

200 OK com o objeto price completo. Mesmo shape de POST /v1/prices.
{
  "id": "price_123",
  "object": "price",
  "created_at": "2026-05-16T14:09:27Z",
  "currency": "brl",
  "is_active": true,
  "livemode": true,
  "metadata": {},
  "name": "Mensal",
  "product": "prod_123",
  "recurring": {
    "interval": "month",
    "interval_count": 1,
    "trial_period_days": null,
    "usage_type": "licensed"
  },
  "tax_behavior": "unspecified",
  "type": "recurring",
  "unit_amount": 9990,
  "updated_at": null
}

Erros comuns

StatuscodeQuando ocorre
404resource_missingPreço não existe nesta organização (ou foi removido)