Request

Security
OAuth2(Required scopes: FullAccessOrderAdminApprovalRuleReader)
Path
approvalRuleIDstringrequired

ID of the approval rule.

curl -i -X GET \
  'https://api.ordercloud.io/v1/approvalrules/{approvalRuleID}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Bodyapplication/json
OwnerIDstring

ID of the organization who owns the rule. Only the marketplace owner can write a value other than their own organization ID. The value is used to look up the ApprovingGroupID.

Example:""
ApprovalTypestring(ApprovalType)

OrderReturn is the only ApprovalType supported currently.

Enum:"Order""OrderReturn"
Example:"Order"
IDstring, <= 100 characters
Example:""
Namestring, <= 100 characters
Example:""
Descriptionstring, <= 2000 characters
Example:""
ApprovingGroupIDstring
Example:""
RuleExpressionstring, <= 400 characters

The expression evaluated to determine an order requires approval. See rules engine documentation for formatting details.

Example:""
xpobject
Example:
{}
Response
{ "OwnerID": "", "ApprovalType": "Order", "ID": "", "Name": "", "Description": "", "ApprovingGroupID": "", "RuleExpression": "", "xp": {} }