All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
get() | GET /api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id} | Get custom outbound document |
release() | PUT /api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id}/release | Release custom outbound document |
save() | PUT /api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id} | Save a custom outbound document |
voidDocument() | PUT /api/warehouse/documentdeliveries/custom/outbound-v1/{type}/{id}/void | Void custom outbound document |
get($type, $id): \FortnoxApi\Model\CustomOutboundDocument
Get custom outbound document
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new FortnoxApi\Api\CustomOutboundDocumentResourceApi(
// 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()
);
$type = 'type_example'; // string | document type
$id = 'id_example'; // string | document id
try {
$result = $apiInstance->get($type, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomOutboundDocumentResourceApi->get: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
type | string | document type | |
id | string | document id |
\FortnoxApi\Model\CustomOutboundDocument
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
release($type, $id)
Release custom outbound document
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new FortnoxApi\Api\CustomOutboundDocumentResourceApi(
// 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()
);
$type = 'type_example'; // string | document type
$id = 'id_example'; // string | document id
try {
$apiInstance->release($type, $id);
} catch (Exception $e) {
echo 'Exception when calling CustomOutboundDocumentResourceApi->release: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
type | string | document type | |
id | string | document id |
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]
save($type, $id, $document): \FortnoxApi\Model\CustomOutboundDocument
Save a custom outbound document
If type is not known, it will be registered as belonging to the OUTBOUND category.
If type is an existing custom document type of category INBOUND an error is thrown.
If type is invalid an error is thrown.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new FortnoxApi\Api\CustomOutboundDocumentResourceApi(
// 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()
);
$type = 'type_example'; // string | the type of the custom outbound document, min 1 character, max 25 characters, may contain letters A-Z, digits 0-9, underscore (_), and dash (-). Always stored as upper case.
$id = 'id_example'; // string | the id of the custom outbound document, min 1 character, max 25 characters, may only contain digits 0-9
$document = new \FortnoxApi\Model\CustomOutboundDocument(); // \FortnoxApi\Model\CustomOutboundDocument | the <code>CustomOutboundDocument</code> to create
try {
$result = $apiInstance->save($type, $id, $document);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomOutboundDocumentResourceApi->save: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
type | string | the type of the custom outbound document, min 1 character, max 25 characters, may contain letters A-Z, digits 0-9, underscore (_), and dash (-). Always stored as upper case. | |
id | string | the id of the custom outbound document, min 1 character, max 25 characters, may only contain digits 0-9 | |
document | \FortnoxApi\Model\CustomOutboundDocument | the <code>CustomOutboundDocument</code> to create | [optional] |
\FortnoxApi\Model\CustomOutboundDocument
No authorization required
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
voidDocument($type, $id, $force)
Void custom outbound document
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new FortnoxApi\Api\CustomOutboundDocumentResourceApi(
// 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()
);
$type = 'type_example'; // string | document type
$id = 'id_example'; // string | document id
$force = True; // bool | true if the document should be voided even if the document has connected outbounds, defaults to false.
try {
$apiInstance->voidDocument($type, $id, $force);
} catch (Exception $e) {
echo 'Exception when calling CustomOutboundDocumentResourceApi->voidDocument: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
type | string | document type | |
id | string | document id | |
force | bool | true if the document should be voided even if the document has connected outbounds, defaults to false. | [optional] |
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]