Skip to main content
POST
/
generate_attribution_link
Create an attribution Amazon link
curl --request POST \
  --url https://api.example.com/generate_attribution_link \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "asin": "<string>",
  "link_name": "<string>",
  "marketplace": "amazon.com"
}
'
{
  "url": "<string>",
  "attribution_link": "<string>",
  "asin": "<string>",
  "marketplace": "<string>",
  "id": "<string>",
  "type": "product",
  "active": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.archeraffiliates.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Inputs for creating an attribution Amazon link.

asin
string
required

The Amazon product identifier you want to link to. Case doesn't matter.

Example:

"B0D45KS7QM"

A name for the link — used so you can tell it apart from your other links in reports.

Example:

"spring-2026-yt-campaign"

marketplace
string | null
default:amazon.com

Which Amazon marketplace the link should send shoppers to. Defaults to amazon.com.

Example:

"amazon.com"

Response

Successful Response

The newly created attribution link.

url
string
required

The attribution Amazon URL — share this anywhere shoppers will click it.

Same value as url. Kept for older integrations that already read this field.

asin
string
required

The product the link points at.

marketplace
string
required

The Amazon marketplace the link sends shoppers to.

id
string | null

The link's identifier on the Archer platform. Use it to look up performance in /reports.

type
string
default:product

What the link points to. Currently always a single product.

active
boolean
default:true

False if you later pause reporting for this link.