Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
amazon-incentives-api
Advanced tools
Changelog
0.1.0
Readme
Amazon Incentives API for Node.js to provide a type-safe interface to create and cancel Amazon digital gift cards. Built with TypeScript, it ensures reliability and seamless integration for your projects. Suitable for both sandbox and production environments.
npm install amazon-incentives-api
For a comprehensive guide on gift card operations, visit Amazon's Developer Portal.
import {IncentivesAPI} from 'amazon-incentives-api';
const client = new IncentivesAPI({
accessKeyId: 'YOUR_ACCESS_KEY_ID',
secretAccessKey: 'YOUR_SECRET_ACCESS_KEY',
partnerId: 'YOUR_PARTNER_ID',
endpoint: IncentivesAPI.Endpoint.JapanSandbox, // Or any other endpoint as needed
});
For gift card creation, you need a unique creationRequestId
starting with your partnerId
and not exceeding 40 characters. Specify the gift card amount and currency code as well.
const creationRequestResponse = await client.createGiftCard({
creationRequestId: 'YOUR_UNIQUE_REQUEST_ID',
amount: 100,
currencyCode: 'JPY',
});
console.log(creationRequestResponse);
Gift cards can be canceled as long as they remain unclaimed by an Amazon customer. Note that this operation is only possible within 15 minutes of the creation request timestamp.
const cancelRequestResponse = await client.cancelGiftCard(
'YOUR_UNIQUE_REQUEST_ID'
);
console.log(cancelRequestResponse);
FAQs
Amazon Incentives API for Node.js to provide a type-safe interface to create and cancel Amazon digital gift cards.
The npm package amazon-incentives-api receives a total of 19 weekly downloads. As such, amazon-incentives-api popularity was classified as not popular.
We found that amazon-incentives-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.