All URIs are relative to https://api.digitalriver.com
Method | HTTP request | Description |
---|---|---|
removeStoreCreditsCallout | DELETE /checkouts/store-credits/{upstreamId} | Remove store credit callout |
storeCreditsCallout | POST /checkouts/store-credits | Store credit callout |
removeStoreCreditsCallout($upstream_id)
Remove store credit callout
Store credit callout
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = DigitalRiver\ApiSdk\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new DigitalRiver\ApiSdk\Api\StoreCreditCalloutApi(
// 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
);
$upstream_id = 'upstream_id_example'; // string | The unique identifier of the store credit
try {
$apiInstance->removeStoreCreditsCallout($upstream_id);
} catch (Exception $e) {
echo 'Exception when calling StoreCreditCalloutApi->removeStoreCreditsCallout: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
upstream_id | string | The unique identifier of the store credit |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\DigitalRiver\ApiSdk\Model\StoreCreditValidationResponse storeCreditsCallout($store_credit_authorization_request)
Store credit callout
Store credit callout
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
$config = DigitalRiver\ApiSdk\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new DigitalRiver\ApiSdk\Api\StoreCreditCalloutApi(
// 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
);
$store_credit_authorization_request = new \DigitalRiver\ApiSdk\Model\StoreCreditAuthorizationRequest(); // \DigitalRiver\ApiSdk\Model\StoreCreditAuthorizationRequest |
// Refer \DigitalRiver\ApiSdk\Model\StoreCreditAuthorizationRequest::$setters in digital-river-php/lib/Model/StoreCreditAuthorizationRequest.php to set the properties.
try {
$result = $apiInstance->storeCreditsCallout($store_credit_authorization_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling StoreCreditCalloutApi->storeCreditsCallout: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
store_credit_authorization_request | \DigitalRiver\ApiSdk\Model\StoreCreditAuthorizationRequest | [optional] |
\DigitalRiver\ApiSdk\Model\StoreCreditValidationResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]