Navigation

Blog

Back

Creating a new CUSTOMER in T24 using POSTMAN

31 March 2016 by

Introduction


In this post we are going to:

  1. Create new customer.
  2. Validate the customer.
  3. Commit the deal.

Similar to CUSTOMER application, we can also create account for customer, fund transfer and other T24 specific operation.

 

Prerequisites


 

Create new CUSTOMER


To create a new customer using POSTMAN follow these steps

  1. GET call to http://127.0.0.1:9089/Prospect-iris/Prospect.svc/GB0010001/verCustomer_Creates()
  2. In response grab the link for new deal
    Example:
    <link rel=”http://schemas.microsoft.com/ado/2007/08/dataservices/related/verCustomer_Create https://temenostech.temenos.com/rels/new” title=”create new deal” href=”verCustomer_Creates()/new” />
  3. POST http://127.0.0.1:9089/Prospect-iris/Prospect.svc/GB0010001/verCustomer_Creates()/new
    This will create a default entry and you need to fill required details. Response also give you a hint what to do next with other links.

     

    <link href=”verCustomer_Creates()/new” rel=”self” profile=”http://schemas.microsoft.com/ado/2007/08/dataservices/related/verCustomer_Create https://temenostech.temenos.com/rels/new” title=”verCustomer_Create_new”></link>

    <link href=”verCustomer_Creates()/metadata” rel=”https://temenostech.temenos.com/rels/metadata” type=”application/atom+xml;type=feed” title=”metadata”></link>

    <link href=”verCustomer_Creates(‘190045’)/validate” rel=”https://temenostech.temenos.com/rels/validate” type=”application/atom+xml;type=entry” title=”validate deal”></link>

    <link href=”verCustomer_Creates(‘190045’)” rel=”https://temenostech.temenos.com/rels/input” type=”application/atom+xml;type=entry” title=”input deal”></link>

    <link href=”verCustomer_Creates(‘190045’)/hold” rel=”https://temenostech.temenos.com/rels/hold” type=”application/atom+xml;type=entry” title=”hold deal”></link>

    <link href=”ContextEnquiryList/verCustomer_Create” rel=”http://www.temenos.com/rels/contextenquiry” type=”application/atom+xml;type=entry” title=”Context Enquiries”></link>

 

Validate the Deal


  1. Fill all the data in response you got from step 2, copy the data in postman body and POST to http://127.0.0.1:9089/Prospect-iris/Prospect.svc/GB0010001/verCustomer_Creates(‘190045’)/validateHere is example how to fill the value in BOLD letter is the field value</d:verCustomer_Create_VisTypeMvGroup>
    <d:Industry>1000</d:Industry>
    <d:Residence>GB</d:Residence>
    <d:Authoriser></d:Authoriser><d:verCustomer_Create_ShortNameMvGroup m:type=”Bag(Prospect-modelsModel.verCustomer_Create_ShortNameMvGroup)”>
    <d:element>
    <d:LanguageCode>en</d:LanguageCode>
    <d:subValuePosition>1</d:subValuePosition>
    <d:ShortName>USER001</d:ShortName>
    <d:valuePosition>1</d:valuePosition>
    </d:element>
    </d:verCustomer_Create_ShortNameMvGroup>

    If anything missing then you’ll get error e.g.

    <m:properties>
    <d:Errors_ErrorsMvGroup m:type=”Bag(Prospect-modelsModel.Errors_ErrorsMvGroup)”>
    <d:element>
    <d:Code>INPUT MISSING</d:Code>
    <d:Type>NON_FATAL_ERROR</d:Type>
    <d:Text>INPUT MISSING</d:Text>
    <d:Info>verCustomer_Create.Mnemonic:1:1</d:Info>
    </d:element>
    <d:element>
    <d:Code>INPUT MISSING</d:Code>
    <d:Type>NON_FATAL_ERROR</d:Type>
    <d:Text>INPUT MISSING</d:Text>
    <d:Info>verCustomer_Create.verCustomer_Create_ShortNameMvGroup.ShortName:en:1</d:Info>
    </d:element>
    </d:Errors_ErrorsMvGroup>
    </m:properties>

     

  2. If all the fields are entered correctly you’ll get http status code 201.

 

Commit the Deal


  1. Now copy the response from \verCustomer_Creates(‘190045’)\validate , paste in postman body and POST to http://127.0.0.1:9089/Prospect-iris/Prospect.svc/GB0010001/verCustomer_Creates(‘190045’)
  2. If everything correct you’ll get final response.
  3. to check the entry do a GET request on http://127.0.0.1:9089/Prospect-iris/Prospect.svc/GB0010001/verCustomer_Creates(‘190045’) 
  4. You’ll be able to see new record in postman alternatively check the new record using T24 Browser Web

 

 

Summary


In this post we explain following using POSTMAN ReST client:

  • Create an empty record
  • Validate the deal
  • Input the deal

 

 

Comments are closed.