{ "opencollection": "1.0.0", "info": { "name": "Attentive Access Token Offers API", "version": "1.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Offers", "type": "folder" }, "items": [ { "info": { "name": "Add discount codes", "type": "http" }, "http": { "method": "POST", "url": "https://api.attentivemobile.com/v1/coupons/coupon-pool/:coupon-pool-id/create", "params": [ { "name": "coupon-pool-id", "value": "", "type": "path", "description": "The ID created under \"Create an Offer\"" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://ui-devel.attentivemobile.com/integrations/oauth-install?client_id={clientId}&redirect_uri={redirectUri}&scope={scope}", "accessTokenUrl": "https://api.attentivemobile.com/v1/authorization-codes/tokens", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Note: Once the offer(s) has been created, please reach out to an Attentive team member to enable this API feature for you\n\nMake a call to this asynchronous endpoint to create new discount codes in an existing offer.\n

Validation rules

\n