All URIs are relative to https://api.hubapi.com
| Method | HTTP request | Description |
|---|---|---|
| PostCrmV3ExtensionsAccountingSyncAppIdContactsCreateContact | POST /crm/v3/extensions/accounting/sync/{appId}/contacts | Import contacts |
| PostCrmV3ExtensionsAccountingSyncAppIdProductsCreateProduct | POST /crm/v3/extensions/accounting/sync/{appId}/products | Import products |
ActionResponse PostCrmV3ExtensionsAccountingSyncAppIdContactsCreateContact (int appId, SyncContactsRequest syncContactsRequest)
Import contacts
Imports contacts' properties from an external accounting system to HubSpot. Import details, including property mappings, must be configured previously in HubSpot infrastructure.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCrmV3ExtensionsAccountingSyncAppIdContactsCreateContactExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new SyncApi(config);
var appId = 56; // int | The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
var syncContactsRequest = new SyncContactsRequest(); // SyncContactsRequest |
try
{
// Import contacts
ActionResponse result = apiInstance.PostCrmV3ExtensionsAccountingSyncAppIdContactsCreateContact(appId, syncContactsRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SyncApi.PostCrmV3ExtensionsAccountingSyncAppIdContactsCreateContact: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| appId | int | The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal. | |
| syncContactsRequest | SyncContactsRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
| Status code | Description | Response headers |
|---|---|---|
| 200 | successful operation | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ActionResponse PostCrmV3ExtensionsAccountingSyncAppIdProductsCreateProduct (int appId, SyncProductsRequest syncProductsRequest)
Import products
Imports products' properties from an external accounting system to HubSpot. Import details, including property mappings, must be configured previously in HubSpot infrastructure.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCrmV3ExtensionsAccountingSyncAppIdProductsCreateProductExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new SyncApi(config);
var appId = 56; // int | The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
var syncProductsRequest = new SyncProductsRequest(); // SyncProductsRequest |
try
{
// Import products
ActionResponse result = apiInstance.PostCrmV3ExtensionsAccountingSyncAppIdProductsCreateProduct(appId, syncProductsRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling SyncApi.PostCrmV3ExtensionsAccountingSyncAppIdProductsCreateProduct: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| appId | int | The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal. | |
| syncProductsRequest | SyncProductsRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
| Status code | Description | Response headers |
|---|---|---|
| 200 | successful operation | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]