Skip to content

Latest commit

 

History

History
118 lines (77 loc) · 3.78 KB

InvoiceSettingsApi.md

File metadata and controls

118 lines (77 loc) · 3.78 KB

SynergiTech\Sage\InvoiceSettingsApi

All URIs are relative to https://api.accounting.sage.com/v3.1, except if the operation defines another base path.

Method HTTP request Description
getInvoiceSettings() GET /invoice_settings Returns all Invoice Settings
putInvoiceSettings() PUT /invoice_settings Updates a Invoice Settings

getInvoiceSettings()

getInvoiceSettings(): \SynergiTech\Sage\Model\InvoiceSettings

Returns all Invoice Settings

Endpoint Availability * Accounting Plus: 🇨🇦, 🇪🇸, 🇫🇷, 🇬🇧, 🇮🇪, 🇺🇸 * Accounting Standard: 🇬🇧, 🇮🇪 * Accounting Start: 🇨🇦, 🇪🇸, 🇫🇷, 🇬🇧, 🇮🇪, 🇺🇸 ### Access Control Restrictions Requires the authenticated user to have any mentioned role in one of the listed areas: * Area: Settings: Full Access, Read Only

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new SynergiTech\Sage\Api\InvoiceSettingsApi(
    // 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()
);

try {
    $result = $apiInstance->getInvoiceSettings();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InvoiceSettingsApi->getInvoiceSettings: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\SynergiTech\Sage\Model\InvoiceSettings

Authorization

No authorization required

HTTP request headers

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

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

putInvoiceSettings()

putInvoiceSettings($invoiceSettings): \SynergiTech\Sage\Model\InvoiceSettings

Updates a Invoice Settings

Endpoint Availability * Accounting Plus: 🇨🇦, 🇪🇸, 🇫🇷, 🇬🇧, 🇮🇪, 🇺🇸 * Accounting Standard: 🇬🇧, 🇮🇪 * Accounting Start: 🇨🇦, 🇪🇸, 🇫🇷, 🇬🇧, 🇮🇪, 🇺🇸 ### Access Control Restrictions Requires the authenticated user to have any mentioned role in one of the listed areas: * Area: Settings: Full Access

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new SynergiTech\Sage\Api\InvoiceSettingsApi(
    // 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()
);
$invoiceSettings = new \SynergiTech\Sage\Model\PutInvoiceSettings(); // \SynergiTech\Sage\Model\PutInvoiceSettings

try {
    $result = $apiInstance->putInvoiceSettings($invoiceSettings);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InvoiceSettingsApi->putInvoiceSettings: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
invoiceSettings \SynergiTech\Sage\Model\PutInvoiceSettings

Return type

\SynergiTech\Sage\Model\InvoiceSettings

Authorization

No authorization required

HTTP request headers

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

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