Skip to content

Latest commit

 

History

History
70 lines (52 loc) · 3.13 KB

InvoicePosApi.md

File metadata and controls

70 lines (52 loc) · 3.13 KB

Swagger\Client\InvoicePosApi

All URIs are relative to https://my.sevdesk.de/api/v1

Method HTTP request Description
getInvoicePos GET /InvoicePos Retrieve InvoicePos

getInvoicePos

\Swagger\Client\Model\InlineResponse20022 getInvoicePos($id, $invoice_id, $invoice_object_name, $part_id, $part_object_name)

Retrieve InvoicePos

There are a multitude of parameter which can be used to filter.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$apiInstance = new Swagger\Client\Api\InvoicePosApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 1.2; // float | Retrieve all InvoicePos with this InvoicePos id
$invoice_id = 1.2; // float | Retrieve all invoices positions with this invoice. Must be provided with invoice[objectName]
$invoice_object_name = "invoice_object_name_example"; // string | Only required if invoice[id] was provided. 'Invoice' should be used as value.
$part_id = 1.2; // float | Retrieve all invoices positions with this part. Must be provided with part[objectName]
$part_object_name = "part_object_name_example"; // string | Only required if part[id] was provided. 'Part' should be used as value.

try {
    $result = $apiInstance->getInvoicePos($id, $invoice_id, $invoice_object_name, $part_id, $part_object_name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InvoicePosApi->getInvoicePos: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id float Retrieve all InvoicePos with this InvoicePos id [optional]
invoice_id float Retrieve all invoices positions with this invoice. Must be provided with invoice[objectName] [optional]
invoice_object_name string Only required if invoice[id] was provided. 'Invoice' should be used as value. [optional]
part_id float Retrieve all invoices positions with this part. Must be provided with part[objectName] [optional]
part_object_name string Only required if part[id] was provided. 'Part' should be used as value. [optional]

Return type

\Swagger\Client\Model\InlineResponse20022

Authorization

api_key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]