Skip to main content

Snag Solutions - API Docs (v 0.1)


What’s New


GET /api//auth/connect
Connect Auth Verify

What’s Changed


GET /api//auth
Parameters:
Changed: authType in path
GET /api/loyalty/rule_edits
Return Type:
Changed response : 200 OK
200
  • Changed content type : application/json
    • Changed property data (array) Changed items (object):
      • Changed property data (object)
        Data that was changed on the rule
        • Changed property metadata (object)
          Optional metadata for the loyalty rule
      • Changed property previousData (object)
        Previous data of the rule before the edit
        • Changed property metadata (object)
          Optional metadata for the loyalty rule
POST /api/loyalty/rule_edits//restore
Return Type:
Changed response : 200 OK
200
  • Changed content type : application/json
    • Changed property data (object)
      Data that was changed on the rule
      • Changed property metadata (object)
        Optional metadata for the loyalty rule
    • Changed property previousData (object)
      Previous data of the rule before the edit
      • Changed property metadata (object)
        Optional metadata for the loyalty rule
GET /api/loyalty/rule_groups
Return Type:
Changed response : 200 OK
200
  • Changed content type : application/json
    • Changed property data (array) Changed items (object):
      Schema for a get loyalty rule groups response
      • Changed property loyaltyGroupItems (array) Changed items (object):
        • Changed property loyaltyRule (object)
          • Changed property type (string) Added enum value:
            • instagram_post
          • Changed property metadata (object)
            • Added property allowMultipleRedemptions (boolean)
              Flag indicating if the rule allows multiple redemptions. Applies to Enter a Code only.
GET /api/loyalty/rules
Return Type:
Changed response : 200 OK
200
  • Changed content type : application/json
    • Changed property data (array) Changed items (object):
      • Changed property metadata (object)
        Optional metadata for the loyalty rule
POST /api/loyalty/rules
Request:
Changed content type : application/json
  • Changed property type (string)
    Type of loyalty rule being created
    Added enum value:
    • instagram_post
  • Changed property metadata (object)
    Additional metadata for the loyalty rule
    • Added property allowMultipleRedemptions (boolean)
      Flag indicating if the rule allows multiple redemptions. Applies to Enter a Code only.
Return Type:
Changed response : 200 OK
200
  • Changed content type : application/json
    • Changed property type (string)
      Type of loyalty rule being created
      Added enum value:
      • instagram_post
    • Changed property metadata (object)
      Additional metadata for the loyalty rule
      • Added property allowMultipleRedemptions (boolean)
        Flag indicating if the rule allows multiple redemptions. Applies to Enter a Code only.
POST /api/loyalty/rules/
Request:
Changed content type : application/json
  • Changed property metadata (object)
    Additional metadata for the loyalty rule
    • Added property allowMultipleRedemptions (boolean)
      Flag indicating if the rule allows multiple redemptions. Applies to Enter a Code only.
Return Type:
Changed response : 200 OK
200
  • Changed content type : application/json
    • Changed property metadata (object)
      Additional metadata for the loyalty rule
      • Added property allowMultipleRedemptions (boolean)
        Flag indicating if the rule allows multiple redemptions. Applies to Enter a Code only.
GET /api/loyalty/rule_statuses
Parameters:
Changed: loyaltyRuleId in query
Unique identifier(s) for the loyalty rule(s). Accepts a single ID or an array (up to 100); for larger sets, batch requests to avoid URL length limits.

Result


API changes broke backward compatibility