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

Creates a payment.

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

Authentication:
Type: client
Scopes: [ credit ]

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

Response body:
{
  "id": 0,
  "amount": 0
}
CODE

PATCH /v3/accounts/{reference}/sessions/{session id}/payments/{payment id}

Updates the payment.

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

Authentication:
Type: client
Scopes: [ credit ]

Request body:
{
  "amount": 0
}

Response body:
{
  "id": 0,
  "amount": 0
}
CODE


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:
Type: client
Scopes: [ credit ]
CODE


POST /v3/accounts/{reference}/sessions/{session id}/payments/{payment id}/rollback

Rollbacks the payment.

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

Authentication:
Type: client
Scopes: [ credit ]
CODE