infusionsoft-nodejs
Version:
A NodeJS SDK automatically generated from Infusionsoft API Swagger definitions.
275 lines (192 loc) • 8.28 kB
Markdown
All URIs are relative to *https://api.infusionsoft.com/crm/rest/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
[**loadOrderUsingGET**](ECommerceApi.md
[**searchUsingGET1**](ECommerceApi.md
[**searchUsingGET2**](ECommerceApi.md
[**transactionByIdUsingGET**](ECommerceApi.md
[**transactionsForOrderUsingGET**](ECommerceApi.md
<a name="loadOrderUsingGET"></a>
> Order loadOrderUsingGET(orderId)
Retrieve an Order
Retrieves a single order
### Example
```javascript
import InfusionsoftRestApi from 'infusionsoft_rest_api';
let apiInstance = new InfusionsoftRestApi.ECommerceApi();
let orderId = 789; // Number | orderId
apiInstance.loadOrderUsingGET(orderId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**orderId** | **Number**| orderId |
[**Order**](Order.md)
No authorization required
- **Content-Type**: application/json
- **Accept**: application/json
<a name="searchUsingGET1"></a>
> OrderList searchUsingGET1(opts)
List Orders
Retrieves a list of all orders using the specified search criteria
### Example
```javascript
import InfusionsoftRestApi from 'infusionsoft_rest_api';
let apiInstance = new InfusionsoftRestApi.ECommerceApi();
let opts = {
'since': "since_example", // String | Date to start searching from ex. `2017-01-01T22:17:59.039Z`
'until': "until_example", // String | Date to search to ex. `2017-01-01T22:17:59.039Z`
'limit': 56, // Number | Sets a total of items to return
'offset': 56, // Number | Sets a beginning range of items to return
'paid': true, // Boolean | Sets paid status of items to return
'order': "order_example", // String | Attribute to order items by
'contactId': 789, // Number | Returns orders for the provided contact id
'productId': 789 // Number | Returns orders containing the provided product id
};
apiInstance.searchUsingGET1(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**since** | **String**| Date to start searching from ex. &
**until** | **String**| Date to search to ex. &
**limit** | **Number**| Sets a total of items to return | [optional]
**offset** | **Number**| Sets a beginning range of items to return | [optional]
**paid** | **Boolean**| Sets paid status of items to return | [optional]
**order** | **String**| Attribute to order items by | [optional]
**contactId** | **Number**| Returns orders for the provided contact id | [optional]
**productId** | **Number**| Returns orders containing the provided product id | [optional]
[**OrderList**](OrderList.md)
No authorization required
- **Content-Type**: application/json
- **Accept**: application/json
<a name="searchUsingGET2"></a>
> TransactionList searchUsingGET2(opts)
List Transactions
Retrieves a list transactions for a given contact
### Example
```javascript
import InfusionsoftRestApi from 'infusionsoft_rest_api';
let apiInstance = new InfusionsoftRestApi.ECommerceApi();
let opts = {
'since': "since_example", // String | Date to start searching from ex. `2017-01-01T22:17:59.039Z`
'until': "until_example", // String | Date to search to ex. `2017-01-01T22:17:59.039Z`
'limit': 56, // Number | Sets a total of items to return
'offset': 56, // Number | Sets a beginning range of items to return
'contactId': 789 // Number | Returns transactions for the provided contact id
};
apiInstance.searchUsingGET2(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**since** | **String**| Date to start searching from ex. &
**until** | **String**| Date to search to ex. &
**limit** | **Number**| Sets a total of items to return | [optional]
**offset** | **Number**| Sets a beginning range of items to return | [optional]
**contactId** | **Number**| Returns transactions for the provided contact id | [optional]
[**TransactionList**](TransactionList.md)
No authorization required
- **Content-Type**: application/json
- **Accept**: application/json
<a name="transactionByIdUsingGET"></a>
> Transaction transactionByIdUsingGET(transactionId)
Retrieve a Transaction
Retrieves a single transaction
### Example
```javascript
import InfusionsoftRestApi from 'infusionsoft_rest_api';
let apiInstance = new InfusionsoftRestApi.ECommerceApi();
let transactionId = 789; // Number | transactionId
apiInstance.transactionByIdUsingGET(transactionId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**transactionId** | **Number**| transactionId |
[**Transaction**](Transaction.md)
No authorization required
- **Content-Type**: application/json
- **Accept**: application/json
<a name="transactionsForOrderUsingGET"></a>
> TransactionList transactionsForOrderUsingGET(orderId, opts)
Retrieve Order Transactions
Retrieves a list of all transactions on a given order using the specified search criteria
### Example
```javascript
import InfusionsoftRestApi from 'infusionsoft_rest_api';
let apiInstance = new InfusionsoftRestApi.ECommerceApi();
let orderId = "orderId_example"; // String | orderId
let opts = {
'since': "since_example", // String | Date to start searching from ex. `2017-01-01T22:17:59.039Z`
'until': "until_example", // String | Date to search to ex. `2017-01-01T22:17:59.039Z`
'limit': 56, // Number | Sets a total of items to return
'offset': 56, // Number | Sets a beginning range of items to return
'contactId': 789 // Number | Returns transactions for the provided contact id
};
apiInstance.transactionsForOrderUsingGET(orderId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**orderId** | **String**| orderId |
**since** | **String**| Date to start searching from ex. &
**until** | **String**| Date to search to ex. &
**limit** | **Number**| Sets a total of items to return | [optional]
**offset** | **Number**| Sets a beginning range of items to return | [optional]
**contactId** | **Number**| Returns transactions for the provided contact id | [optional]
[**TransactionList**](TransactionList.md)
No authorization required
- **Content-Type**: application/json
- **Accept**: application/json