The Rest API is deprecated and will be removed in the future. We recommend using the GraphQL API instead. Some endpoints may not be available anymore.

Get rule by id

GET

https://api.pack.cloud/v1/organizations/{organizationId}/rules/{ruleId}

Request

Path parameters

organizationIdstring
ruleIdstring

Response

OK

Body

idstring
ID of the rule
namestring
Name of the rule
Example:Always accept return requests
enabledboolean
sortinteger
typestring
Allowed values:orderreturn_receipt_completedreturn_refund_createreturn_request_gatekeeper
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource