# Rewrd API ## API Docs - Customers [Create or Update a Customer](https://developer.getrewrd.com/create-or-update-a-customer-28604900e0.md): Creates a new customer or updates an existing one (upsert). The customer is matched by `phone_number` within your merchant account. - Customers [List Customers](https://developer.getrewrd.com/list-customers-28604901e0.md): Retrieves a paginated list of all customers belonging to your merchant account. - Customers [Get a Customer](https://developer.getrewrd.com/get-a-customer-28604902e0.md): Retrieves the full details of a single customer by their unique identifier (`uid`). - Customers [Update a Customer](https://developer.getrewrd.com/update-a-customer-28604903e0.md): Updates the profile information of an existing customer. Only the fields provided in the request body are updated; omitted fields are left unchanged. - Customers [Restrict a Customer](https://developer.getrewrd.com/restrict-a-customer-28604904e0.md): Restricts a customer, preventing them from earning or redeeming points. The customer's existing points balance is preserved but frozen. - Customers [Unrestrict a Customer](https://developer.getrewrd.com/unrestrict-a-customer-28604905e0.md): Removes the restriction on a customer, restoring their ability to earn and redeem points. Their previously frozen points balance becomes available again. - Merchant [Get Merchant Configuration](https://developer.getrewrd.com/get-merchant-configuration-28604906e0.md): Retrieves your current merchant configuration including profile information, social links, point expiry settings, webhook configuration, and security settings. - Merchant [Update Merchant Configuration](https://developer.getrewrd.com/update-merchant-configuration-28604907e0.md): Updates your merchant configuration. Only the fields included in the request body are updated; omitted fields remain unchanged. - Merchant [List Earning Rules](https://developer.getrewrd.com/list-earning-rules-28604908e0.md): Retrieves all active (non-deleted) earning rules for your merchant account. - Merchant [Get Earning Rule Details](https://developer.getrewrd.com/get-earning-rule-details-28604909e0.md): Retrieves the details of a single earning rule by its ID, including usage statistics (`users_rewarded` count). - Merchant [Get IP Whitelist](https://developer.getrewrd.com/get-ip-whitelist-28604910e0.md): Retrieves the list of IP addresses that are currently whitelisted for API access. - Merchant [Update IP Whitelist](https://developer.getrewrd.com/update-ip-whitelist-28604911e0.md): Replaces the entire IP whitelist with the provided list of IP addresses. - Merchant [Get Merchant Analytics](https://developer.getrewrd.com/get-merchant-analytics-28604912e0.md): Retrieves aggregated analytics for your loyalty program, filtered by time period. - Points [Credit Points to a Customer](https://developer.getrewrd.com/credit-points-to-a-customer-28604913e0.md): Awards loyalty points to a customer's account. The specified number of points is added to the customer's balance and deducted from your merchant point pool. - Points [Redeem Points](https://developer.getrewrd.com/redeem-points-28604914e0.md): Deducts loyalty points from a customer's account for a redemption. The specified number of points is subtracted from the customer's balance and added back to your merchant point pool. - Points [Get Customer Transaction History](https://developer.getrewrd.com/get-customer-transaction-history-28604915e0.md): Retrieves a paginated list of all point transactions (credits and redemptions) for a specific customer.