Unclaim badge

This API allows you to unclaim a badge. Using an unclaim API you can soft delete the active claim from the claims list.

For example:

A badge named Furry Friend Badge is owned by Loyalty and Milestones. Loyalty has successfully claimed the badge under program ID: 123, associating the badge claim with Loyalty as owner and reference ID: ABC. Using the unclaim badge API, you can remove Loyalty’s claim over the badge.

👍

Note

For detailed information about our APIs and for hands-on testing, refer documentation in API overview and step-by-step guide on making your first API call in Make your first API call .

Prerequisites

  • Authentication: Basic or OAuth authentication
  • Default access group

Resource information

URIapi_gateway/v1/badges/badgeMeta/{badgeId}/unclaim
HTTP MethodPOST
PaginationNo
Batch supportNo
Rate limit informationNone

API endpoint example

https://eucrm.cc.capillarytech.com/api_gateway/v1/badges/badgeMeta/65cc933e436d194c60ef7ba4/unclaim

Request path parameters

Parameter NameData TypeDescription
badgeId*StringUnique ID of the badge.

Request body parameters

Parameter Name Data TypeDescription
ownerType*EnumThe module claimed by the badge.
Supported values: Loyalty, Loyalty_Promotion, Referral_Campaigns, Journeys, Audience_Campaigns, Rewards_Catalog, Goodwill_Module, Milestones, Historical_Import
referenceId*StringUnique reference ID of the owner type.
{
"ownerType":"Loyalty",
"referenceId":"string"
}

Response parameters

Parameter Name Data TypeDescription
ownerTypeEnumThe module claimed by the badge.
Supported values: Loyalty program, Milestones, Campaigns, Journeys, Goodwill.
referenceIdStringUnique reference ID of the owner type.
isActiveBooleanIndicates whether the badge is active.
{
    "data": {
        "ownerType": "Loyalty",
        "referenceId": "string",
        "isActive": false
    },
    "errors": null,
    "warnings": []
}

API-specific error codes

Error codeDescription
737Claim not found in existing claims
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!