POST api/account/task/srn-search-task

Submit SRN Enquiry Task

Request Information

URI Parameters

None.

Body Parameters

SRNEnquiryTaskCreation
NameDescriptionTypeAdditional information
SecurityCode

Security code

string

Required

String length: inclusive between 1 and 12

AccountName

Account name

string

Required

String length: inclusive between 1 and 80

Designation

Designation

string

String length: inclusive between 0 and 35

AddressLine1

Address line 1

string

Required

String length: inclusive between 1 and 40

AddressLine2

Address line 2

string

String length: inclusive between 0 and 40

AddressLine3

Address line 3

string

String length: inclusive between 0 and 40

TownName

Town name

string

Required

String length: inclusive between 1 and 35

Postcode

Postcode

string

String length: inclusive between 0 and 16

State

State

string

String length: inclusive between 0 and 35

Country

Country code (2 letter)

string

Required

String length: inclusive between 1 and 2

Reference

Reference tagged to the request (task) for easier searching.

string

String length: inclusive between 0 and 100

Request Formats

application/json, text/json

Sample:
{
  "SecurityCode": "BHP",
  "AccountName": "Mr John Doe",
  "Designation": "",
  "AddressLine1": "2 Barrack Street",
  "AddressLine2": "",
  "AddressLine3": "",
  "TownName": "Perth",
  "Postcode": "6000",
  "State": "WA",
  "Country": "AU",
  "Reference": "REL-45896"
}

application/xml, text/xml

Sample:
<SRNEnquiryTaskCreation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TPP.B2B.Webservices2.Contract.Tasks">
  <AccountName>Mr John Doe</AccountName>
  <AddressLine1>2 Barrack Street</AddressLine1>
  <AddressLine2></AddressLine2>
  <AddressLine3></AddressLine3>
  <Country>AU</Country>
  <Designation></Designation>
  <Postcode>6000</Postcode>
  <Reference>REL-45896</Reference>
  <SecurityCode>BHP</SecurityCode>
  <State>WA</State>
  <TownName>Perth</TownName>
</SRNEnquiryTaskCreation>

Response Information

Resource Description

SRNEnquiryTaskResponse

SRNEnquiryTaskResponse
NameDescriptionTypeAdditional information
SRNEnquiryTaskID

SRNEnquiryTaskID

integer

None.

SecurityCode

SecurityCode

string

None.

TaskStatus

SRN Enquiry task status

enTaskStatus

None.

RejectedReason

Rejected Reason if SRN Search being rejected

string

None.

SRN

Security Holder Reference Number (SRN) - Result of SRN Search Enquiry

string

None.

TaskUID

Guid of the SRN-Enquiry task that was created for the request. Can be used for searching specifically for this task.

globally unique identifier

None.

Reference

Reference tagged to the task. Can be used when searching for this task.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "SRNEnquiryTaskID": 100001,
  "SecurityCode": "BHP",
  "TaskStatus": 3,
  "RejectedReason": "",
  "SRN": "I0030032XXX",
  "TaskUID": "9c173219-820b-4585-a6fb-acd144827088",
  "Reference": "REL-45289"
}

application/xml, text/xml

Sample:
<SRNEnquiryTaskResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TPP.B2B.Webservices2.Contract.Tasks">
  <Reference>REL-45289</Reference>
  <RejectedReason></RejectedReason>
  <SRN>I0030032XXX</SRN>
  <SRNEnquiryTaskID>100001</SRNEnquiryTaskID>
  <SecurityCode>BHP</SecurityCode>
  <TaskStatus>Completed</TaskStatus>
  <TaskUID>9c173219-820b-4585-a6fb-acd144827088</TaskUID>
</SRNEnquiryTaskResponse>

Error Response Information

Resource Description

SRNEnquiryTaskResponse

BadRequestResult
NameDescriptionTypeAdditional information
Errors

Collection of Error

None.

Error Response Formats

application/json, text/json

Sample:
{
  "Errors": [
    {
      "Code": 1,
      "Description": "sample string 1"
    },
    {
      "Code": 1,
      "Description": "sample string 1"
    }
  ]
}

application/xml, text/xml

Sample:
<BadRequestResultOfenSRNEnquiryTaskCreateErrorYd1IcMMv xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TPP.B2B.Webservices2.Contract.ErrorResponse">
  <Errors>
    <ErrorOfenSRNEnquiryTaskCreateErrorYd1IcMMv>
      <Code>SecurityCodeRequired</Code>
      <Description>sample string 1</Description>
    </ErrorOfenSRNEnquiryTaskCreateErrorYd1IcMMv>
    <ErrorOfenSRNEnquiryTaskCreateErrorYd1IcMMv>
      <Code>SecurityCodeRequired</Code>
      <Description>sample string 1</Description>
    </ErrorOfenSRNEnquiryTaskCreateErrorYd1IcMMv>
  </Errors>
</BadRequestResultOfenSRNEnquiryTaskCreateErrorYd1IcMMv>