Skip to navigation

Create an upload link

Returns a link to the TradeGuard sub portal that you send to the subcontractor yourself (by email, text or in your own app). The sub opens it with no account and no password, sees only your organization’s open items (the same whatsWrong / whatToAskFor text as GET /v1/issues), and uploads documents to you. Uploads go through the same checks as an API upload and fire the same webhooks.

Made for organizations where you collect documents yourself (collectionMode: customer): TradeGuard never emails anyone about an upload link. It works for any organization.

  • The URL is returned once; TradeGuard stores only a hash of it.
  • It works on any number of devices until expiresAt (default 30 days, expiresInDays 1 to 90). A device stays signed in for 30 days.
  • revokePrevious: true turns this sub’s earlier upload links off first. DELETE turns them all off.

Errors: 404 when the subcontractor isn’t on your roster, 409 when it is inactive with your organization or when your organization isn’t set to “You collect” (TradeGuard then sends the sub its own portal link).

See Upload links.

Authentication

AuthorizationBearer

Session JWT or API key (ak_...)

Path parameters

subcontractorIdstringRequiredformat: "uuid"

Request

This endpoint expects an object.
expiresInDaysintegerOptional1-90Defaults to 30
revokePreviousbooleanOptionalDefaults to false
Turn off this subcontractor's earlier upload links first.

Response

The upload link
dataobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error