Skip to main content
POST
/
scanner
/
api
/
v1
/
captures
/
{short_id}
/
save-redirect
Save a QR-resolved URL as a trade-item redirect
curl --request POST \
  --url https://www.closient.com/scanner/api/v1/captures/{short_id}/save-redirect \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "resolved_url": "<string>"
}
'
{
  "rule_short_id": "<string>",
  "product_short_id": "<string>",
  "custom_url": "<string>",
  "order_index": 1
}

Documentation Index

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

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

Authorizations

X-API-Key
string
header
required

Path Parameters

short_id
string
required

Unique capture short_id identifier.

Body

application/json

Request body for accepting a resolved URL as a trade-item redirect.

resolved_url
string
required

URL to persist as the redirect destination. Stored as-is — no further transformation, no tracking-param stripping in v1. Typically the final_url returned by /resolve-url.

Required string length: 1 - 2048

Response

Created

Result of saving a resolved URL as a PRODUCT-scoped resolution rule.

rule_short_id
string
required

Short ID of the new resolution rule.

product_short_id
string
required

Short ID of the linked trade item.

custom_url
string
required

Persisted custom URL on the rule.

order_index
integer
required

Evaluation index assigned to the new rule within the PRODUCT scope. Appended to the end of any existing list.

Required range: x >= 0