Skip to main content
Skip table of contents

Rechargement de crédit

GET /v3/rechargeProviders

Obtenir les fournisseurs de recharge actuellement actifs.

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

Authentication:
Grand_type: client_credentials, login_info
Scopes: [ credit ]

Response body:
{
  "providers": [
    {
      "name": "string",
      "reference": "string",
      "description": "string",
      "params": [
        "string",
        0,
        true
      ]
    }
  ],
  "count": 0
}


GET /v3/rechargeProviders/{reference}/payments

Obtenir des paiements. L'utilisateur connecté DOIT avoir le droit Crédit de recharge.

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

Authentication:
Grand_type: client_credentials, login_info
Scopes: [ credit ]

Response body:
{
  "payments": [
    {
      "id": 0,
      "userId": 0,
      "amount": 0,
      "currency": "string",
      "state": "string",
      "created": "2021-10-21T09:24:43.122Z",
      "updated": "2021-10-21T09:24:43.122Z",
      "expires": "2021-10-21T09:24:43.122Z",
      "paymentNo": 0,
      "provider": "string",
      "description": "string"
    }
  ],
  "count": 0
}


POST /v3/rechargeProviders/{reference}/payments

Créez un paiement. Vous devez valider le paiement pour qu'il soit effectif. L'utilisateur connecté DOIT avoir le droit Crédit de recharge.

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

Authentication:
Grand_type: client_credentials, login_info
Scopes: [ credit ]

Request body:
{
  "userId": 0,
  "description": "string",
  "params": "string"
}

Response body:
{
  "id": "string",
  "userId": 0,
  "amount": 0,
  "description": "string",
  "params": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  }
}


PATCH /v3/rechargeProviders/{reference}/payments/{id}

Mettre à jour le paiement. L'utilisateur connecté DOIT avoir le droit Crédit de recharge.

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

Authentication:
Grand_type: client_credentials, login_info
Scopes: [ credit ]

Request body:
{
  "description": "string",
  "params": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  }
}


POST /v3/rechargeProviders/{reference}/payments/{id}/commit

Engager le paiement. Pour qu'il soit effectif. L'utilisateur connecté DOIT avoir le droit Crédit de recharge.

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

Authentication:
Grand_type: client_credentials, login_info
Scopes: [ credit ]

Response body:
{
  "amount": 0
}


POST /v3/rechargeProviders/{reference}/payments/{id}/rollback

Reprendre le paiement. L'utilisateur connecté DOIT avoir le droit Crédit de recharge.

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

Authentication:
Grand_type: client_credentials, login_info
Scopes: [ credit ]

Request body:
{
  "reason": "string"
}

JavaScript errors detected

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

If this problem persists, please contact our support.