DocsTableau de bord

Abonnements

Créer un lien de portail

POST/v1/subscriptions/{id}/portal-linkpayments:write

Needs payments:write. A personal link to the subscriber portal, valid to the end of the 7th day (midnight in the subscriber time zone), shown once: only its hash is kept. The secret sits after # in the URL and never reaches a server log; the page sends it in a header. The portal shows the subscription, receipts as PDF, pays an invoice still owed on a checkout page and cancels at the end of the period.

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_…).

Paramètres

iddans le cheminobligatoire

Réponses

200Réussi
201Créé
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.