Filter document requests with the given id
Document request states. This parameter can be supplied multiple times.
Accounting document types. This parameter can be supplied multiple times.
Issuer types. This parameter can be supplied multiple times.
Entity identifiers. (default: include all). This parameter can be supplied multiple times.
The entity_type
must be specified to use this filter, otherwise an error 400 will be returned.
Example: entity_id=order1-A&entity_id=order20-A&entity_type=PRODUCT_LOGISTIC_ORDER
Entity types. This parameter can be supplied multiple times.
Filter document requests generated by billing cycle after the given date. This filter is only available for documents requests of the type: SHOP_BILLING_CYCLE_PURCHASE_ORDER
.
Filter document requests generated by billing cycle before the given date. This filter is only available for documents requests of the type: SHOP_BILLING_CYCLE_PURCHASE_ORDER
.
Filter document requests with the given payment state. This filter is only available for documents requests of the type: SHOP_BILLING_CYCLE_PURCHASE_ORDER, LOGISTIC_PURCHASE_ORDER
.
Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.
curl -i -X GET \
'https://your-instance.mirakl.net/api/document-request/requests?billing_cycle_from=2019-08-24T14%3A15%3A22Z&billing_cycle_to=2019-08-24T14%3A15%3A22Z&date_created_from=2019-08-24T14%3A15%3A22Z&date_created_to=2019-08-24T14%3A15%3A22Z&document_number=string&entity_id=string&entity_type=string&id=string&issue_date_from=2019-08-24T14%3A15%3A22Z&issue_date_to=2019-08-24T14%3A15%3A22Z&issuer_type=string&last_updated_from=2019-08-24T14%3A15%3A22Z&last_updated_to=2019-08-24T14%3A15%3A22Z&page_token=string&payment_state=string&shop_id=0&sort=string&state=string&type=string'
{ "data": [ { … } ], "next_page_token": "string", "previous_page_token": "string" }
curl -i -X GET \
'https://your-instance.mirakl.net/api/document-request/{document_request_id}/lines?page_token=string&shop_id=0&sort=string'
{ "data": [ { … } ], "next_page_token": "string", "previous_page_token": "string" }
At least one of the following filters must be applied: document_id
or entity_id
If more than one document is requested, the output of the API will be a ZIP archive.
The tree structure of this archive is as follows:
documents-1624624030618.zip | |__ product-logistic-order/ | |order1-A/| | INV203837.pdf | |__ INV203837.cxml | |order1-B/| | INV203839.pdf
The document request unique identifier. This parameter can be supplied multiple times.
Document identifiers. This parameter can be supplied multiple times.
Document formats. This parameter can be supplied multiple times.
Entity identifiers related to the documents to download. This parameter can be supplied multiple times.
The entity_type
must be specified to use this filter, otherwise an error 400 will be returned.
Example: entity_id=order1-A&entity_id=order20-A&entity_type=PRODUCT_LOGISTIC_ORDER
Entity types related to the documents to download. This parameter can be supplied multiple times.
curl -i -X GET \
'https://your-instance.mirakl.net/api/document-request/documents/download?document_format=string&document_id=string&document_request_id=string&entity_id=string&entity_type=string&shop_id=0'
A comma separated list of issuing user type for filtering. By default all types are returned
A comma-separated list of pay-out PSP codes for filtering. This parameter requires the Hybrid pay-out PSP feature to be enabled.
Accounting document type for filtering. By default only invoices by the shop payment process are returned.
Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.
curl -i -X GET \
'https://your-instance.mirakl.net/api/invoices?currency=string&end_date=2019-08-24T14%3A15%3A22Z&issuing_user_types=string&max=0&offset=0&order=string&pay_out_psp_codes=string&payment_status=string&shop_id=0&sort=string&start_date=2019-08-24T14%3A15%3A22Z&type=AUTO_INVOICE'
{ "invoices": [ { … } ], "total_count": 0 }
curl -i -X GET \
'https://your-instance.mirakl.net/api/invoices/{accounting_document_id}?shop_id=0'
Payment state for filtering. This parameter can be supplied multiple times.
Transaction type for filtering. This parameter can be supplied multiple times.
Order id for filtering. This parameter can be supplied multiple times.
Order line id for filtering. This parameter can be supplied multiple times.
A comma-separated list of order references for customer.
A comma-separated list of order references for seller.
Accounting document id for filtering. This parameter only filter documents requests of the type: SHOP_BILLING_CYCLE_PURCHASE_ORDER
.
A comma-separated list of pay-out PSP codes for filtering. This parameter requires the Hybrid pay-out PSP feature to be enabled.
Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.
curl -i -X GET \
'https://your-instance.mirakl.net/api/sellerpayment/transactions_logs?accounting_document_id=string&accounting_document_number=string&date_created_from=2019-08-24T14%3A15%3A22Z&date_created_to=2019-08-24T14%3A15%3A22Z&last_updated_from=2019-08-24T14%3A15%3A22Z&order_id=string&order_line_id=string&order_reference_for_customer=string&order_reference_for_seller=string&page_token=string&pay_out_psp_codes=string&payment_state=string&shop_id=0&shop_model=string&sort=string&transaction_date_from=2019-08-24T14%3A15%3A22Z&transaction_date_to=2019-08-24T14%3A15%3A22Z&transaction_type=string'
{ "data": [ { … } ], "next_page_token": "string", "previous_page_token": "string" }
Accounting document id for filtering. This parameter only filter documents requests of the type: SHOP_BILLING_CYCLE_PURCHASE_ORDER
.
Order id for filtering. This parameter can be supplied multiple times.
Order line id for filtering. This parameter can be supplied multiple times.
A comma-separated list of order references for customer.
A comma-separated list of order references for seller.
A comma-separated list of pay-out PSP codes for filtering. This parameter requires the Hybrid pay-out PSP feature to be enabled.
Payment state for filtering. This parameter can be supplied multiple times.
A shop domain for filtering. This parameter can be supplied multiple times.
curl -i -X POST \
'https://your-instance.mirakl.net/api/sellerpayment/transactions_logs/async?shop_id=0' \
-H 'Content-Type: application/json' \
-d '{
"accounting_document_id": "string",
"accounting_document_number": "string",
"date_created_from": "2019-08-24T14:15:22Z",
"date_created_to": "2019-08-24T14:15:22Z",
"items_per_chunk": 0,
"last_updated_from": "2019-08-24T14:15:22Z",
"megabytes_per_chunk": 0,
"order_id": [
"string"
],
"order_line_id": [
"string"
],
"order_reference_for_customer": [
"string"
],
"order_reference_for_seller": [
"string"
],
"pay_out_psp_codes": [
"string"
],
"payment_state": [
"string"
],
"payment_voucher_number": "string",
"shop_domain": [
"string"
],
"shop_id": 0,
"shop_model": [
"string"
],
"transaction_date_from": "2019-08-24T14:15:22Z",
"transaction_date_to": "2019-08-24T14:15:22Z",
"transaction_type": [
"string"
]
}'
{ "tracking_id": "string" }
curl -i -X GET \
'https://your-instance.mirakl.net/api/sellerpayment/transactions_logs/async/status/{tracking_id}?shop_id=0'
{ "error": { "code": "string", "detail": "string" }, "last_updated": "2019-08-24T14:15:22Z", "status": "string", "urls": [ "string" ] }