Skip to main content

Member Badges

GET 

/client/users/:correlation_id/badges

Returns all badges associated with the member.

Query Parameters

Parameters can be set to restrict the search for badges using the following parameters:

ParameterDescriptionFormatNote
pageSelect a specific page if more than one page of results is returned.Number
pageSizeSelect the maximum number of badges that can be shown on a page.Number
localeLocale of the offer(s) returned in the responseString, values currently supported are: "en-CA", "en-US" and "fr-CA".Priority order: (1) this query parameter; (2) locale set on the account; (3) environment locale. If locale is not provided or is not a valid value, system default ("en-CA") is used.

Body

The request has no Body.

Response

AttributeDefinitionFormatNotes
countNumber of badges returned for this member.Number
pageSizePage size of the resultsNumber
firstPageFirst page of the resultsNumber
currentPageCurrent page of the resultsNumber
lastPageLast page of the resultsNumber
badgesContains objects with information for individual badges.Array
badgeIDUnique identifier for the badge.String
badgeNameThe human-readable name of the badge.String
earnedDateThe date the badge was earned in ISO 8601 format.String
earnedDateEpochThe date the badge was earned in epoch format.StringEpoch date/time is in milliseconds
expiryDateThe date the badge expires in ISO 8601 format.String
expiryDateEpochThe date the badge expires in Epoch format.StringEpoch date/time is in milliseconds
badgeDetailsContains details about the content used for the badge.Object
en-CA or en-FRThe locale used.ObjectContains details of the content used for the specified locale
longDescriptionLong description of the badge.String
smallHDImageURIPoints to a small high-definition image used for the badge.String
largeHDImageURIPoints to a large high-definition image used for the badge.String
largeImageURIPoints to a large regular image used for the badge.String
smallImageURIPoints to a small regular image used for the badge.String
badgeHeadlineHeadline used to describe the badge.String
effectiveDateThe date on which the badge became effective in ISO 8601 format.String

Error Responses

statusCodeerrorMessageerrorCodeDefinition
400 - Bad RequestBadge feature switch is not enabled.INVALID_REQUESTThe badge feature has not been enabled for this client, hence badge information cannot be retrieved.

Request

Responses

200 - Member Badges Returned

Response Headers
    Date
    Example: Wed, 20 May 2020 23:50:01 GMT
    Content-Length
    Example: 290
    Connection
    Example: keep-alive
    x-amzn-RequestId
    Example: b1901c1a-1aae-4611-8967-b44020aa7c8a
    Referrer-Policy
    Example: no-referrer
    X-XSS-Protection
    Example: 1;mode=block
    Access-Control-Allow-Origin
    Example: *
    Expect-CT
    Example: max-age=86400
    Strict-Transport-Security
    Example: max-age=31536000
    Feature-Policy
    Example: vibrate 'none'; geolocation 'none'
    X-Frame-Options
    Example: sameorigin
    Content-Security-Policy
    Example: connect-src 'none';object-src https://*.cloudfront.net;script-src https://*.cloudfront.net
    x-amz-apigw-id
    Example: M2tGcFX8IAMFszw=
    cache-control
    Example: no-cache, no-store, must-revalidate
    X-Content-Type-Options
    Example: nosniff
    X-Amzn-Trace-Id
    Example: Root=1-5ec5c229-85b3c6e1065e843b5cf98b62;Sampled=0