Sending API calls
Learn how to send API calls using either /auth or an API key.
Last updated
Was this helpful?
Learn how to send API calls using either /auth or an API key.
Last updated
Was this helpful?
Sending API (Application Programming Interface) calls in web and mobile applications facilitates data exchange and application functionality. These API calls enable developers to access external services or data sources securely and efficiently. Understanding how to send these requests properly and knowing the authentication requirements is crucial for building robust and secure applications. This guide will explore the steps and permissions required for making API calls to Shopper and Admin APIs, focusing on authentication mechanisms such as API keys and shopper tokens where applicable.
When accessing Shopper APIs such as the shoppers, account, addresses, product discovery, cart, orders, and , you need a with Shopper APIs permission and a shopper token.
When accessing Admin APIs for product and subscription management, use a with Admin APIs permission.
/auth
For refund management, use a confidential API key with Admin APIs permission and /auth
.
/auth
If you want to send a Refunds request, you must supply your with /auth
. Include your Global Commerce username and encoded password with the /auth
. Global Commerce will authenticate the credentials.
Hint: When using a Postman collection, provide your Global Commerce credentials in the csrUserName
and csrPassword
fields.
For example, a Global Commerce user with the Customer Service Director, Customer Service Supervisor, or Customer Service Representative role can access the /auth
service to get the access_token
and then use that access_token
to create a satisfaction refund.