Skip to main content
Skip table of contents

Creating and committing payments

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

Creates a payment.

CODE
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.

CODE
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.

CODE
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.

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.