Uploaded image for project: 'Document Management System'
  1. Document Management System
  2. DMS-1910

CBAT:DMS api is throwing an error while creating company

    Details

    • Company:
      All Clients/Multiple Clients

      Description

      Sample Payload:

      “error”: “Client error response [url] https://api.careerbuilder.com/corporate/dms/api/company[status code] 400 [reason phrase] Bad Request”,
             “payload”: {
                 “sourceProductList”: [
                     “CBATS”
                 ],
                 “languageList”: [
                     “en”
                 ],
                 “addressDto”:

      {                “addressLine1”: “”,                “addressLine2”: “”,                “city”: “”,                “state”: “”,                “postalCode”: “”,                “country”: “US”            }

      ,
                 “accountDID”: “AKD3PK619G7BM6056N6",
                 “businessName”: “CareerBuilder”,
                 “legalName”: “”,
                 “emailAddress”: “noreply@cbta.luceosolutions.com”,
                 “companyLogo”: “”,
                 “documentcompletednotification”: true,
                 “IncludesigndocAttachement”: false,
                 “Notifysenderdocumentdelinquent”: true,
                 “notifySenderDocumentReceive”: false,
                 “delinquentNoofdays”: 10,
                 “replyEmail”: “”,
                 “phone”: “[(555) 555-5555|tel:(555)555-5555]”,
                 “companyURL”: “https://cbta.luceosolutions.com
             }
         },

        Attachments

          Activity

          samir Samir created issue -
          samir Samir made changes -
          Field Original Value New Value
          Assignee Samir [ samir ] Ramya Tantry [ ramya.tantry ]
          samir Samir made changes -
          Fix Version/s Between Fall and Winter 2019 [ 10919 ]
          samir Samir made changes -
          Sprint DMS - Gap Fall & Win Sprint 4 [ 179 ]
          ramya.tantry Ramya Tantry (Inactive) made changes -
          Status To Do [ 10000 ] In Progress [ 3 ]
          Hide
          ramya.tantry Ramya Tantry (Inactive) added a comment - - edited

          3C's

          Concern: DMS api is throwing an error while creating company

          Cause: This error occurred due to duplicate business name. Internally company API handles duplicate business name,but returns it as bad request. Hence received 400.

          Correction: Changes are done to show same name as conflict. Status code returned is 409

          CC:Harshveer Singh,Samir,Rohan J Khandave

          Show
          ramya.tantry Ramya Tantry (Inactive) added a comment - - edited 3C's Concern : DMS api is throwing an error while creating company Cause : This error occurred due to duplicate business name. Internally company API handles duplicate business name,but returns it as bad request. Hence received 400. Correction : Changes are done to show same name as conflict. Status code returned is 409 CC: Harshveer Singh , Samir , Rohan J Khandave
          ramya.tantry Ramya Tantry (Inactive) made changes -
          Status In Progress [ 3 ] Code Review [ 11801 ]
          ramya.tantry Ramya Tantry (Inactive) made changes -
          Assignee Ramya Tantry [ ramya.tantry ] Harshveer Singh [ harshveer.singh ]
          Hide
          ramya.tantry Ramya Tantry (Inactive) added a comment - - edited

          Status Code returned from Company API's

          POST :
          Conflict : 409

          1. Company already exist
          2. Email address already exists in the system.
          3. Active company with same name already exists

          Bad request : 400

          1. SourceProductList field is required
          2. languageList field is required
          3. Invalid Language Codes
          4. Can not update inactive company.
          5. Invalid Country Code
          6. Invalid State Code
          7. Invalid base 64 company logo string

          Ok : 200

          PUT :
          Not Found : 404

          1. Company does not exist

          Conflict : 409

          1. Email address already exists in the system.
          2. Active company with same name already exists

          Bad request : 400

          1. SourceProductList field is required
          2. languageList field is required
          3. Invalid Language Codes
          4. Can not update inactive company.
          5. Invalid Country Code
          6. Invalid State Code
          7. Invalid base 64 company logo string

          OK : 200

          GET :
          Bad Request :400

          1. Company account does not exist

          OK : 200

          CC: Rohan J Khandave,Samir,Amrendra Kumar,Shamooka Mohapatra

          Show
          ramya.tantry Ramya Tantry (Inactive) added a comment - - edited Status Code returned from Company API's POST : Conflict : 409 Company already exist Email address already exists in the system. Active company with same name already exists Bad request : 400 SourceProductList field is required languageList field is required Invalid Language Codes Can not update inactive company. Invalid Country Code Invalid State Code Invalid base 64 company logo string Ok : 200 PUT : Not Found : 404 Company does not exist Conflict : 409 Email address already exists in the system. Active company with same name already exists Bad request : 400 SourceProductList field is required languageList field is required Invalid Language Codes Can not update inactive company. Invalid Country Code Invalid State Code Invalid base 64 company logo string OK : 200 GET : Bad Request :400 Company account does not exist OK : 200 CC: Rohan J Khandave , Samir , Amrendra Kumar , Shamooka Mohapatra
          ramya.tantry Ramya Tantry (Inactive) logged work - 20/Sep/19 12:32 AM
          • Time Spent:
            2h
             

            Code changes

            Discussion with Rohan

          ramya.tantry Ramya Tantry (Inactive) made changes -
          Remaining Estimate 0h [ 0 ]
          Time Spent 2h [ 7200 ]
          Worklog Id 201453 [ 201453 ]
          Ashish.Durani Ashish Durani made changes -
          Status Code Review [ 11801 ] In QA Testing [ 11901 ]
          Ashish.Durani Ashish Durani made changes -
          Assignee Harshveer Singh [ harshveer.singh ] Priya Dhamande [ priya.dhamande ]
          priya.dhamande Priya Dhamande (Inactive) logged work - 20/Sep/19 03:30 AM
          • Time Spent:
            0.5h
             

            Preprod testing

          priya.dhamande Priya Dhamande (Inactive) made changes -
          Time Spent 2h [ 7200 ] 2.5h [ 9000 ]
          Worklog Id 201478 [ 201478 ]
          priya.dhamande Priya Dhamande (Inactive) made changes -
          Attachment ProvisioningAPI-apicompany .xls [ 120421 ]
          priya.dhamande Priya Dhamande (Inactive) made changes -
          Attachment TestCases_APICompany .xls [ 120425 ]
          priya.dhamande Priya Dhamande (Inactive) made changes -
          Attachment ProvisioningAPI-apicompany .xls [ 120421 ]
          priya.dhamande Priya Dhamande (Inactive) made changes -
          Attachment Screenshot (383).png [ 120876 ]
          priya.dhamande Priya Dhamande (Inactive) made changes -
          Attachment Screenshot (382).png [ 120918 ]
          priya.dhamande Priya Dhamande (Inactive) logged work - 25/Sep/19 01:48 AM
          • Time Spent:
            0.25h
             

            Preprod ONEIM testing

          Hide
          priya.dhamande Priya Dhamande (Inactive) added a comment -

          Environment: Preprod - ONEIM

          Points verified:
          1. Able to create company with mentioned payload successfully.

          Refer screen capture. So, marking jiar done.

          Samir Rohan J Khandave Hrishikesh Deshpande Sachin Hingole

          Show
          priya.dhamande Priya Dhamande (Inactive) added a comment - Environment: Preprod - ONEIM Points verified: 1. Able to create company with mentioned payload successfully. Refer screen capture. So, marking jiar done. Samir Rohan J Khandave Hrishikesh Deshpande Sachin Hingole
          priya.dhamande Priya Dhamande (Inactive) made changes -
          Time Spent 2.5h [ 9000 ] 2.75h [ 9900 ]
          Worklog Id 202310 [ 202310 ]
          priya.dhamande Priya Dhamande (Inactive) made changes -
          Resolution Done [ 10000 ]
          Status In QA Testing [ 11901 ] Done [ 10001 ]
          Transition Time In Source Status Execution Times
          Ramya Tantry (Inactive) made transition -
          To Do In Progress
          1h 13m 1
          Ramya Tantry (Inactive) made transition -
          In Progress Code Review
          4m 46s 1
          Ashish Durani made transition -
          Code Review In QA Testing
          54m 14s 1
          Priya Dhamande (Inactive) made transition -
          In QA Testing Done
          5d 39m 1

            People

            Assignee:
            priya.dhamande Priya Dhamande (Inactive)
            Reporter:
            samir Samir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2.75h
                2.75h