All URIs are relative to https://api.uat.anddone.com
| Method | HTTP request | Description |
|---|---|---|
| SecureRefundsEligibilityPost | POST /secure/refunds/eligibility | This API return refund eligibility of a transaction. |
| SecureRefundsPost | POST /secure/refunds | This API will refund a transaction which has been settled by the processor. |
RefundEligibility SecureRefundsEligibilityPost (string xApiKey, string xAppKey, float xVersion, string origin, TransactionRefundEligibilityRequest transactionRefundEligibilityRequest)
This API return refund eligibility of a transaction.
using System.Collections.Generic;
using System.Diagnostics;
using AndDoneSecureClientLibrary.Api;
using AndDoneSecureClientLibrary.Client;
using AndDoneSecureClientLibrary.Model;
namespace Example
{
public class SecureRefundsEligibilityPostExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.uat.anddone.com";
var apiInstance = new SecureRefundsApi(config);
var xApiKey = "xApiKey_example"; // string | an authorization header
var xAppKey = "xAppKey_example"; // string | an authorization header
var xVersion = 8.14D; // float | x-version
var origin = "origin_example"; // string | origin
var transactionRefundEligibilityRequest = new TransactionRefundEligibilityRequest(); // TransactionRefundEligibilityRequest | refund Detail
try
{
// This API return refund eligibility of a transaction.
RefundEligibility result = apiInstance.SecureRefundsEligibilityPost(xApiKey, xAppKey, xVersion, origin, transactionRefundEligibilityRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SecureRefundsApi.SecureRefundsEligibilityPost: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// This API return refund eligibility of a transaction.
ApiResponse<RefundEligibility> response = apiInstance.SecureRefundsEligibilityPostWithHttpInfo(xApiKey, xAppKey, xVersion, origin, transactionRefundEligibilityRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SecureRefundsApi.SecureRefundsEligibilityPostWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| xApiKey | string | an authorization header | |
| xAppKey | string | an authorization header | |
| xVersion | float | x-version | |
| origin | string | origin | |
| transactionRefundEligibilityRequest | TransactionRefundEligibilityRequest | refund Detail |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful operation | - |
| 400 | Bad Request | - |
| 404 | Not Found | - |
| 500 | Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SecureTransactionDetailDTO SecureRefundsPost (string xApiKey, string xAppKey, float xVersion, string origin, SecureTransactionRefundRequest secureTransactionRefundRequest)
This API will refund a transaction which has been settled by the processor.
using System.Collections.Generic;
using System.Diagnostics;
using AndDoneSecureClientLibrary.Api;
using AndDoneSecureClientLibrary.Client;
using AndDoneSecureClientLibrary.Model;
namespace Example
{
public class SecureRefundsPostExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.uat.anddone.com";
var apiInstance = new SecureRefundsApi(config);
var xApiKey = "xApiKey_example"; // string | an authorization header
var xAppKey = "xAppKey_example"; // string | an authorization header
var xVersion = 8.14D; // float | x-version
var origin = "origin_example"; // string | origin
var secureTransactionRefundRequest = new SecureTransactionRefundRequest(); // SecureTransactionRefundRequest | Refund Detail
try
{
// This API will refund a transaction which has been settled by the processor.
SecureTransactionDetailDTO result = apiInstance.SecureRefundsPost(xApiKey, xAppKey, xVersion, origin, secureTransactionRefundRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SecureRefundsApi.SecureRefundsPost: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// This API will refund a transaction which has been settled by the processor.
ApiResponse<SecureTransactionDetailDTO> response = apiInstance.SecureRefundsPostWithHttpInfo(xApiKey, xAppKey, xVersion, origin, secureTransactionRefundRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SecureRefundsApi.SecureRefundsPostWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| xApiKey | string | an authorization header | |
| xAppKey | string | an authorization header | |
| xVersion | float | x-version | |
| origin | string | origin | |
| secureTransactionRefundRequest | SecureTransactionRefundRequest | Refund Detail |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Successful operation | - |
| 400 | Bad Request | - |
| 404 | Not Found | - |
| 500 | Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]