Skip to content

Upload inspection evidence (a damage photo or document)

POST
/api/v1/scent/returns/{id}/evidence
curl --request POST \
--url https://api-omni-vendors.linra.net/api/v1/scent/returns/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/evidence \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "url": "https://example.com", "kind": "Photo" }'

Uploads one piece of evidence against your own return request’s inspection. At least one Photo must exist before inspection/propose accepts a proposal. Requires the request to already be Received (BUSINESS_RETURN_REQUEST_NOT_RECEIVED otherwise). Same ownership scope as markVendorReturnReceived. Requires the Orders capability.

id
required
string format: uuid

The return request id.

Media typeapplication/json

Uploads one piece of evidence (URL only — no blob-storage backend). At least one Photo must exist before inspection/propose accepts your proposal.

object
url
required

Must be an absolute https:// URL.

string format: uri
kind
required
string
Allowed values: Photo Document

The uploaded evidence.

Media typeapplication/json
object
state
required
string
payload
required
details
object
payload
required
object
id
string format: uuid
url
string format: uri
kind
string
Allowed values: Photo Document
uploadedAt
string format: date-time
Example
{
"state": "SUCCESS",
"payload": {
"kind": "Photo"
}
}

Request validation failed.

Media typeapplication/json
object
state
required
string
payload
details
object
Example
{
"state": "NOT_FOUND_VENDOR_OFFER"
}

Your token doesn’t carry the capability this endpoint requires.

Media typeapplication/json
object
state
required
string
payload
details
object
Examples
ExamplemissingCapability
{
"state": "FORBIDDEN_CAPABILITY_NOT_GRANTED",
"payload": null,
"details": {
"requiredCapability": "Orders"
}
}

Unknown return request id, one belonging to another vendor, or one not destined to a supplier at all (a Linra-sorting-point-bound return — never reachable on this API).

Media typeapplication/json
object
state
required
string
payload
details
object
Examples
ExamplenotFound
{
"state": "NOT_FOUND_RETURN_REQUEST",
"payload": null,
"details": {}
}

The request has not been received yet.

Media typeapplication/json
object
state
required
string
payload
details
object
Examples
ExamplenotReceived
{
"state": "BUSINESS_RETURN_REQUEST_NOT_RECEIVED",
"payload": null,
"details": {}
}

Too many requests. Retry after the Retry-After header (seconds).

Media typeapplication/json
object
state
required
string
payload
details
object
Example
{
"state": "NOT_FOUND_VENDOR_OFFER"
}
Retry-After
integer

Seconds to wait before retrying.