xero-php-oauth2 AppStore SDK Docs

# Xero AppStore API

## SDK Documentation

# AppStore

# getSubscription

Retrieves a subscription for a given subscriptionId

    /subscriptions/{subscriptionId}

### Usage and SDK Samples

    <?php
    require_once(__DIR__ . '/vendor/autoload.php');

    // Configure OAuth2 access token for authorization: OAuth2
    $config = XeroAPI\XeroPHP\Configuration::getDefaultConfiguration()->setAccessToken( 'YOUR_ACCESS_TOKEN' );

    $apiInstance = new XeroAPI\XeroPHP\Api\AppStoreApi(
        new GuzzleHttp\Client(),
        $config
    );
    $subscriptionId = ""00000000-0000-0000-0000-000000000000"";

    try {
      $result = $apiInstance->getSubscription($subscriptionId);
    } catch (Exception $e) {
      echo 'Exception when calling AppStoreApi->getSubscription: ', $e->getMessage(), PHP_EOL;
    }
    ?>

## Scopes

marketplace.billing | Grant read-only access to fixed assets

## Parameters

Path parameters

Name | Description
--- | ---
subscriptionId* | UUID (uuid) Unique identifier for Subscription object Required