All URIs are relative to https://app.shipmondo.com/api/public/v3
Method | HTTP request | Description |
---|---|---|
Account | GET /account/ | Retrieve account infomation |
AccountBalanceGet | GET /account/balance | Retrieve balance |
PaymentRequestsGet | GET /account/payment_requests | List all payment requests |
Account200Response Account ()
Retrieve account infomation
Returns infomation on the currenctly logged in account.
using System.Collections.Generic;
using System.Diagnostics;
using ShipmondoApi.Dotnet.Api;
using ShipmondoApi.Dotnet.Client;
using ShipmondoApi.Dotnet.Model;
namespace Example
{
public class AccountExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://app.shipmondo.com/api/public/v3";
// Configure HTTP basic authorization: basicAuth
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new AccountApi(config);
try
{
// Retrieve account infomation
Account200Response result = apiInstance.Account();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AccountApi.Account: " + 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
{
// Retrieve account infomation
ApiResponse<Account200Response> response = apiInstance.AccountWithHttpInfo();
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 AccountApi.AccountWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful. | - |
401 | Unauthorized. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountBalanceGet200Response AccountBalanceGet ()
Retrieve balance
Returns the current balance of your account.
using System.Collections.Generic;
using System.Diagnostics;
using ShipmondoApi.Dotnet.Api;
using ShipmondoApi.Dotnet.Client;
using ShipmondoApi.Dotnet.Model;
namespace Example
{
public class AccountBalanceGetExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://app.shipmondo.com/api/public/v3";
// Configure HTTP basic authorization: basicAuth
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new AccountApi(config);
try
{
// Retrieve balance
AccountBalanceGet200Response result = apiInstance.AccountBalanceGet();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AccountApi.AccountBalanceGet: " + 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
{
// Retrieve balance
ApiResponse<AccountBalanceGet200Response> response = apiInstance.AccountBalanceGetWithHttpInfo();
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 AccountApi.AccountBalanceGetWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful. | - |
401 | Unauthorized. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<PaymentRequest> PaymentRequestsGet (DateTime? createdAtMin = null, DateTime? createdAtMax = null, int? perPage = null, int? page = null)
List all payment requests
Returns a list of your payment requests. If there are unsettled payment requests, they can block you from using the API. Unsettled payment requests must settled through the Shipmondo app, unless the account is set to automatic settlement.
using System.Collections.Generic;
using System.Diagnostics;
using ShipmondoApi.Dotnet.Api;
using ShipmondoApi.Dotnet.Client;
using ShipmondoApi.Dotnet.Model;
namespace Example
{
public class PaymentRequestsGetExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://app.shipmondo.com/api/public/v3";
// Configure HTTP basic authorization: basicAuth
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new AccountApi(config);
var createdAtMin = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | \"From\" timestamp for the payment requests to be included in the filter. Examples: * 2017-06-19T11:00:03.305+02:00 * 2017-06-19 will be transformed into 2017-06-19T00:00:00.000+02:00 (optional)
var createdAtMax = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | \"To\" timestamp for the payment requests to be included in the filter. Examples: * 2017-06-29T11:00:03.305+02:00 * 2017-06-29 will be transformed into 2017-06-29T00:00:00.000+02:00 (optional)
var perPage = 20; // int? | For pagination. Defines how many entries are returned per page. (optional) (default to 20)
var page = 1; // int? | For pagination. Defines which page the results are fetched from. (optional) (default to 1)
try
{
// List all payment requests
List<PaymentRequest> result = apiInstance.PaymentRequestsGet(createdAtMin, createdAtMax, perPage, page);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AccountApi.PaymentRequestsGet: " + 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
{
// List all payment requests
ApiResponse<List<PaymentRequest>> response = apiInstance.PaymentRequestsGetWithHttpInfo(createdAtMin, createdAtMax, perPage, page);
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 AccountApi.PaymentRequestsGetWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
createdAtMin | DateTime? | "From" timestamp for the payment requests to be included in the filter. Examples: * 2017-06-19T11:00:03.305+02:00 * 2017-06-19 will be transformed into 2017-06-19T00:00:00.000+02:00 | [optional] |
createdAtMax | DateTime? | "To" timestamp for the payment requests to be included in the filter. Examples: * 2017-06-29T11:00:03.305+02:00 * 2017-06-29 will be transformed into 2017-06-29T00:00:00.000+02:00 | [optional] |
perPage | int? | For pagination. Defines how many entries are returned per page. | [optional] [default to 20] |
page | int? | For pagination. Defines which page the results are fetched from. | [optional] [default to 1] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful. | * X-Current-Page - Pagination - Current Page. * X-Per-Page - Pagination - Per Page. * X-Total-Count - Pagination - Total Count. * X-Total-Pages - Pagination - Total Pages Count. |
401 | Unauthorized. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]