Get Offer State from Query Parameters
Gets an offer state using one of four methods providing the following information via query parameters
- a
tokenwith the OSID credential_identifierexternal_ref_idas well asoffer_idandmember_ideligible_channel_idandmember_id
You only need to provide one of the four information sets above to retrieve an offer state.
Query Parameters
- Type: stringtoken
An offer state's osid
- Type: stringcredential
_identifier The identifier of the credential
- Type: stringeligible
_channel _id The campaign ID and requires the
member_idquery param as well - Type: stringmember
_id Required only when searching by
eligible_channel_idORexternal_ref_id - Type: stringexternal
_ref _id An external identifier that also requires both
member_idandoffer_idquery parameters - Type: stringoffer
_id Required only when searching by
external_ref_id
Headers
- Type: stringContent
- Type application/json
Responses
- application/json
- 401
Unauthorized
- application/json
- application/json
Request Example for get/members/offer_states
curl '/members/offer_states?token=&credential_identifier=&eligible_channel_id=&member_id=&external_ref_id=&offer_id=' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: YOUR_SECRET_TOKEN'
{
"offer_state": {
"offer_state_id": 1,
"offer_id": 1,
"member_id": 1,
"status": "string",
"value": 1,
"locked": true,
"activates_at": "string",
"expires_at": "string",
"external_ref_id": "string",
"custom_data": null,
"credential_custom_data": null,
"offer_activities": [
{}
],
"offer_name": "string",
"offer_short_name": "string",
"offer_campaign_name": "string",
"offer_group": "string",
"offer_description": "string",
"offer_value_required": 1,
"offer_terms_and_conditions": "string",
"offer_web_image_url": "string",
"offer_web_thumb_url": "string",
"offer_mobile_image_url": "string",
"offer_mobile_thumb_url": "string",
"is_reward": true,
"credential_identifier": "string",
"token": "string",
"transferable": true,
"reusable": true,
"offer_tags": [
{}
],
"offer_campaign_tags": [
{}
],
"campaign_external_id": "string",
"campaign_xid": "string",
"campaign_id": 1
},
"errors": {}
}