Examine earning rules
Changed onEstimates earning opportunities for a customer without triggering any actual earning for loyalty v2 earning rules. The trigger selects whether all trigger events or one specific event is examined. When a specific event is selected, exactly one matching context object is required: customer_order_paid for customer.order.paid, customer_segment_entered for customer.segment.entered, and customer_custom_event for customer.custom_event. The other context objects must not be present.
This endpoint can examine earning rules for all loyalty programs the customer belongs to by using customer_identification with customer_id or customer_source_id. To examine earning rules only for one program, use member_id in customer_identification, as member_id is loyalty program-specific. A customer who exists but has no active membership returns 200 with an empty memberships array.
Request
- Base URLhttps://api.voucherify.io
- URLhttps://api.voucherify.io/v2/loyalties/examine/earning-rules
- Auth
- API key in header X-App-Id and API key in header X-App-Token
- or HTTP bearer
Request body
Response
Earning rules examination result. An empty memberships array means no active membership has earning rules for the examined trigger.
Changes
- breaking
added to the
request propertyallOflist - breaking
added
subschema #2to the//request propertyallOflist - breaking
added
subschema #2to the///request propertyallOflist - breaking
added
subschema #2to the//request propertyallOflist - breaking
added
subschema #2to therequest propertyallOflist - breaking
the
//request property type changed fromobjectto no type - breaking
the
///request property type changed fromobjectto no type - breaking
the
//request property type changed fromobjectto no type - breaking
the
request property type changed fromobjectto no type - breaking
the
request property type changed fromobjectto no type - breaking
the
/////response's property type changed fromobjectto no type for status - breaking
the
/////response's property type changed fromobjectto no type for status - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
//// - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - warning
removed the optional property
//////from the response with the status - info
added to the
/////response propertyallOflist for the response status - info
added
subschema #2to the/////response propertyallOflist for the response status
- breaking
- breaking
added the new required request property
//// - breaking
added the new required request property
/// - breaking
the
//request property type changed from no type toobject - breaking
the
///request property type changed from no type toobject - breaking
the
//request property type changed from no type toobject - breaking
the
request property type changed from no type toobject - breaking
the
request property type changed from no type toobject - breaking
the
/////response's property type changed from no type toobjectfor status - breaking
the
/////response's property type changed from no type toobjectfor status - warning
removed from the
request propertyallOflist - warning
removed
subschema #2from the//request propertyallOflist - warning
removed
subschema #2from the///request propertyallOflist - warning
removed
subschema #2from the//request propertyallOflist - warning
removed
subschema #2from therequest propertyallOflist - info
added the new optional request property
/// - info
added the new optional request property
/// - info
added the new optional request property
/// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
/// - info
added the new optional request property
/// - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
removed from the
/////response propertyallOflist for the response status - info
removed
subschema #2from the/////response propertyallOflist for the response status
- breaking