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

          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
          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
          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

            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