Get Rejection Reasons

Describes the API specifications for getting rejection reasons.

Request

URI: /approvals/reject_reasons/module_{moduleID}

HTTP Method: GET

Request Parameters

Parameter

Required

Data Type

Description

Parameter Type

moduleID

Yes

String

Numeric module reference ID.

Path

Request Example

GET  /api/v1/approvals/reject_reasons/module_40
authorization: Bearer WDXlKj3TTOn3rpg9GHnZpbKmvj1=
x-ApplicationKey: 5c91f4fdb0c6ee9992ff476f89bf6cf25e589350
content-type: application/x-www-form-urlencoded

Response

Response Body

Fields marked with an asterisk are considered “core” values that are used for population of a list view that is presented to the end user. The rest of the data is considered extrinsics/extension elements and can be shown to the end user per the customer’s business requirements.

Parameter

Data Type

Description

Scope

ModuleID

String

Numeric module reference ID.

All

*ModuleName

String

Name of module.

All

ID

String

Globally unique database-level identifier of reject reason. The ID must be returned in the subsequent rejection post.

All

attributes

Various

Attributes of the rejection reason.

Parameter

Data Type

Description

others

 

Other attributes.

Parameter

Data Type

Description

description

String

Description of the rejection reason.

refVersion

Numeric

Revision number of the rejection reason object.

validObject

Boolean

Always returns “false”.

Rejection reason, user-visible.

All

Status

String

Ok if response is OK.

All

Details

String

All ok if response is OK.

All

Response Example

{
  "HEADER": {
    "AppVersion": "1.0",
    "OSUAStr": "FieldglassAPIServer/1.0",
    "NumRecs": 2,
    "Status": "ok",
    "Details": "all ok"
  },
  "PAYLOAD": [
    {
      "ModuleID": "40",
      "ModuleName": "Job Posting",
      "ID": "z14090820350427782472901",
      "Attributes": {
        "others": {
          "description": "Full Job Description Required"
        },
        "refVersion": 0,
        "validObject": false
      },
      "Status": "ok",
      "Details": "pass"
    },
    {
      "ModuleID": "730",
      "ModuleName": "Fee",
      "ID": "z12061115370330719460a6d",
      "Attributes": {
        "others": {
          "description": "Claim in Dispute"
        },
        "refVersion": 0,
        "validObject": false
      },
      "Status": "ok",
      "Details": "pass"
    },
  ]
}