Skip to content

aerocommerce/api-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aero API Docs

Table of contents

  1. Usage
  2. API Conventions
  3. Endpoints
  4. Responses
  5. Examples
    1. Order
      1. Store
      2. View
    2. Order Status
      1. Index
      2. View
    3. Payment Method
      1. Index
      2. View
    4. Product
      1. Index
      2. View
    5. Shipping Method
      1. Index
      2. View

Usage

Creating a token

To create a token navigate to /admin/module/api-tokens/create

To be secure it is recommended that you should only give the token the necessary permissions for its functionality and consider adding an expiry date

The permissions of a token can be edited at any time by navigating to /admin/module/api-tokens/edit/{id} but the expiry date can not

Once you have saved the API token you will be redirected and given ONE opportunity to copy the token

Using a token

To use a token simply include it as a bearer token upon making an API request

Deleting a token

For security reasons it is recommended to delete a token if it is no longer needed

This can be done using the Delete API tokens bulk action accessible by navigating to /admin/module/api-tokens

Logging

Any request made to the API is logged, you can see the logs by navigating to /admin/module/api-usage-logs

Clicking into the logs you will be able to see the request and response data associated with it