Creating and Committing Payments
POST /v3/accounts/{reference}/sessions/{session id}/payments
Creates a payment.
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}
Updates the payment.
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
Commits the payment. Payment is processed. Now the balance is changed.
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
Rollbacks the payment.
Headers:
Content-Type: application/json
Authentication: Bearer %access_token%
Authentication:
Grant_type: client_credentials
Scopes: [ credit ]