⬆️Request and Response

Request to the API endpoint

Retrieves a list of orders that meet the specified criteria

POST https://api.alephcrm.com/v2/orders/{orderId}/documents

Query Parameters

NameTypeDescription

API_KEY*

String

(default=none)

accountId *

Integer

(default=none)

orderId

Integer

file

File

fileBase64

String

documentName

String

documentExtension

String

documentType

Integer

documentNumber

String

documentDate

Datetime

messageText

String

fiscalKey

String

seriesNumber

String

There are two different ways of attaching the document: through form-data, or through JSON body with a base64-encoded file.

1. With form-data parameters:

This is the most common way, and the endpoint expects to receive the following parameters using URL_PARAM (via query string) parameters and values.

2. With a JSON body including a base64-encoded file:

This is the easiest way, and the endpoint expects to receive the following parameters using URL_PARAM (via query string) parameters and values one JSON object in the BODY with some attributes, including a base64-encoded file.

API_KEY

The API_KEY that was provided.

accountId

The Alephee account ID of the orders you are trying to get.

orderId

Alephee ID to identify the order. The Alephee order number. It is not the marketplace order number.

file

Document file to attach into an order.

fileBase64

The document to attach into an order. Must be an encoded base64 string of the document´s full content.

documentName

Document name, only for base64 encoded files

documentExtension

Document extension, only for base64 encoded files

documentType

Type of document to attach. Available values are: 0 = Invoice 1 = Receipt 2 = Electronic fiscal invoice (exclusive for Brazilian customers) This parameter is extremely important. Invoices and electronic fiscal invoices are sent to the order’s origin marketplace. Receipts don’t.

documentNumber}

Internal number for the document

documentDate

The date the document was issued.

messageText

This field is to specify a text message that will travel with the attached file.

fiscalKey (only electronic invoice)

Fiscal key of the electronic invoice

seriesNumber (only electronic invoice)

Series number of the electronic invoice

Last updated