Report release refund

Remove a purchase of a release from the sales report when the purchase has been refunded.

OAuth

Example request

DELETE https://api.7digital.com/1.2/user/purchase/49193524/release/87654?oauth_token=...

Example Response

{
    "status":"ok",
    "version":"1.2",
    "purchaseId": "49193524"
     "releaseId": "87654"
    }
  }
<response status="ok" version="1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://localhost/api/static/7digitalAPI.xsd">
  <release>      
    <purchaseId>49193524</purchaseId>
    <releaseId>87654</releaseId>
  </release>
</response>

Specific Error Codes

  • 2001 - Cannot find sale with purchaseId {purchaseid} and releaseId {releaseid}. Specified sale could not be found in the sales log
  • 2002 - Cannot exclude sale with purchaseId {purchaseid} and releaseId {releaseid}. Specified sale could not be removed because the sale does not fall within the current reporting period. (The reporting period being from the start of the current month to 5th of the succeeding month. e.g. In January the reporting period is 1st January to 4th February.
Path Params
int32
required

purchase id identifying the transaction at 7digital's end that the refunded item belongs to

int32
required

The MassiveMusic id of the release being refunded

Query Params
string
required

ISO 2-character code of the country the purchase was originally made in.

Language
LoadingLoading…