# EyondCoreApi.PurchaseOrdersApi

All URIs are relative to *https://eyondcoreapi.azurewebsites.net*

Method | HTTP request | Description
------------- | ------------- | -------------
[**deletePurchaseOrder**](PurchaseOrdersApi.md#deletePurchaseOrder) | **DELETE** /api/PurchaseOrders/delete/client/{clientId}/purchaseOrder/{orderId} | 
[**getPurchaseOrder**](PurchaseOrdersApi.md#getPurchaseOrder) | **GET** /api/PurchaseOrders/{clientId} | 
[**getPurchaseOrder_0**](PurchaseOrdersApi.md#getPurchaseOrder_0) | **GET** /api/PurchaseOrders/client/{clientId}/purchaseOrder/{orderId} | 
[**posFPurchaseOrder**](PurchaseOrdersApi.md#posFPurchaseOrder) | **POST** /api/PurchaseOrders/add | 
[**putPurchaseOrder**](PurchaseOrdersApi.md#putPurchaseOrder) | **PUT** /api/PurchaseOrders/modify/client/{clientId}/purchaseOrder/{orderId} | 


<a name="deletePurchaseOrder"></a>
# **deletePurchaseOrder**
> PurchaseOrder deletePurchaseOrder(clientId, orderId)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new EyondCoreApi.PurchaseOrdersApi();

var clientId = 789; // Number | 

var orderId = 789; // Number | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.deletePurchaseOrder(clientId, orderId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **clientId** | **Number**|  | 
 **orderId** | **Number**|  | 

### Return type

[**PurchaseOrder**](PurchaseOrder.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="getPurchaseOrder"></a>
# **getPurchaseOrder**
> [PurchaseOrder] getPurchaseOrder(clientId)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new EyondCoreApi.PurchaseOrdersApi();

var clientId = 789; // Number | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getPurchaseOrder(clientId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **clientId** | **Number**|  | 

### Return type

[**[PurchaseOrder]**](PurchaseOrder.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="getPurchaseOrder_0"></a>
# **getPurchaseOrder_0**
> PurchaseOrder getPurchaseOrder_0(clientId, orderId)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new EyondCoreApi.PurchaseOrdersApi();

var clientId = 789; // Number | 

var orderId = 789; // Number | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getPurchaseOrder_0(clientId, orderId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **clientId** | **Number**|  | 
 **orderId** | **Number**|  | 

### Return type

[**PurchaseOrder**](PurchaseOrder.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="posFPurchaseOrder"></a>
# **posFPurchaseOrder**
> PurchaseOrder posFPurchaseOrder(opts)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new EyondCoreApi.PurchaseOrdersApi();

var opts = { 
  'purchaseOrderModel': new EyondCoreApi.PurchaseOrder() // PurchaseOrder | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.posFPurchaseOrder(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **purchaseOrderModel** | [**PurchaseOrder**](PurchaseOrder.md)|  | [optional] 

### Return type

[**PurchaseOrder**](PurchaseOrder.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

 - **Content-Type**: application/json-patch+json, application/json, text/json, application/_*+json
 - **Accept**: text/plain, application/json, text/json

<a name="putPurchaseOrder"></a>
# **putPurchaseOrder**
> putPurchaseOrder(clientId, orderId, opts)



### Example
```javascript
var EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.ApiClient.instance;

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';

var apiInstance = new EyondCoreApi.PurchaseOrdersApi();

var clientId = 789; // Number | 

var orderId = 789; // Number | 

var opts = { 
  'purchaseOrderModel': new EyondCoreApi.PurchaseOrder() // PurchaseOrder | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.putPurchaseOrder(clientId, orderId, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **clientId** | **Number**|  | 
 **orderId** | **Number**|  | 
 **purchaseOrderModel** | [**PurchaseOrder**](PurchaseOrder.md)|  | [optional] 

### Return type

null (empty response body)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

 - **Content-Type**: application/json-patch+json, application/json, text/json, application/_*+json
 - **Accept**: Not defined

