Facturation PayHaze
Ouvrir l’espace client Stripe
POST/v1/payhaze-billing/portalteam:write
Needs team:write and the second factor, in a browser session. Stripe's customer portal: invoices, payment method, cancellation at the end of the period. 409 not_subscribed without a Stripe customer; 503 billing_unavailable while PayHaze's own Stripe keys are not configured.
En-têtes
AuthorizationBearer pos_key_…obligatoire- Clé de serveur, pour tout l’espace. Jamais dans un navigateur.
X-Merchant-IDstringobligatoire- L’espace marchand concerné (mrc_…).
Réponses
- 201Créé
- 400Requête invalide
- 401Clé absente ou invalide
- 403Autorisation ou espace refusé
- 409Conflit avec une demande existante
- 429Trop de demandes, réessayez plus tard
- 502Request rejected; no success is implied.
- 503Service momentanément indisponible
Une erreur ne vaut jamais paiement. Le corps donne code, message, request_id et retry_action ; renvoyez la même Idempotency-Key si retry_action le propose.