id when crediting points via the POST /points/credit endpoint to automatically associate the credit with the rule.curl --location --request GET '/merchant/rules' \
--header 'Authorization: Bearer <token>'{
"status": true,
"message": "Earning rules retrieved successfully",
"data": [
{
"id": 42,
"merchant_id": "merch_xyz789",
"name": "Purchase Reward",
"points": 50,
"type": "purchase",
"subtype": "string",
"status": "active",
"users_rewarded": 1523,
"deleted": false,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2019-08-24T14:15:22.123Z",
"earning_type": "fixed",
"percentage_off": 10
}
]
}