- Overview
- Introduction
- Hosts
- Global Headers
- Common HTTP Error Codes
- API Permits
- Authorization
- API Contexts
- Common Concepts
- Common Models
- Reference
- API Structure
- Public API
- Introduction
- Loyalty Club
- Member
- Offers
- Rewards
- Games
- CMS Content
- Management API
- Introduction
- Core
- Applications
- Privacy Policy
- Cookie Policy
- Terms
- Domains
- Domain Email Configs
- Domain Web Configs
- TLS Certificates
- Links
- Fonts
- Subunits
- Subunits Scopes
- SMS Sender Identities
- Contacts
- Translations
- Promotions Policy
- Tracker
- Social Logins
- Billing
- Members
- Listing Members
- Member Profile
- Imports
- Groups
- Programs
- Benefits
- Cars
- Webhooks
- Misc
- Receipts
- Stores
- Offers
- Rewards
- Triggerer
- CMS
- Introduction
- Pages
- Components
- Website
- Website Domains
- Venue Info
- Landing Pages
- Landing Page Templates
- Articles
- Events
- Events Groups
- Job Postings
- Press Releases
- Tags
- Service Messages
- Content Prototypes
- ContentPrototype Model
- List Content Prototypes
- Show Content Prototype
- Create Content Prototype
- Update Content Prototype
- Destroy Content Prototype
- List Organization Content Prototypes
- Show Organization Content Prototype
- Create Organization Content Prototype
- Update Organization Content Prototype
- Destroy Organization Content Prototype
- Mixed Content
- Attachments
- Events
- Games
- Scraper
- Files
- Receipts
- Users API
- Operations API
- Introduction
- Manager API
- Tenant API
- Messaging API
- Data API
- ML API
- Introduction
- Predict Sending KPI v1
- Explain Sending KPI Prediction v1
- Predict Sending KPI In Date Range v1
- Predict Sending Popularity v2
- Predict Sending Text Popularity v2
- Predict Sending Time Series Popularity v2
- Explain Sending Popularity Prediction v2
- Explain Sending Text Popularity Prediction v2
- Explain Sending Time Series Popularity Prediction v2
- Recommend sending time v2
- Generate Image
- Generate Text
- Generate Sending Text
- (Draft) Reporting API
- Other
Use Offer
Pending
POST
https://api.mpc.dev.placewise.com/v3/{loyalty_club_slug}/members/me/offers/{id}/use
API Permit:Offers:Api:MemberOffers:Use
API Context:Loyalty Club
Authorizations:TokenMember
Query Parameters#
Parameter | Type | Required? | Default | Description |
---|---|---|---|---|
scope | enum | no | standard | Determines the scope the API operates on. See Offers scoping |
Body Parameters#
Key | Type | Optional? | Description |
---|---|---|---|
authorization_token | string | yes | See below |
Offer use authorization#
authorization_token
param, so we can register his physical presence in the store.authorization_token_required
is true
), it's impossible to register usage.tied to it may not be granted to the member.
Response Body#
Key | Type | Description |
---|---|---|
usage | OfferUsage | See Offer usage model |
Error Responses#
Status | Response body | Description |
---|---|---|
404 | {"error": "Offer#10000951 not found"} | - |
422 | {"error": "Already active"} | The offer has been just used |
422 | {"error": "Not granted"} | The offer is not available to member |
422 | {"error": "Usage authorization token missing"} | Usage token is missing |
422 | {"error": "Usage authorization token invalid"} | Provided usage token is invalid |
422 | {"error": "User limit exceeded"} | Member exhausted his pool of uses |
422 | {"error": "Periodic user limit exceeded"} | Member exhausted his pool of uses within current time period |
422 | {"error": "Global limit exceeded"} | There are no more offers available globally (stock is empty) |
422 | {"error": "Not in usable timeframes"} | Offer is not usable yet or anymore |
467 | {"error": "Member is banned!", "banned_until": "2137-10-28T17:24:06.207Z"} | Member is banned |
Example#
{
"usage": {
"usable": true,
"max_uses": 100,
"uses_left": 68,
"active_until": "2019-05-08T14:47:22.323Z"
}
}
Request
Path Params
loyalty_club_slug
stringÂ
required
Example:
infinity-mall
id
integerÂ
required
Example:
1
Header Params
X-Loyalty-Club-Slug
stringÂ
required
Default:
{{LOYALTY_CLUB_SLUG}}
X-Client-Authorization
stringÂ
optional
Default:
{{API_TOKEN}}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mpc.dev.placewise.com/v3/infinity-mall/members/me/offers/1/use' \
--header 'X-User-Agent;' \
--header 'X-Product-Name;' \
--header 'X-Loyalty-Club-Slug;' \
--header 'X-Customer;' \
--header 'Authorization;' \
--header 'X-Client-Authorization: '
Responses
🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2025-01-27 12:37:55