PayHazeDocsTableau de bord

Quitter PayHaze

Supprimer l’espace

POST/v1/space/delete

Owner only, recent second factor, the name of the space typed again, after the exit and once nothing is under way (409 operations_under_way lists what holds it). Keeps what the law obliges to keep (payments, refunds, invoices, credit notes, financial and audit journals); erases the team, keys, notification and provider secrets, saved card descriptions, buyers’ e-mails outside invoices and the settings shown to buyers. See docs/privacy/retention.md.

En-têtes

AuthorizationBearer pos_test_…obligatoire
Clé de serveur. Jamais dans un navigateur.
X-Merchant-IDstringobligatoire
L’espace marchand concerné (mrc_…).
X-Environment"test"obligatoire
Seule valeur acceptée tant que la production n’est pas ouverte.

Corps

namestring, 0 à 120obligatoire

Réponses

200Réussi
400Requête invalide
401Clé absente ou invalide
403Autorisation ou espace refusé
404Ressource introuvable
409Conflit avec une demande existante
429Trop de demandes, réessayez plus tard
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.