PHPackages                             ooglek/shareasale-merchant-api-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ooglek/shareasale-merchant-api-sdk

ActiveLibrary[API Development](/categories/api)

ooglek/shareasale-merchant-api-sdk
==================================

Share-A-Sale Merchant API library

v2.0.1(4y ago)016MITPHPPHP &gt;=7.3

Since Jan 17Pushed 4y agoCompare

[ Source](https://github.com/ooglek/shareasale-merchant-api-sdk)[ Packagist](https://packagist.org/packages/ooglek/shareasale-merchant-api-sdk)[ RSS](/packages/ooglek-shareasale-merchant-api-sdk/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (6)Used By (0)

ShareASale Merchant API PHP SDK Client
======================================

[](#shareasale-merchant-api-php-sdk-client)

A PHP SDK for the **Share-A-Sale Merchant API**

ShareASale Merchant API Documentation:

*(you must be logged into a valid Merchant Account to view)*

**NOTE:** This is **NOT** the Affiliate API!

Install
-------

[](#install)

Install [Composer](https://getcomposer.org/) and run the following command:

```
php composer require ooglek/shareasale-merchant-api-sdk

```

### Create the Object

[](#create-the-object)

Calling from your code:

```
$sas = new ooglek\ShareASale\Client(
    '12345',             // MerchantId
    'rAnDoMsTuFf',       // Token
    'sUpErRaNd0mStUfF'   // Secret Key
);

// Returns an array with the Summary of your Merchant account Activity
$records = $sas->activitySummary(
    [
        'datestart' => '15/09/2021',
        'dateend' => '15/08/2021'
    ]
);
```

### Getters and Setters

[](#getters-and-setters)

You can magically get and set any properties in the class by calling their name prefixed with `get` or `set`.

```
$sas->setVersion('3.0');
$sas->getHttpResponse();
```

### Action Methods

[](#action-methods)

Any of the mentioned Actions are implemented magically and case insensitively.

```
$sas->void(['date' => '15/09/2021', 'ordernumber' => 12345]);

$sas->balance();

$sas->todayataglance();
```

### Troubleshooting

[](#troubleshooting)

You can use these properties to access the raw Guzzle request data, in case you are having issues.

- `$this->getHttpResponse()` // Guzzle Response Object
- `$this->getQuery()` // Array of Query Parameters
- `$this->getHeaders()` // Array of HTTP Headers
- `$this->getSig()` // The string that is SHA256 encoded

ShareASale does not publish their error codes, so yeah, I don't know what your error code means either. Contact ShareASale.

Example
-------

[](#example)

Implemented Service Methods
---------------------------

[](#implemented-service-methods)

### Transaction Requests

[](#transaction-requests)

Note: You may need to request special permission for some of these Transaction Actions

- **void**
- **edit**
- **find**
- **new**
- **reference**

### Report Requests

[](#report-requests)

- **transactiondetail**
- **weeklyprogress**
- **affiliatetimespan**
- **activitysummary**
- **datafeeddownloads**
- **todayataglance**
- **staterevenue**
- **report-affiliate**
- **transactioneditreport**
- **transactionvoidreport**
- **apitokencount**
- **ledger**
- **affiliateTags**
- **balance**

### Maintenance Requests

[](#maintenance-requests)

- **bannerList**
- **bannerUpload**
- **bannerEdit**
- **dealList**
- **dealUpload**
- **dealEdit**
- **approveAffiliate**
- **declineAffiliate**
- **MassTagAffiliates**

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~60 days

Total

5

Last Release

1752d ago

Major Versions

v1.2.0 → v2.0.02021-09-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/6cdca28eb6f5336dbdd00ac0378c806b02b7406bdf43b1707c599f226f3f23eb?d=identicon)[ooglek](/maintainers/ooglek)

---

Top Contributors

[![ooglek](https://avatars.githubusercontent.com/u/100755?v=4)](https://github.com/ooglek "ooglek (3 commits)")[![orbex](https://avatars.githubusercontent.com/u/2074126?v=4)](https://github.com/orbex "orbex (3 commits)")

---

Tags

apiclientaffiliateshareasaleooglek

### Embed Badge

![Health badge](/badges/ooglek-shareasale-merchant-api-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/ooglek-shareasale-merchant-api-sdk/health.svg)](https://phpackages.com/packages/ooglek-shareasale-merchant-api-sdk)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k9.5M88](/packages/openai-php-laravel)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[resend/resend-php

Resend PHP library.

617.2M42](/packages/resend-resend-php)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

74331.3k1](/packages/mozex-anthropic-laravel)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
