Skip to main content

How to use the Acenda API (v1) — guide v3.2

Create an API key, get an access token and make your first Acenda API (v1) request, then retrieve and fulfill Ship Advices.

To use the Acenda API, create an API key in Acenda Admin, exchange its Client ID and Client Secret for an access token, and send requests to https://api.acenda.io/v1/. The main reference for every endpoint is https://api.acenda.io/v1/docs. This guide covers first-time setup and the standard order workflow for developers connecting an ERP, warehouse system, PIM or custom script to Acenda.

Note: The API is version v1, as in the base URL. "v3.2" is only the revision number of this guide, not a different API version.


Before you start

  • An Acenda Admin login that can open ADMINISTRATION > Users > API Keys. Viewing the tab needs the "API Keys" read permission, creating or regenerating a key needs the create permission, editing needs update and deleting needs delete. In practice, only the Owner and Admin roles have these permissions.

  • A developer who can send HTTP requests and read JSON.

  • A safe place to store credentials, such as a secrets manager.

No code? You can connect an AI assistant to Acenda for read-only questions instead. See How to connect your AI assistant to Acenda.

Get started with the Acenda API

  1. Create an API key. Go to ADMINISTRATION > Users > API Keys, click Create New Key, enter a name and description (for example, the system that will use it), and save.

  2. Give the key permissions. New keys start with no permissions. Tick only the areas and actions your integration needs, then save. API keys can never access integrations, organization settings or users.

  3. Copy the Client ID and Client Secret. Acenda shows the secret only once, when you create or regenerate the key. After that, the tab shows <Hidden> in place of the secret. If you lose it, click Regenerate. That keeps the Client ID and issues a new secret, so update every system that uses the key.

  4. Request an access token. Acenda uses the OAuth 2.0 client credentials flow. Send a form-encoded POST request to the token endpoint, which is on a different host than the API:

    POST https://login.acenda.io/auth/realms/acenda/protocol/openid-connect/token
    Content-Type: application/x-www-form-urlencodedgrant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&scope=openid

    Copy access_token from the response. Tokens are short-lived: check expires_in in the token response and request a new token when it expires.

  5. Make your first request. Send a request to https://api.acenda.io/v1/ with these headers, replacing the placeholders with your own values:

    Authorization: Bearer YOUR_ACCESS_TOKEN
    Content-Type: application/json
    ORGANIZATION_HEADER: YOUR_ORGANIZATION_NAME

    Replace ORGANIZATION_HEADER with the organization header listed in the API reference. It is required on every request, and its value is your organization name (slug), not the numeric organization ID. A numeric ID returns 400. A 200 response with JSON means authentication works.

  6. Open the full reference. Endpoints, parameters and example responses are at https://api.acenda.io/v1/docs. To test calls in Postman, import the collection at https://api.acenda.io/v1/docs/postman.json.

Important: Never share a Client Secret or access token by email or chat, and never commit one to a code repository. Create a separate key for each contractor or integration so you can revoke one without affecting the others.

Use an AI coding tool with the Acenda API

Giving an LLM or AI coding tool the link https://api.acenda.io/v1/docs/llms.txt tells it how to integrate with the Acenda API. For a walkthrough, see How to connect an AI coding tool or agent to the Acenda API.

What's the difference between orders and Ship Advices?

Acenda calls what many platforms call an order a Ship Advice. One customer order can become several Ship Advices, for example when its items ship from two warehouses. Build order integrations against the Ship Advice endpoints.

Retrieve, acknowledge and fulfill Ship Advices

  1. Get new Ship Advices with a GET request to the Ship Advice endpoint. Check the API reference for current filters.

  2. Save each Ship Advice in your own system.

  3. Acknowledge it after it is saved (POST /acknowledge/ship_advice/{id}). Acknowledged Ship Advices stop appearing in your next poll. If saving fails, don't acknowledge it, so you can retry.

  4. Fulfill the shipment in your warehouse system.

  5. Send tracking to Acenda (carrier, tracking number and ship date) with POST /ship_advice/{id}/fulfillment. Acenda passes the update to the connected marketplace or sales channel.

Important: Sending tracking again for a Ship Advice that is already fulfilled can create a second, separate fulfillment. To correct tracking, update the existing fulfillment instead.

For catalog, inventory and price updates, see How to automate catalog updates with the Import & Export API.


Troubleshooting & FAQ

  • Why do I get 401 Unauthorized? The access token is missing, invalid or expired, or the API key was deleted or regenerated. Request a new token. If the key was regenerated, use the new Client Secret.

  • Why do I get 403 Forbidden? The token is valid, but the key lacks permission for that area or action, or the organization header names the wrong organization. Check the key's permissions and the header value. API keys can never access integrations, organization settings or users.

  • Why do I get 429 Too Many Requests? Your requests are being throttled. Wait for the time in the Retry-After header before retrying, and send fewer requests at the same time. In the Import & Export API, a 429 can also mean you have reached the limit of 50 active previews.

  • Why does the same Ship Advice keep coming back? It hasn't been acknowledged. Call the acknowledge step after you save each one.

  • Why does the API Keys tab show <Hidden> for my secret? Acenda shows a secret only once, at creation or regeneration. Click Regenerate for a new one.

  • Why isn't tracking showing on the marketplace? Confirm the fulfillment call succeeded and the carrier and tracking number are correct. If it still doesn't show, contact Acenda support with the Ship Advice ID.

  • Is "API v3.2" a different API version? No. It is this guide's revision number. The API is v1.

Still stuck? Contact Acenda support with your Ship Advice ID or a sample request and response, with secrets and tokens removed.


Related articles

Keywords

API v3.2, API v1, API, REST API, API guide, developer, order API, ship advice API, ship advices, orders API, fulfillment API, API keys, Client ID, Client Secret, Create New Key, Regenerate key, authentication, OAuth 2.0 client credentials, access token, organization header, 401 Unauthorized, 403 Forbidden, 429 Too Many Requests, acknowledge ship advice, send tracking via API, catalog inventory pricing API, integration developer, how to use the API, how to authenticate with the API, how to call the Acenda API, how to use the acenda api v3.2, how to get an API key, how to get an access token, how to make your first API request, llms.txt, AI coding tool, AI integration, ChatGPT API, Postman collection

Did this answer your question?