This is Evermile's commercial API for handling delivery quotes and orders
For more information, please visit https://www.evermile.io.
openapi-generator generate -i oapi.yaml -g php -o ./
PHP 7.4 and later. Should also work with PHP 8.0.
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: Prod
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: Sandbox
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\GDPRApi(
// 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
);
$type = 'type_example'; // string
$gdpr_customer_post_request = new \OpenAPI\Client\Model\GdprCustomerPostRequest(); // \OpenAPI\Client\Model\GdprCustomerPostRequest
$x_evermile_merchant_id = 'x_evermile_merchant_id_example'; // string | The merchant ID, if using a client credentials token. Will be ignored with a regular user token.
$x_evermile_trace_id = 'x_evermile_trace_id_example'; // string | A trace ID for tracing the request through the Evermile platform
try {
$apiInstance->gdprCustomerPost($type, $gdpr_customer_post_request, $x_evermile_merchant_id, $x_evermile_trace_id);
} catch (Exception $e) {
echo 'Exception when calling GDPRApi->gdprCustomerPost: ', $e->getMessage(), PHP_EOL;
}
All URIs are relative to https://api.prod.evermile.io/v1/commercial
Class | Method | HTTP request | Description |
---|---|---|---|
GDPRApi | gdprCustomerPost | POST /gdpr/customer | Customer data request |
GDPRApi | gdprMerchantPost | POST /gdpr/merchant | Merchant data request |
LocationsApi | senderInfoPut | PUT /sender_info | Create or update a delivery location. |
LocationsApi | senderInfoSenderInfoIdDelete | DELETE /sender_info/{senderInfoId} | Delete a delivery location. |
LocationsApi | senderInfosGet | GET /sender_infos | Get sender and location infos |
OrdersApi | orderMultiRoutePost | POST /order/multiRoute | Order a route with multiple orders |
OrdersApi | orderOrderIdDelete | DELETE /order/{orderId} | Cancel an order |
OrdersApi | orderOrderIdGet | GET /order/{orderId} | Fetch order details |
OrdersApi | orderOrderIdLabelGet | GET /order/{orderId}/label | Create a label for an order |
OrdersApi | orderOrderIdLiveTrackingGet | GET /order/{orderId}/liveTracking | Fetch live order tracking |
OrdersApi | orderOrderIdPatch | PATCH /order/{orderId} | Update order details |
OrdersApi | orderPost | POST /order | Order a delivery |
OrdersApi | ordersGet | GET /orders | Get orders |
OrdersApi | ordersPaginatedHistoryGet | GET /orders/paginatedHistory | Get orders history with pagination |
PickupLocationsApi | locationPut | PUT /location | Create or update a delivery location |
PickupLocationsApi | locationsGet | GET /locations | Get pickup locations |
PickupLocationsApi | locationsLocationIdDelete | DELETE /locations/{locationId} | Delete a pickup location |
QuotesApi | proposalProposalIdGet | GET /proposal/{proposalId} | Retrieve a proposal |
QuotesApi | quoteMultiRoutePost | POST /quote/multiRoute | Get a quote for a route |
QuotesApi | quotePost | POST /quote | Get a quote |
SchemaApi | schemaGet | GET /schema | API schema |
ValidationsApi | addressValidateGet | GET /address/validate | Validate address |
ValidationsApi | emailValidateGet | GET /email/validate | Validate email |
ValidationsApi | phoneValidateGet | GET /phone/validate | Validate phone number |
- GdprCustomerPostRequest
- LocationPut200Response
- LocationPutRequest
- LocationPutRequestLocation
- LocationsGet200Response
- LocationsGet200ResponseLocationsInner
- LocationsGet200ResponseLocationsInnerAllOfDeliveryConfig
- LocationsGet200ResponseLocationsInnerAllOfSchedule
- LocationsGet200ResponseLocationsInnerAllOfScheduleMonday
- OrderMultiRoutePost201Response
- OrderMultiRoutePost201ResponseRoutesInner
- OrderMultiRoutePostRequest
- OrderMultiRoutePostRequestAdditionalDropoffInfoInner
- OrderOrderIdDelete402Response
- OrderOrderIdPatchRequest
- OrderPost201Response
- OrderPost201ResponseCostBreakdownInner
- OrderPost201ResponseCostBreakdownInnerCancellationFeeInfo
- OrderPost201ResponseCostBreakdownInnerLiabilityInfo
- OrderPost201ResponseCostBreakdownInnerWaiverDetails
- OrderPost201ResponseCourierLocation
- OrderPost201ResponseHappiness
- OrderPost201ResponseParcelsInner
- OrderPostRequest
- OrderPostRequestDropoffContactDetails
- OrderPostRequestPickupContactDetails
- OrdersPaginatedHistoryGet200Response
- OrdersPaginatedHistoryGet200ResponseResultsInner
- OrdersPaginatedHistoryGet200ResponseResultsInnerCustomer
- OrdersPaginatedHistoryGet200ResponseResultsInnerDropoffGeoLocation
- OrdersPaginatedHistoryGet200ResponseResultsInnerEditInfo
- OrdersPaginatedHistoryGet200ResponseResultsInnerOrderTrackingInfo
- OrdersPaginatedHistoryGet200ResponseResultsInnerPickupWindow
- OrdersPaginatedHistoryGet200ResponseResultsInnerProofOfCollectionInner
- OrdersPaginatedHistoryGet200ResponseResultsInnerRouteInfo
- OrdersPaginatedHistoryGet200ResponseResultsInnerScheduleInfo
- OrdersPaginatedHistoryGet200ResponseResultsInnerScheduleInfoScheduleDetails
- OrdersPaginatedHistoryGet200ResponseResultsInnerScheduleInfoScheduleDetailsWeekdaysInner
- OrdersPaginatedHistoryGet200ResponseResultsInnerSenderContactDetails
- OrdersPaginatedHistoryGet200ResponseResultsInnerStatus
- ProposalProposalIdGet200Response
- QuoteMultiRoutePost200Response
- QuoteMultiRoutePost200ResponseProposalsInner
- QuoteMultiRoutePost200ResponseProposalsInnerPrice
- QuoteMultiRoutePost200ResponseProposalsInnerPricePerDrop
- QuoteMultiRoutePost200ResponseProposalsInnerPriceVat
- QuoteMultiRoutePost200ResponseProposalsInnerRoutesInner
- QuoteMultiRoutePost200ResponseProposalsInnerRoutesInnerPickupTasksInner
- QuoteMultiRoutePostRequest
- QuoteMultiRoutePostRequestOriginsInner
- QuoteMultiRoutePostRequestOriginsInnerLocationConstraints
- QuoteMultiRoutePostRequestOriginsInnerLocationConstraintsTimeWindow
- QuoteMultiRoutePostRequestParams
- QuoteMultiRoutePostRequestParamsOptimizationParamsInner
- QuoteMultiRoutePostRequestParamsOptimizationParamsInnerDriversScheduleInner
- QuoteMultiRoutePostRequestParamsOptimizationParamsInnerDriversScheduleInnerMonday
- QuotePost200Response
- QuotePost200ResponseCancellationFee
- QuotePost200ResponseCurrentPrice
- QuotePost200ResponseDateProposalsInner
- QuotePost200ResponseDateProposalsInnerErrorReason
- QuotePost200ResponseDateProposalsInnerProposalsInner
- QuotePost200ResponseDateProposalsInnerProposalsInnerProposal
- QuotePost200ResponseDateProposalsInnerProposalsInnerProposalHandoffInfo
- QuotePost200ResponseDateProposalsInnerProposalsInnerProposalHandoffInfoContactInfo
- QuotePost200ResponseDateProposalsInnerProposalsInnerProposalHandoffInfoContactInfoAddress
- QuotePost200ResponseDateProposalsInnerProposalsInnerProposalHandoffInfoHandoffTime
- QuotePost200ResponseDateProposalsInnerProposalsInnerProposalOrigin
- QuotePost200ResponseDateProposalsInnerProposalsInnerProposalOriginGeoLocation
- QuotePost200ResponseDateProposalsInnerProposalsInnerProposalSpecificLiabilityCoverage
- QuotePost200ResponseOverrideDisplayHours
- QuotePostRequest
- QuotePostRequestDestinationLocationsInner
- QuotePostRequestDestinationLocationsInnerDeliverySlot
- QuotePostRequestParcelsInner
- QuotePostRequestParcelsInnerDimensions
- QuotePostRequestParcelsInnerItemsListInner
- QuotePostRequestParcelsInnerItemsListInnerCollectionConfig
- QuotePostRequestParcelsInnerItemsListInnerCollectionConfigBlackoutDatesInner
- QuotePostRequestParcelsInnerItemsListInnerCollectionConfigPreparationConfig
- QuotePostRequestParcelsInnerItemsListInnerCollectionConfigPreparationConfigPreparationTime
- QuotePostRequestParcelsInnerItemsListInnerCollectionConfigSchedule
- QuotePostRequestParcelsInnerItemsListInnerCollectionConfigScheduleMonday
- QuotePostRequestParcelsInnerItemsListInnerValue
- QuotePostRequestParcelsInnerItemsListInnerValueDiscount
- QuotePostRequestPickupInfo
- QuotePostRequestPickupInfoOneOf
- QuotePostRequestPickupInfoOneOf1
- QuotePostRequestPickupInfoOneOf1Inner
- QuotePostRequestPickupInfoOneOf1InnerAddress
- QuotePostRequestPickupInfoOneOf1InnerAddressGeoLocation
- QuotePostRequestPickupInfoOneOf1InnerDateRange
- QuotePostRequestPickupInfoOneOfPickupLocationsInner
- QuotePostRequestPickupInfoOneOfPickupLocationsInnerDateRange
- QuotePostRequestPickupWindow
Authentication schemes defined for the API:
- Type:
OAuth
- Flow:
application
- Authorization URL: ``
- Scopes:
- order: Order deliveries
- read: Get quotes and read information about deliveries
- Type:
OAuth
- Flow:
application
- Authorization URL: ``
- Scopes:
- order: Order deliveries
- read: Get quotes and read information about deliveries
To run the tests, use:
composer install
vendor/bin/phpunit
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.0
- Generator version:
7.7.0
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen