All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createTermsOfPaymentsResource() | POST /3/termsofpayments | Create a term of payment |
getTermsOfPaymentsResource() | GET /3/termsofpayments/{Code} | Retrieve a single terms of payment |
listTermsOfPaymentsResource() | GET /3/termsofpayments | Retrieve a list of all terms of payments |
removeTermsOfPaymentsResource() | DELETE /3/termsofpayments/{Code} | Remove a term of payment |
updateTermsOfPaymentsResource() | PUT /3/termsofpayments/{Code} | Update a term of payment |
createTermsOfPaymentsResource($terms_of_payment): \FortnoxApi\Model\TermsOfPaymentWrap
Create a term of payment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new FortnoxApi\Api\TermsOfPaymentsResourceApi(
// 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()
);
$terms_of_payment = new \FortnoxApi\Model\TermsOfPaymentWrap(); // \FortnoxApi\Model\TermsOfPaymentWrap | to create
try {
$result = $apiInstance->createTermsOfPaymentsResource($terms_of_payment);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TermsOfPaymentsResourceApi->createTermsOfPaymentsResource: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
terms_of_payment | \FortnoxApi\Model\TermsOfPaymentWrap | to create | [optional] |
\FortnoxApi\Model\TermsOfPaymentWrap
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getTermsOfPaymentsResource($code): \FortnoxApi\Model\TermsOfPaymentWrap
Retrieve a single terms of payment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new FortnoxApi\Api\TermsOfPaymentsResourceApi(
// 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()
);
$code = 'code_example'; // string | identifies the terms of payment
try {
$result = $apiInstance->getTermsOfPaymentsResource($code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TermsOfPaymentsResourceApi->getTermsOfPaymentsResource: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
code | string | identifies the terms of payment |
\FortnoxApi\Model\TermsOfPaymentWrap
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listTermsOfPaymentsResource(): \FortnoxApi\Model\TermsOfPaymentList
Retrieve a list of all terms of payments
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new FortnoxApi\Api\TermsOfPaymentsResourceApi(
// 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->listTermsOfPaymentsResource();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TermsOfPaymentsResourceApi->listTermsOfPaymentsResource: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\FortnoxApi\Model\TermsOfPaymentList
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
removeTermsOfPaymentsResource($code)
Remove a term of payment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new FortnoxApi\Api\TermsOfPaymentsResourceApi(
// 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()
);
$code = 'code_example'; // string | identifies the terms of payment
try {
$apiInstance->removeTermsOfPaymentsResource($code);
} catch (Exception $e) {
echo 'Exception when calling TermsOfPaymentsResourceApi->removeTermsOfPaymentsResource: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
code | string | identifies the terms of payment |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateTermsOfPaymentsResource($code, $term_of_payment): \FortnoxApi\Model\TermsOfPaymentWrap
Update a term of payment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new FortnoxApi\Api\TermsOfPaymentsResourceApi(
// 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()
);
$code = 'code_example'; // string | identifies the term of payment
$term_of_payment = new \FortnoxApi\Model\TermsOfPaymentWrap(); // \FortnoxApi\Model\TermsOfPaymentWrap | term of payment to update
try {
$result = $apiInstance->updateTermsOfPaymentsResource($code, $term_of_payment);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TermsOfPaymentsResourceApi->updateTermsOfPaymentsResource: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
code | string | identifies the term of payment | |
term_of_payment | \FortnoxApi\Model\TermsOfPaymentWrap | term of payment to update | [optional] |
\FortnoxApi\Model\TermsOfPaymentWrap
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]