Skip to content

Latest commit

 

History

History
80 lines (53 loc) · 1.79 KB

merchants.md

File metadata and controls

80 lines (53 loc) · 1.79 KB

Merchants

IMerchantsApi merchantsApi = client.MerchantsApi;

Class Name

MerchantsApi

Methods

List Merchants

Returns Merchant information for a given access token.

If you don't know a Merchant ID, you can use this endpoint to retrieve the merchant ID for an access token. You can specify your personal access token to get your own merchant information or specify an OAuth token to get the information for the merchant that granted you access.

If you know the merchant ID, you can also use the RetrieveMerchant endpoint to get the merchant information.

ListMerchantsAsync(int? cursor = null)

Parameters

Parameter Type Tags Description
cursor int? Query, Optional The cursor generated by the previous response.

Response Type

Task<Models.ListMerchantsResponse>

Example Usage

try
{
    ListMerchantsResponse result = await merchantsApi.ListMerchantsAsync(null);
}
catch (ApiException e){};

Retrieve Merchant

Retrieve a Merchant object for the given merchant_id.

RetrieveMerchantAsync(string merchantId)

Parameters

Parameter Type Tags Description
merchantId string Template, Required The ID of the merchant to retrieve.

Response Type

Task<Models.RetrieveMerchantResponse>

Example Usage

string merchantId = "merchant_id0";

try
{
    RetrieveMerchantResponse result = await merchantsApi.RetrieveMerchantAsync(merchantId);
}
catch (ApiException e){};