Skip to main content

Upcoming Point Sweep

GET 

/client/users/:correlation_id/upcomingPointSweep

This request returns the upcoming point sweep for a member, grouped by upcoming month.

Note that the endpoint is gated by a feature switch that will cause an HTTP status code 400 to be returned if the feature is not enabled.

Request

Body

The request has no Body.

Response

AttributeDefinitionFormatNotes
pointSweepsContains the upcoming point sweep grouped by monthArrayEach element of the array has the 'sweepMonth' and 'pointsAmount' attributes.
countTotal of recordsNumber
pageSizePage size of the resultsNumber
firstPageFirst page of the resultsNumber
currentPageCurrent page of the resultsNumber
lastPageLast page of the resultsNumber

Error Responses

statusCodeerrorMessageerrorCodeDefinition
400 - Bad RequestFIFO feature is not enabled.INVALID_REQUESTThis is a valid request to get upcoming point sweep, but the feature is disabled.
400 - Bad RequestPageSize required to be a valid positive numberINVALID_REQUESTThe 'pageSize' query parameter is not a positive number.
400 - Bad RequestPage required to be a valid positive numberINVALID_REQUESTThe 'page' query parameter is not a positive number.
400 - Bad RequestCannot get upcoming sweep points for this account.INVALID_REQUESTAccount is CLOSED or DECEASED

Request

Responses

200 - Get Upcoming Point Sweep

Response Headers
    Date
    Example: Tue, 08 Nov 2022 15:25:11 GMT
    Content-Length
    Example: 303
    Connection
    Example: keep-alive
    x-amzn-RequestId
    Example: c01fa2ae-0bf2-4a04-a7c5-db193684f24b
    Referrer-Policy
    Example: no-referrer
    X-XSS-Protection
    Example: 1;mode=block
    Access-Control-Allow-Origin
    Example: *
    MCK-APPID
    Example: ES-CB-V1
    MCK-MSGID
    Example: mck-6b03e181-580b-4ed1-8648-a431908345b6
    Expect-CT
    Example: max-age=86400
    Strict-Transport-Security
    Example: max-age=31536000; includeSubDomains; preload
    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
    MCK-MSGTIMESTAMP
    Example: November 8th 2022, 3:25:11
    x-amz-apigw-id
    Example: bScxsHoMoAMFgWw=
    cache-control
    Example: no-cache, no-store, must-revalidate
    MCK_CORRELATIONID
    Example: CORRELATION_ID_NOT_PROVIDED_IN_REQUEST
    X-Content-Type-Options
    Example: nosniff
    X-Amzn-Trace-Id
    Example: Root=1-636a74d7-6b148315696911c96b1724a7;Sampled=0