Rewards
Scope: visitor and above
This endpoint retrieves information about reward programs in the Apparel21.
The endpoint returns a list of object that includes information such as reward program id, name, tiers, and gifts.
An alias name that represents a particular brand that is using the API
Successful response
Unauthorized: The user is not authorized to perform this action.
Scope: visitor and above
This endpoint retrieves information about a single reward account in the Apparel21 system by accepting a required reward account id parameter.
The endpoint returns an object that includes information such as the associated program id, tier, rewards list, gift list and etc.
The Apparel21 reward account id
An alias name that represents a particular brand that is using the API
Successful response
Bad Request: The reward account id must be a number.
Unauthorized: The user is not authorized to perform this action.
Forbidden: The reward account with the specified id does not exist.
Scope: maintainer and above
This endpoint updates a person's tier information.
The endpoint returns an object that includes information such as the reward account id, program id, program name, tier details that the person is associated with.
The Apparel21 Reward account ID
An alias name that represents a particular brand that is using the API
2731522019-09-01Successful response
Bad Request: The request body was invalid.
Unauthorized: The user is not authorized to perform this action.
Forbidden: The specified PersonId does not match the specified AccountId.
Forbidden: Invalid Tier Id.
Forbidden: The specified AccountId does not exist.
Scope: visitor and above
This endpoint retrieves transaction history of a single reward account in Apparel21.
The endpoint returns an object that includes information such as the associated program id, tier, rewards list, gift list and etc.
The Apparel21 reward account id
(Optional) Earliest date to retrieve transaction from yyyy-MM-dd format
An alias name that represents a particular brand that is using the API
Successful response
Bad Request: The reward account id must be a number.
Unauthorized: The user is not authorized to perform this action.
Forbidden: The reward account with the specified id does not exist.
Not Found: No data found
Scope: maintainer and above
This endpoint adds a person to a rewards program.
This creates a reward account for the person and marks the new account as active'
The endpoint returns an object that includes information such as the reward account id, program id, program name, tier details that the person is associated with.
An alias name that represents a particular brand that is using the API
1273152Bad Request: The request body was invalid.
Unauthorized: The user is not authorized to perform this action.
Forbidden: Account already exists for the specified PersonId and ProgramId.
Forbidden: The specified TierId is not valid for the specified ProgramId.
Scope: maintainer and above
This endpoint creates a reward for a reward account.
This endpoint must accept personId, description, and amount in the request body. The rest are optional.
The endpoint returns 201 status code if request is successful.
The Apparel21 Reward account ID
An alias name that represents a particular brand that is using the API
73152DotApparel Rewards TEST502023-12-3017666SM1Successful operation
Bad Request: The request body was invalid.
Unauthorized: The user is not authorized to perform this action.
Forbidden: The specified person id does not match the specified account id
Forbidden: The specified account id does not exist
Forbidden: The specified issue reason id is invalid
No content
Scope: maintainer and above
This endpoint creates a gift for a reward account.
This endpoint must accept personId, description, and gift id in the request body. The rest are optional.
The endpoint returns 201 status code if request is successful.
The Apparel21 Reward account ID
An alias name that represents a particular brand that is using the API
731522620Test gift2023-12-3017666AUG123Successful operation
Bad Request: The request body was invalid.
Unauthorized: The user is not authorized to perform this action.
Forbidden: The specified GiftId is not valid for the specified account id
Forbidden: The specified PersonId does not match the specified account id
Forbidden: The specified account id does not exist
Forbidden: The specified issue reason id is invalid
No content
Scope: maintainer and above
This endpoint adds points to a person's reward account.
This endpoint must accept personId, points, and description id in the request body. The rest are optional.
The endpoint returns 201 status code if request is successful.
The Apparel21 Reward account ID
An alias name that represents a particular brand that is using the API
73152100Test gift2023-12-30AUG123Successful operation
Bad Request: The request body was invalid.
Unauthorized: The user is not authorized to perform this action.
Forbidden: The specified person id does not match the specified account id
Forbidden: The specified account id does not exist
No content
Scope: maintainer and above
This endpoint redeems a reward from a person's reward account.
This endpoint must accept personId, description, spend amount, amount, reference and auto confirm as part of the request body.
The endpoint returns a request id that can be used on confirm or reversed unconfirmed request endpoint.
The Apparel21 Reward account ID
An alias name that represents a particular brand that is using the API
73152Redeem reward5030RED123trueSuccessful response
Unauthorized: The user is not authorized to perform this action.
Forbidden: The specified person id does not match the specified account id
Forbidden: The specified account id does not exist
Scope: maintainer and above
This endpoint redeems a reward from a person's reward account.
This endpoint must accept personId, description, spend amount, amount, reference and auto confirm as part of the request body.
The endpoint returns a request id that can be used on confirm or reversed unconfirmed request endpoint.
The Apparel21 Reward account ID
An alias name that represents a particular brand that is using the API
73152Redeem reward26821RED123trueSuccessful response
Unauthorized: The user is not authorized to perform this action.
Forbidden: The specified person id does not match the specified account id
Forbidden: The specified account id does not exist
Forbidden: The specified redeemed sku id is invalid for the specified gift id
Forbidden: No gift with the specified gift id is available to redeem
Scope: maintainer and above
This endpoint confirms an unconfirmed request and commit the pending redemption of points or rewards.
This endpoint must accept a request id which is obtained from redeem reward or gift endpoint.
The endpoint returns 201 code if successful.
Request id obtained from redeem reward or gift endpoint
An alias name that represents a particular brand that is using the API
Successful operation
Bad Request: Request id cannot be empty
Unauthorized: The user is not authorized to perform this action.
Internal Server Error: Request ID has already been posted
No content
Scope: maintainer and above
This endpoint reverses an unconfirmed request. This can only be done within 24 hours of a redemption request
This endpoint must accept a request id which is obtained from redeem reward or redeem gift endpoint.
The endpoint returns 201 code if successful.
Request id obtained from redeem reward or gift endpoint
An alias name that represents a particular brand that is using the API
Successful operation
Bad Request: Request id cannot be empty
Unauthorized: The user is not authorized to perform this action.
Internal Server Error: Request ID has already been posted
No content
Last updated
Was this helpful?