| Required role: | Admin |
| OPTIONS, POST, GET | /R_RefundTransaction |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TransactionId | body | long | No | |
| AmountToRefund | body | decimal | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Requester | form | string | No | Identity of the caller |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Transaction | form | R_Transaction | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SubscriptionId | form | long | No | |
| GatewayTransactionId | form | string | No | |
| TransactionTypeId | form | long | No | |
| TransactionStatusId | form | long | No | |
| Amount | form | decimal | No | |
| Card | form | string | No | |
| CurrencyId | form | long | No | |
| CreateDate | form | DateTime | No | |
| InvoiceId | form | long? | No | |
| GatewayResponse | form | string | No | |
| TransactionNotificationStatusId | form | long | No | |
| SettlementDate | form | DateTime? | No | |
| RelatedTransactionId | form | long? | No | |
| RelatedGatewayTransactionId | form | string | No | |
| Id | form | long | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/R_RefundTransactionRequest HTTP/1.1
Host: regapi.pumpalarm.com
Content-Type: text/jsv
Content-Length: length
{
TransactionId: 0,
AmountToRefund: 0,
Requester: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Transaction:
{
SubscriptionId: 0,
GatewayTransactionId: String,
TransactionTypeId: 0,
TransactionStatusId: 0,
Amount: 0,
Card: String,
CurrencyId: 0,
CreateDate: 0001-01-01,
InvoiceId: 0,
GatewayResponse: String,
TransactionNotificationStatusId: 0,
SettlementDate: 0001-01-01,
RelatedTransactionId: 0,
RelatedGatewayTransactionId: String,
Id: 0
}
}