-
Notifications
You must be signed in to change notification settings - Fork 0
Dashboard Transaction Actions
Mohamed Osman edited this page Sep 30, 2019
·
7 revisions
Stash! Dashboard users will be able to capture or reverse an already preauthorized transaction or refund an authorized or captured transaction. These operations have OAuth2 authorization, and only the authorized merchant users will be able to perform the actions.
A transaction can be captured by providing the following parameters in a request header:
Parameter Name | Description | Type | Required |
---|---|---|---|
PSP-Test-Mode | A flag defining if the alias is for the PSP test mode | Boolean | No |
URL path:
Parameter Name | Description | Type | Required |
---|---|---|---|
Merchant-Id | Id of the merchant user who is capturing the transaction | String | Yes |
Transaction-Id | Id of the transaction that will be captured | String | Yes |
Response body:
Parameter Name | Description | Type |
---|---|---|
transactionId | Stash! transaction id | String |
amount | Amount in smallest currency unit (e.g. cent) | Int |
currency | Currency | String |
status | SUCCESS or FAIL | String |
action | CAPTURE | String |
The Swagger documentation can be found here.
A transaction can be reversed by providing the following parameters in a request header:
Parameter Name | Description | Type | Required |
---|---|---|---|
PSP-Test-Mode | A flag defining if the alias is for the PSP test mode | Boolean | No |
URL path:
Parameter Name | Description | Type | Required |
---|---|---|---|
Merchant-Id | Id of the merchant user who is reversing the transaction | String | Yes |
Transaction-Id | Id of the transaction that will be captured | String | Yes |
Response body:
Parameter Name | Description | Type |
---|---|---|
transactionId | Stash! transaction id | String |
amount | Amount in smallest currency unit (e.g. cent) | Int |
currency | Currency | String |
status | SUCCESS or FAIL | String |
action | REVERSAL | String |
The Swagger documentation can be found here.
A transaction can be refunded by providing the following parameters in a request header:
Parameter Name | Description | Type | Required |
---|---|---|---|
PSP-Test-Mode | A flag defining if the alias is for the PSP test mode | Boolean | No |
URL path:
Parameter Name | Description | Type | Required |
---|---|---|---|
Merchant-Id | Id of the merchant user who is refunding the transaction | String | Yes |
Transaction-Id | Id of the transaction that will be captured | String | Yes |
Request body:
Parameter Name | Description | Type | Required |
---|---|---|---|
amount | Amount in smallest currency unit (e.g. cent) | Int | Yes |
currency | Currency | String | Yes |
reason | Reason of the transaction | String | Yes |
Response body:
Parameter Name | Description | Type |
---|---|---|
transactionId | Stash! transaction id | String |
amount | Amount in smallest currency unit (e.g. cent) | Int |
currency | Currency | String |
status | SUCCESS or FAIL | String |
action | REFUND | String |
The Swagger documentation can be found here.