Skip to Content
Docs
Documents

Retrieve a document

GET/documents/{id}

Retrieves the details of a dispute evidence document by its unique identifier.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Path parameters

idstringRequired

Unique identifier for the document.

Returns

Returns the document object.

idstringRequired

Unique identifier for the document.

resourcestringRequired

String representing the object's type.

One of document.

createdstringRequired

Time at which the object was created, in ISO 8601 format.

filenamestringRequired

The original filename of the uploaded document.

referencestringRequired

A reference identifier for the document.

statusstringRequired

Status of the document. One of created (no file uploaded yet), pending (uploaded and being scanned), active (accepted; contents can be downloaded and the document can be used as evidence), or rejected.

One of created, pending, active or rejected.

content_typestringRequired

The MIME type of the document.

content_lengthinteger

The size of the document in bytes.

categorystringRequired

The category of the document.

One of dispute_evidence.

urlstring

The absolute URL to retrieve the document contents.

titlestring

The display title of the document. Defaults to filename.

Errors

400
Invalid request parameters.
401
The API key or access token is missing, unknown or no longer works (invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).
403
The request was refused: the API key may not make it (for example resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.
404
Document not found.
500
Internal server error.
503
Service unavailable. Retry after the number of seconds in Retry-After, or after a few seconds when there's none.
Was this page helpful?