{ "info": { "_postman_id": "nelsius-pay-module5", "name": "Nelsius Pay - Module 5: Liens de Paiement", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "5.1 - Liens de Paiement (Marchand)", "item": [ { "name": "POST Créer un lien", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{merchant_token}}" } ], "body": { "mode": "formdata", "formdata": [ { "key": "title", "value": "T-shirt Premium", "type": "text" }, { "key": "type", "value": "simple", "type": "text" }, { "key": "amount", "value": "15000", "type": "text" }, { "key": "currency", "value": "XAF", "type": "text" }, { "key": "description", "value": "T-shirt en coton bio de haute qualité", "type": "text" }, { "key": "image", "type": "file", "src": "path/to/image.jpg" }, { "key": "payment_methods[]", "value": "orange_money", "type": "text" }, { "key": "payment_methods[]", "value": "mtn_money", "type": "text" }, { "key": "expires_at", "value": "2025-12-31", "type": "text" }, { "key": "max_uses", "value": "100", "type": "text" }, { "key": "redirect_url", "value": "https://maboutique.com/merci", "type": "text" }, { "key": "metadata[color]", "value": "red", "type": "text" } ] }, "url": { "raw": "{{base_url}}/api/merchant/payment-links", "host": ["{{base_url}}"], "path": ["api", "merchant", "payment-links"] } } }, { "name": "GET Liste des liens", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer {{merchant_token}}" } ], "url": { "raw": "{{base_url}}/api/merchant/payment-links", "host": ["{{base_url}}"], "path": ["api", "merchant", "payment-links"] } } }, { "name": "GET Aperçu d'un lien", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer {{merchant_token}}" } ], "url": { "raw": "{{base_url}}/api/merchant/payment-links/1/preview", "host": ["{{base_url}}"], "path": ["api", "merchant", "payment-links", "1", "preview"] } } }, { "name": "GET Statistiques d'un lien", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer {{merchant_token}}" } ], "url": { "raw": "{{base_url}}/api/merchant/payment-links/1/analytics", "host": ["{{base_url}}"], "path": ["api", "merchant", "payment-links", "1", "analytics"] } } }, { "name": "POST Dupliquer un lien", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{merchant_token}}" } ], "url": { "raw": "{{base_url}}/api/merchant/payment-links/1/duplicate", "host": ["{{base_url}}"], "path": ["api", "merchant", "payment-links", "1", "duplicate"] } } }, { "name": "PUT Modifier un lien", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Bearer {{merchant_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"T-shirt Premium (Modifié)\",\n \"amount\": 16000,\n \"status\": \"active\"\n}" }, "url": { "raw": "{{base_url}}/api/merchant/payment-links/1", "host": ["{{base_url}}"], "path": ["api", "merchant", "payment-links", "1"] } } }, { "name": "DELETE Supprimer un lien", "request": { "method": "DELETE", "header": [ { "key": "Authorization", "value": "Bearer {{merchant_token}}" } ], "url": { "raw": "{{base_url}}/api/merchant/payment-links/1", "host": ["{{base_url}}"], "path": ["api", "merchant", "payment-links", "1"] } } } ] }, { "name": "5.2 - QR Codes (Marchand)", "item": [ { "name": "POST Générer QR Code", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{merchant_token}}" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"amount\": 15000,\n \"currency\": \"XAF\",\n \"description\": \"QR Code pour T-shirt\",\n \"is_reusable\": true,\n \"max_uses\": 50\n}" }, "url": { "raw": "{{base_url}}/api/merchant/qr-codes", "host": ["{{base_url}}"], "path": ["api", "merchant", "qr-codes"] } } } ] }, { "name": "5.3 - Page Publique", "item": [ { "name": "GET Voir un lien (publique)", "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/public/payment-links/abc123def", "host": ["{{base_url}}"], "path": ["api", "public", "payment-links", "abc123def"] } } }, { "name": "POST Payer via un lien", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"phone\": \"+237699887766\",\n \"operator\": \"orange_money\",\n \"amount\": 15000,\n \"description\": \"Achat T-shirt\"\n}" }, "url": { "raw": "{{base_url}}/api/public/payment-links/abc123def/pay", "host": ["{{base_url}}"], "path": ["api", "public", "payment-links", "abc123def", "pay"] } } }, { "name": "GET QR Code d'un lien", "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/public/payment-links/abc123def/qr", "host": ["{{base_url}}"], "path": ["api", "public", "payment-links", "abc123def", "qr"] } } } ] } ], "variable": [ { "key": "base_url", "value": "http://localhost:8000" }, { "key": "merchant_token", "value": "" } ] }