Skip to main content
Skip table of contents

Contrôle de la session de paiement

POST /v3/comptes/{référence}/sessions

Lance une session de paiement. La référence peut être récupérée à partir de /v3/users/accounts point final. Session reconduite id est utilisé dans d'autres points finaux.

CODE
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%

Authentication:
Grant_type: client_credentials
Scopes: [ credit ]

Request body:
{
  "username": "string",
  "clientId": "string"
}

Response body:
{
  "id": 0,
  "balance": {
    "amount": 0
  },
  "quotas": {}
}


GET /v3/accounts/{reference}/sessions/{session id}/balance

Renvoie le solde disponible pour la session.

CODE
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%

Authentication:
Grant_type: client_credentials
Scopes: [ credit ]

Response body:
{
  "balance": {
    "amount": 0
  }
}


POST /v3/accounts/{reference}/sessions/{session id}/block

Bloque le montant donné pour la session en cours.

CODE
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%

Authentication:
Grant_type: client_credentials
Scopes: [ credit ]

Request body:
{
  "amount": 0,
  "description": "string"
}


DELETE /v3/accounts/{reference}/sessions/{session id}

Met fin à la session de paiement. Cette action doit lever tous les blocages.

CODE
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%

Authentication:
Grant_type: client_credentials
Scopes: [ credit ]
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.