getOfferingPurchaseHistory

This method is used to retrieve the history of all trades (and details of the trades) created for an offering. The Offering ID is required as a request parameter to fetch the purchase history.

Request Parameters

ParameterRequiredTypeDescription
clientIDyesstringTransactAPI Client ID
developerAPIKeyyesstringTransactAPI Developer Key
offeringIdyesstringOffering ID that is generated by the API when an Offering is created (createOffering)

Sample Request

curl -k -X POST https://api-sandboxdash.norcapsecurities.com/tapiv3/index.php/v3/getOfferingPurchaseHistory
-d developerAPIKey=somedeveloperkey
-d clientID=someclientid
-d offeringId=8139

Response Parameters

ParameterTypeDescription
statusCodestringAPI Status Code
statusDescstringAPI Status Description
offeringPurchasedDetailsstringReturns an array of offering purchased history

Sample Response

{
  "statusCode": "101",
  "statusDesc": "Ok",
  "Offering purchased details": {
    "offering_purchase_history": [
      {
        "tradeId": "539263448",
        "accountId": "A55779",
        "offeringId": "8139",
        "totalAmount": "10.000000",
        "totalShares": "10.000000",
        "purchaseDate": "2016-10-14 16:26:12",
        "accountName": "Sara Individual",
        "offeringTotalShares": "100000.000000",
        "targetAmount": "89890.000000",
        "remainingShares": "97892.000000"
      },
      {
        "tradeId": "962934972",
        "accountId": "A07061",
        "offeringId": "8139",
        "totalAmount": "100.000000",
        "totalShares": "100.000000",
        "purchaseDate": "2016-10-14 16:18:16",
        "accountName": "Borazan Joint",
        "offeringTotalShares": "100000.000000",
        "targetAmount": "89890.000000",
        "remainingShares": "97892.000000"
      },
      {
        "tradeId": "653879815",
        "accountId": "A07061",
        "offeringId": "8139",
        "totalAmount": "999.000000",
        "totalShares": "999.000000",
        "purchaseDate": "2016-07-19 19:02:40",
        "accountName": "Borazan Joint",
        "offeringTotalShares": "100000.000000",
        "targetAmount": "89890.000000",
        "remainingShares": "97892.000000"
      },
      {
        "tradeId": "425903603",
        "accountId": "A07061",
        "offeringId": "8139",
        "totalAmount": "999.000000",
        "totalShares": "999.000000",
        "purchaseDate": "2016-07-19 18:52:05",
        "accountName": "Borazan Joint",
        "offeringTotalShares": "100000.000000",
        "targetAmount": "89890.000000",
        "remainingShares": "97892.000000"
      }
    ],
    "totalAmountRaised": 2108,
    "totalShares": 400000,
    "totalSharesPurchased": 2108,
    "totalSharesLeft": "97892.000000",
    "balanceAmount": "89890.000000",
    "offeringId": "8139"
  }
}

Test it Yourself!

Language
Click Try It! to start a request and see the response here!