Themes built on the Twig templating engine are now deprecated and require migration to Vitrin to ensure continued support and compatibility with Zid.
loyalty_program.read_write - Loyalty Program Read & Writecurl --location --request POST 'https://api.zid.sa/v1/managers/loyalty-program/points-collection/update' \
--header 'Authorization: {{Autherization}}' \
--header 'X-Manager-Token: {{Access-Token}}' \
--header 'Accept: application/json' \
--header 'Accept-Language: en' \
--form 'ruleId=""' \
--form 'config[money]=""' \
--form 'config[points]=""'{
"status": {},
"data": {
"status": true,
"message": "Points collection updated successfully",
"is_cashback_enabled": false,
"points_collection_methods_list": [
{
"id": "b1e3ca5d-2a89-4993-89bf-0f31a4b70b00",
"external_id": "pos",
"store_id": "3dfc16e6-ad19-4126-9c2a-5e4a7fb73051",
"points_rewarded": 1,
"amount_to_spend": 100,
"available_to": null,
"is_active": false,
"created_at": "2023-12-28T10:32:13.000000Z",
"updated_at": "2023-08-28T10:32:13.000000Z",
"deleted_at": null
}
]
},
"message": {
"type": "string",
"code": "MSG_POPUP_OK",
"name": "Points collection",
"description": "Points collection updated successfully"
}
}