$merchantDataService = new MerchantData\Services\MerchantDataService(); /** * Before anything can be uploaded a request needs to be made to obtain a job ID and file reference ID. * eBay needs to know the job type and a way to identify it. */ $createUploadJobRequest = new BulkDataExchange\Types\CreateUploadJobRequest(); $createUploadJobRequest->uploadJobType = 'ReviseInventoryStatus'; $createUploadJobRequest->UUID = uniqid(); /** * Send the request to the createUploadJob service operation. * * For more information about calling a service operation, see: * http://devbay.net/sdk/guides/getting-started/#service-operation */ print 'Requesting job Id from eBay...'; $createUploadJobResponse = $exchangeService->createUploadJob($createUploadJobRequest); print "Done\n"; /** * Output the result of calling the service operation. * * For more information about working with the service response object, see: * http://devbay.net/sdk/guides/getting-started/#response-object */ if (isset($createUploadJobResponse->errorMessage)) { foreach ($createUploadJobResponse->errorMessage->error as $error) { printf("%s: %s\n\n", $error->severity === BulkDataExchange\Enums\ErrorSeverity::C_ERROR ? 'Error' : 'Warning', $error->message); } } if ($createUploadJobResponse->ack !== 'Failure') { printf("JobId [%s] FileReferenceId [%s]\n", $createUploadJobResponse->jobId, $createUploadJobResponse->fileReferenceId); /**