cURL
Promotional Credits
Grant promotional credit
Grant a promotional credit to specific customers or to all customers
POST
cURL
Customers are identified by their
customer_key. Use apply_to: "specific" with a customer_keys array to grant to a chosen set of customers, or apply_to: "all" to grant to every eligible customer in your account.Eligibility is wallet-based — only customers with a wallet in the linked credit system can be granted. When Allow multiple grants is disabled, a customer who already holds an active grant is skipped; when it is enabled, the same customer can be granted again.
Create and manage promotional credits (the campaigns being granted here) from the Metrifox dashboard. This endpoint grants an existing promotional credit, identified by its
id, to your customers.Authorizations
Path Parameters
The unique identifier of the promotional credit to grant
Body
application/json
specific grants only to the customers listed in customer_keys.
all grants to every eligible customer in your account (and customer_keys is ignored).
Available options:
specific, all Example:
"specific"
The customer keys to grant the promotional credit to. Required when apply_to is specific.
Example:
["cust_001", "cust_002"]
