没有使用数据流错误的权限(皇家邮政运输API)


No permission to use Datastream error (Royal Mail Shipping API)

我正在使用皇家邮政运输API来'创建发货请求' &创建"打印标签"。

打印标签请求可以通过多种方式完成,我想以PNG格式获得这个打印标签,这很容易通过传递'PNG'作为参数使用API完成。然而,由于某种原因,当我var_dump响应错误时,我得到了以下错误:

[errorCode] => E1184
[errorDescription] => No permission to use Datastream
我的代码如下:
public function PrintLabel($shipmentNumber, $order_tracking_id, $outputFormat = 'PDF')
{
    $time = gmdate('Y-m-d'TH:i:s');
    $request = array(
            'integrationHeader' => array(
                'dateTime' => $time,
                'version' => '2',
                'identification' => array(
                    'applicationId' => $this->api_application_id,
                    'transactionId' => $order_tracking_id
                )
            ),
            'shipmentNumber' => $shipmentNumber,
            'outputFormat' => $outputFormat, // PDF, DS, DSPDF, PNG, DSPNG
    );
    $type = 'printLabel';
    $response = $this->makeRequest($type, $request);
    return $response->label;
} // ef

$rm = new RoyalMailLabelRequest();
$response = $rm->PrintLabel('TTT000358756GB', '276831601444829801', 'PNG');
echo $response;

谁能建议为什么我得到这个"不允许使用数据流错误"?

皇家邮政默认禁用PNG标签生成功能,我必须请求将其打开。