Créer et engager des paiements
POST /v3/comptes/{référence}/sessions/{id session}/paiements
Crée un paiement.
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%
Authentication:
Grant_type: client_credentials
Scopes: [ credit ]
Request body:
{
"amount": 0,
"description": "string"
}
Response body:
{
"id": 0,
"amount": 0
}
PATCH /v3/accounts/{reference}/sessions/{session id}/payments/{payment id}
Met à jour le paiement.
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%
Authentication:
Grant_type: client_credentials
Scopes: [ credit ]
Request body:
{
"amount": 0
}
Response body:
{
"id": 0,
"amount": 0
}
POST /v3/accounts/{reference}/sessions/{session id}/payments/{payment id}/commit
Valide le paiement. Le paiement est traité. Le solde est maintenant modifié.
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%
Authentication:
Grant_type: client_credentials
Scopes: [ credit ]
POST /v3/accounts/{reference}/sessions/{session id}/payments/{payment id}/rollback
Annule le paiement.
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%
Authentication:
Grant_type: client_credentials
Scopes: [ credit ]