Documents

Get a Document

get

Retrieve a specific document for the specified merchant by document ID. The value provided in the MerchantId header must match the merchantNumber specified in the URL.

Path parameters
merchantNumberstringRequired

The merchant's unique identification number.

documentIdstring · uuidRequired

Document ID of the document to be retrieved.

Responses
200

Returns the document as a file stream.

No content

get
/api/documents/v1.0/document/{merchantNumber}/{documentId}

No content

Get Document Types

get

Retrieve a list of available document types for the specified merchant. The MerchantId value provided in the request header must match the merchantNumber specified in the URL

Path parameters
merchantNumberstringRequired

The merchant's unique identification number.

Responses
200

Returns a list of document types.

application/json
get
/api/documents/v1.0/document/{merchantNumber}/DocumentTypes

Get Documents by Type

get

Retrieve a list of documents associated with the specified merchant, filtered by document type. You can use either the documentTypeName or documentTypeId query parameter, but not both. If you use documentTypeName, make sure it is URL-encoded before including it in the request. The MerchantId value provided in the request header must match the merchantNumber specified in the URL.

Path parameters
merchantNumberstringRequired

The merchant's unique identification number.

Query parameters
documentTypeIdstringOptional

A unique identifier of the document type.

documentTypeNamestringOptional

A name of the document type.

Responses
200

Returns a list of documents filtered by type.

application/json
get
/api/documents/v1.0/document/{merchantNumber}/Documents

Get Statements by Year

get

Retrieve all statements for the specified merchant for the given year.

Path parameters
merchantNumberstringRequired

The merchant's unique identification number.

yearstringRequired

A year for which to retrieve statements.

Responses
200

Returns a list of statements for the given year.

application/json
get
/api/documents/v1.0/document/{merchantNumber}/Statements/{year}

Get Statements by Year and Month

get

Retrieves all statements for the specified merchant for a given year and month. The MerchantId value provided in the request header must match the merchantNumber specified in the URL.

Path parameters
merchantNumberstringRequired

The merchant's unique identification number.

yearstringRequired

A year for which to retrieve statements.

monthstringRequired

A month for which to retrieve statements.

Responses
200

Returns a list of statements for the given year and month.

application/json
get
/api/documents/v1.0/document/{merchantNumber}/Statements/{year}/{month}

Last updated

Was this helpful?