All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
apiV1PartyIdPurchaseOrderDocumentIdStatusGet() | GET /api/v1/{partyId}/purchaseOrder/{documentId}/status | Get purchase order statuses. |
apiV1PartyIdPurchaseOrderQueryRecipientPartyPost() | POST /api/v1/{partyId}/purchaseOrder/queryRecipientParty | Lookup the recipient party (seller) for possible delivery. |
sendOrderCancellation() | POST /api/v1/{partyId}/purchaseOrder/{documentId}/cancel | Send order cancellation to let the seller know the order is cancelled. |
sendPurchaseOrder() | POST /api/v1/{partyId}/purchaseOrder/send | Send a purchase order. |
apiV1PartyIdPurchaseOrderDocumentIdStatusGet($party_id, $document_id): \EConnect\Psb\Model\DocumentStatus[]
Get purchase order statuses.
Get list of statuses of the purchase order.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Subscription-Key
$config = EConnect\Psb\Configuration::getDefaultConfiguration()->setApiKey('Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = EConnect\Psb\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Subscription-Key', 'Bearer');
// Configure OAuth2 access token for authorization: Bearer
$config = EConnect\Psb\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new EConnect\Psb\Api\PurchaseOrderApi(
// 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
);
$party_id = 'party_id_example'; // string | The sender (buyer) partyId.
$document_id = 'document_id_example'; // string | The service bus documentId.
try {
$result = $apiInstance->apiV1PartyIdPurchaseOrderDocumentIdStatusGet($party_id, $document_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PurchaseOrderApi->apiV1PartyIdPurchaseOrderDocumentIdStatusGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
party_id | string | The sender (buyer) partyId. | |
document_id | string | The service bus documentId. |
\EConnect\Psb\Model\DocumentStatus[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV1PartyIdPurchaseOrderQueryRecipientPartyPost($party_id, $request_body, $preferred_document_type_id, $document_family): \EConnect\Psb\Model\LookupParty
Lookup the recipient party (seller) for possible delivery.
The returned recipient partyId should be used as endpointId in the purchase order, order change or order cancellation.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Subscription-Key
$config = EConnect\Psb\Configuration::getDefaultConfiguration()->setApiKey('Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = EConnect\Psb\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Subscription-Key', 'Bearer');
// Configure OAuth2 access token for authorization: Bearer
$config = EConnect\Psb\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new EConnect\Psb\Api\PurchaseOrderApi(
// 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
);
$party_id = 'party_id_example'; // string | The sender (buyer) partyId.
$request_body = array('request_body_example'); // string[] | All possible partyIds of the recipient party.
$preferred_document_type_id = 'preferred_document_type_id_example'; // string | The source or preferred documentTypeId to match with and to determine the partyId format.
$document_family = new \EConnect\Psb\Model\\EConnect\Psb\Model\OrderDocumentFamily(); // \EConnect\Psb\Model\OrderDocumentFamily | Document family
try {
$result = $apiInstance->apiV1PartyIdPurchaseOrderQueryRecipientPartyPost($party_id, $request_body, $preferred_document_type_id, $document_family);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PurchaseOrderApi->apiV1PartyIdPurchaseOrderQueryRecipientPartyPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
party_id | string | The sender (buyer) partyId. | |
request_body | string[] | All possible partyIds of the recipient party. | |
preferred_document_type_id | string | The source or preferred documentTypeId to match with and to determine the partyId format. | [optional] |
document_family | \EConnect\Psb\Model\OrderDocumentFamily | Document family | [optional] |
\EConnect\Psb\Model\LookupParty
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
sendOrderCancellation($party_id, $document_id, $order_cancellation): \EConnect\Psb\Model\Document
Send order cancellation to let the seller know the order is cancelled.
Send order cancellation message.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Subscription-Key
$config = EConnect\Psb\Configuration::getDefaultConfiguration()->setApiKey('Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = EConnect\Psb\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Subscription-Key', 'Bearer');
// Configure OAuth2 access token for authorization: Bearer
$config = EConnect\Psb\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new EConnect\Psb\Api\PurchaseOrderApi(
// 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
);
$party_id = 'party_id_example'; // string | Your partyId (buyer).
$document_id = 'document_id_example'; // string | DocumentId that the cancellation is about.
$order_cancellation = new \EConnect\Psb\Model\OrderCancellation(); // \EConnect\Psb\Model\OrderCancellation | Order cancellation message.
try {
$result = $apiInstance->sendOrderCancellation($party_id, $document_id, $order_cancellation);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PurchaseOrderApi->sendOrderCancellation: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
party_id | string | Your partyId (buyer). | |
document_id | string | DocumentId that the cancellation is about. | |
order_cancellation | \EConnect\Psb\Model\OrderCancellation | Order cancellation message. |
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
sendPurchaseOrder($party_id, $file, $receiver_id, $channel): \EConnect\Psb\Model\Document
Send a purchase order.
Add file to purchase order queue for sending. The returned id is the documentId/traceId that will be used as in status updates.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Subscription-Key
$config = EConnect\Psb\Configuration::getDefaultConfiguration()->setApiKey('Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = EConnect\Psb\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Subscription-Key', 'Bearer');
// Configure OAuth2 access token for authorization: Bearer
$config = EConnect\Psb\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new EConnect\Psb\Api\PurchaseOrderApi(
// 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
);
$party_id = 'party_id_example'; // string | The sender (buyer) partyId.
$file = '/path/to/file.txt'; // \SplFileObject | Multipart file upload.
$receiver_id = 'receiver_id_example'; // string | An optional receiver partyId to enforce delivery to a specific endpoint. The receiverId will be injected into the document.
$channel = 'channel_example'; // string | An optional parameter to enforce the use of a delivery channel.
try {
$result = $apiInstance->sendPurchaseOrder($party_id, $file, $receiver_id, $channel);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PurchaseOrderApi->sendPurchaseOrder: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
party_id | string | The sender (buyer) partyId. | |
file | \SplFileObject**\SplFileObject** | Multipart file upload. | |
receiver_id | string | An optional receiver partyId to enforce delivery to a specific endpoint. The receiverId will be injected into the document. | [optional] |
channel | string | An optional parameter to enforce the use of a delivery channel. | [optional] |
- Content-Type:
multipart/form-data
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]