Liens de paiement
Créer un lien
POST/v1/payment-linkspayments:write
Needs payments:write. The amount is kept by PayHaze: a buyer cannot pay another one.
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
titlestring, 1 à 80obligatoire- Shown to the buyer.
amount_minorstring- Cents, from 50 to 99999999.
min_minorstring- Cents, from 50 to 99999999.
max_minorstring- Cents, from 50 to 99999999.
reusablebooleanobligatoire- false: the link closes after the first successful payment.
expires_atstring ou null
Réponses
- 201Créé
- 400Requête invalide
- 401Clé absente ou invalide
- 402Service restreint
- 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.