In the AwsAuthenticator constructor, set the namespace parameter to.You can select the request body format by commenting on the line of the non-preferred format.These samples are customized to call most Incentives API operations. We also provide sample code Java, C#, Python, Ruby, PHP, and HTML (JavaScript). Note: When passing a request with a JSON body, the scratchpad does not show the content_type header, which is set to application/json. For more information, see Handling Dates in Signature Version 4 in the Amazon Web Services General Reference. If the date header is specified in the ISO 8601 basic format, x-amz-date is not required. The x-amz-date header is optional for all requests. See Endpoints table above.Ĭom.Ĭopy body from a request made in Incentives API Scratchpad that uses a JSON bodyįor x-amz-date/date, the following date time is a valid x-amz-date value: 20120325T120000Z. Set to application/json to receive results as a JSON body. For more information about constructing this header, see Signing Requests. The information required for request authentication including: AWS4-HMAC-SHA256, Credential, SignedHeaders, and Signature. The Login and Receive service provides the following operations: LoadAmazonBalance, VoidAmazonBalanceLoad, GetAvailableFunds The format must be ISO 8601 basic format (YYYYMMDD'T'HHMMSS'Z'). The date that is used to create the signature specified using either the x-amz-date or the date header. HeaderĪ gateway endpoint listed under Endpoints. The Incentives API requires the following headers in each HTTP request. You can learn more about this signing process here. (IT, ES, DE, FR, UK, TR, UAE, KSA, PL, NL, SE)Įvery request to an endpoint of the Incentives API must be digitally signed using your Incentives API security credentials and the Signature Version 4 signature algorithm. Only use the full DNS addresses shown here to reach our endpoints. Do not hardcode IP addresses in your code or in your firewall allow list. Important: The underlying IP addresses of these endpoints change frequently based on geography and load. The following tables show Sandbox and production base URL values for countries where the Incentives API is available. We also provide a Sandbox where you can call any Incentives API endpoint without consequences. Your code will send requests to just one base URL that's determined by your country of operation. Requests from your code to any Incentives API include a base URL that is part of a full endpoint address. Contacting Amazon for Technical Support.Building Requests to the Incentives API.If your request results in a claim code, you can deliver this code to a customer in a manner that has been approved by Amazon. Your software can make synchronous requests to Incentives API endpoints. Credit the gift card balance of a customer account at a brick-and-mortar site.Credit the gift card balance of a customer account through your app or website.Create claim codes that can be used on the Amazon website as currency to purchase products.The Incentives API provides programmatic endpoints you can use to perform these tasks in real time:
0 Comments
Leave a Reply. |