Get Started with API
stack.promo API is organized around REST and supports HTTP Basic authentication.
  • Log into your account using your email address and password.
  • Under Account, click Tokens, and then click Create Token.
  • This will generate a new SID and token. Please keep the SID and token safe and secure. The token will not be shown elsewhere.
stack.promo will authenticate to your web server using the provided SID and token and will remain logged in for the duration of the action. In order to authenticate with HTTP, you may provide a username and password with the following URL format: Here is the url for the environments:
  • Live: https://api.stack.promo
This sample call, which retrieves to all active promotions, includes a token in the Authorization request header.
                        
    curl -X GET https://api.stack.promo/v1/customers/promotions \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Basic <credentials>'