2 augustus 2024
- Get list of rule typesGET
- Get rule typeGET
- Get list of rulesGET
- Create rulePOST
- Get rule by idGET
- Update rulePUT
- Delete ruleDELETE
- Get rule actionsGET
- Create rule actionPOST
- Get rule action by idGET
- Update rule actionPUT
- Delete rule actionDELETE
- Get rule conditionsGET
- Create rule conditionPOST
- Get rule condition by idGET
- Update rule conditionPUT
- Delete rule conditionDELETE
Create rule
POST
https://api.pack.cloud/v1/warehouses/{warehouseId}/rules
Request
Path parameters
warehouseIdstring
Payload
namestringrequired
Example:Always accept return requests
enabledboolean
sortinteger
typestringrequired
Allowed values:orderreturn_receipt_completedreturn_refund_createreturn_request_gatekeeper
Response
Created
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
Created
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
Created
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
Created
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
Created
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
Created
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