{"id":23183565,"url":"https://github.com/cesarobedfl/aws_node_selling_partner_api","last_synced_at":"2026-04-12T04:33:02.642Z","repository":{"id":199994649,"uuid":"601221174","full_name":"CesarObedFL/aws_node_selling_partner_api","owner":"CesarObedFL","description":"This is a node api with some resources from the amazon selling partner api","archived":false,"fork":false,"pushed_at":"2024-05-02T14:13:35.000Z","size":58,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T03:44:04.069Z","etag":null,"topics":["aws","docker","express-js","nodejs","pm2","selling-partner-api","sp-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CesarObedFL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-13T16:07:11.000Z","updated_at":"2024-05-02T14:13:40.000Z","dependencies_parsed_at":"2023-11-07T01:46:16.668Z","dependency_job_id":"19b6a9f6-c236-415e-b723-65496bebb72a","html_url":"https://github.com/CesarObedFL/aws_node_selling_partner_api","commit_stats":null,"previous_names":["cesarobedfl/aws_node_selling_partner_api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CesarObedFL/aws_node_selling_partner_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesarObedFL%2Faws_node_selling_partner_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesarObedFL%2Faws_node_selling_partner_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesarObedFL%2Faws_node_selling_partner_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesarObedFL%2Faws_node_selling_partner_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CesarObedFL","download_url":"https://codeload.github.com/CesarObedFL/aws_node_selling_partner_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesarObedFL%2Faws_node_selling_partner_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31704492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"online","status_checked_at":"2026-04-12T02:00:06.763Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","docker","express-js","nodejs","pm2","selling-partner-api","sp-api"],"created_at":"2024-12-18T09:13:36.947Z","updated_at":"2026-04-12T04:33:02.610Z","avatar_url":"https://github.com/CesarObedFL.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws node selling partner api\n\nThis api let you connect to the Amazon SP API using their SDK...\n\nFirst of all following the [official-documentation] and [spapi-docs]!!!...\n\nConsult the  [spapi-reference] \n\n\n## _Features_\n\n- It is in charge of connecting to the amazon api, seller partner api\n- Through the SDK manages the client and the corresponding credentials for the connection to amazon\n- Use [express] as http client\n- You can use in production [PM2] as process daemon to linux servers\n- You can dockerizing it with the docker file using the official [PM2-image] in the latest-alpine version\n\n## _Dependencies_\n\n- [amazon-sp-api]  \"^0.7.9\", npm : [npm-amazon-sp-api]\n- [express]  \"^4.19.2\"\n\n## _Requirements_\n\n- npm ^8.3.1\n- node ^16.13.2\n- [PM2]\n- [Docker] ^20.10.17  _optional_\n\n## _Installation_\n\n```\nnpm install \n```\n\n## _Dockerizing_\n\n```\ndocker build -t your-app-name .\n```\n\n## _Running the app_\n\n_development mode:_ `npm run serve`\n\n_production mode:_ you have to use [PM2] or a similar daemon package to run on background the app and use it\n```\npm2 start index.js\n```\n\n_with docker:_\n\n```\ndocker run -p 3000:3000 your-app-name\n```\n\n_docker terminal:_\n\n```\ndocker run -it your-app-name sh\n```\n\n### _.env file explanation_\n\nFollowing the [official-documentation]!!!...\n\n_You can get the following data on the Amazon [seller-central-portal]!..._\nyou need to be registered as a developer there, that process could take about two weeks...\n\n| data | description |\n| ---- | ----------- |\n| APP_ID | Represents your application on the Amazon platform, example: amzn1.sp.solution.... |\n| APP_REGION | Indicates the geographic region in which your application is authorized |\n| APP_CLIENT_ID | Indicates the geographic region in which your application is authorized This is a unique identifier that represents the application in the context of Login with Amazon (LWA). Also obtained when you register your application in the Amazon Developer Console. example: amzn1.application-oa2-client.... |\n| APP_CLIENT_SECRET | The client secret is a secret key that corresponds to the APP_CLIENT_ID |\n| APP_CLIENT_ACCESS_TOKEN | It is a token that represents your application's authorization to access the Seller Partner API |\n| APP_CLIENT_REFRESH_TOKEN | It is a token that is used to renew the client access token if it expires |\n\nThis data is essential for the authentication and authorization of your application in the Amazon Seller Partner API through Login with Amazon (LWA). They establish the identity of your application and ensure that only authorized applications can access the API. Additionally, the access token and refresh token allow your application to securely access API resources and keep authentication active\n\n\n\nThe following is data extracted from the IAM user created in AWS:\n\n| data | description |\n| ---- | ----------- |\n| AWS_ACCESS_KEY_ID | This is a unique identifier that represents the AWS access key of the user seeking to access the API. Amazon provides this ID when you set up a user in AWS IAM (Identity and Access Management). The AWS_ACCESS_KEY_ID is used to authenticate the request and associate it with a specific user in your AWS account | \n| AWS_SECRET_ACCESS_KEY | The secret access key is a key that corresponds to the AWS_ACCESS_KEY_ID. It must be kept secret and is essential for authenticating and authorizing requests to the API. Similar to the access key, it is obtained when setting up a user in AWS IAM |\n| AWS_SELLING_PARTNER_ROLE | This is the AWS role that you define for your application or system to access the Seller Partner API. The AWS_SELLING_PARTNER_ROLE defines the permissions and access policies that apply to requests made to the API. You can configure this role in AWS IAM and assign it to your application or system to ensure that it has the appropriate permissions to access the API |\n\nThis data allows your application or system to securely authenticate and authorize itself to the Amazon Seller Partner API. The AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are used to authenticate requests, while the AWS_SELLING_PARTNER_ROLE determines what actions and resources can be accessed by the application or system in the API. This helps ensure that only authorized applications and systems have access to API resources\n\n\n\nThe following is data extracted from the AssumeRole of AWS:\n\n| data | description |\n| ---- | ----------- |\n| ROLE_ID | This is a unique identifier that represents the temporary role you want to assume in the Amazon Seller Partner API. Amazon provides you with this ID when you set up a temporary role through AWS Identity and Access Management (IAM) in your Amazon Web Services (AWS) account |\n| ROLE_SECRET | The temporary role secret is a secret key that corresponds to the ROLE_ID |\n| ROLE_SECURITY_TOKEN | This security token is a generated temporary value that is used to authenticate and authorize requests to the API on behalf of the temporary role. It is an additional security measure to verify the authenticity of the request. This token is also obtained when assuming the temporary role and should be included in your API requests |\n\nThis data is essential to establish a secure and authorized connection to the Amazon Seller Partner API when assuming a temporary role. The process involves authentication and authorization using the ROLE_ID, ROLE_SECRET, and ROLE_SECURITY_TOKEN, allowing your application or system to interact with the API on behalf of the configured temporary role\n\n\n\n\n[amazon-sp-api]: \u003chttps://developer-docs.amazon.com/sp-api/docs/what-is-the-selling-partner-api\u003e\n[npm-amazon-sp-api]: \u003chttps://www.npmjs.com/package/amazon-sp-api#call-the-api\u003e\n[seller-central-portal]: \u003chttps://sellercentral.amazon.com.mx/\u003e\n[official-documentation]: \u003chttps://developer.amazonservices.com/amazon-business\u003e\n[spapi-docs]: \u003chttps://developer-docs.amazon.com/sp-api/docs\u003e\n[spapi-reference]: \u003chttps://github.com/amzn/selling-partner-api-docs/tree/main/references\u003e\n[express]: \u003chttps://expressjs.com/es/\u003e\n[PM2]: \u003chttps://pm2.keymetrics.io/\u003e\n[PM2-image]: \u003chttps://hub.docker.com/r/keymetrics/pm2\u003e\n[Docker]: \u003chttps://docs.docker.com/\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesarobedfl%2Faws_node_selling_partner_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcesarobedfl%2Faws_node_selling_partner_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesarobedfl%2Faws_node_selling_partner_api/lists"}