Confirm your PSP provides settlement files
Applies to: Any platform using a third-party PSP for funds acquisition (whether the platform uses the Mirakl Connector or not)
- A list of transactions and details for each: type (e.g. payment, refund, chargeback), identifiers, amounts, date, status information, etc.
- Summary data relating to the settlement of those transactions: date of settlement, total amount sent to your platform, total amount of commission retained by the PSP, etc.
Best practice – Request settlement files as soon as possible (if not already provided)If your PSP doesn’t provide settlement files today, you need to request that they do as soon as possible.This data is essential for regulatory compliance and Mangopay relies on your partner PSP to provide you the files.
Enrich Mirakl Connector integration
Applies to: Any platform using a third-party PSP for funds acquisition and using the Mirakl Connector
Note – If using multi-capture, use order line custom fieldsThe connector supports single capture (one capture per
commercial_order
) and multi-capture (one capture per logistic_order
or multiple captures per logistic_order
).If you use multiple captures per logistic_order
, use order line custom fields (order_line_additional_fields
) instead of order custom fields.1. Create custom Order fields in the Mirakl Dashboard
Mirakl allows its operators to create custom data fields (for Stores, Orders, etc.) for specific business needs. Mangopay’s Mirakl Connector relies on these custom fields to standardize the transactional data that is not always present in Orders. Without these fields, Mangopay Echo can’t declare external payments (called Intents in the Echo solution) or reconcile and release funds.How to create fields
To create custom fields in the Mirakl Dashboard:- Navigate to Settings in the sidebar menu.
- Select the entity: Orders
- Go to the Custom fields tab.
- Click Create custom field and fill in the required details such as Label, Code, Type, and Description.
- Store account permissions: Invisible or Read only
- Required field: No
Fields to create
Code | Description | Type (Mirakl Dashboard) |
---|---|---|
mgp-external-provider-name | The name of the external provider processing the transaction. | Single values list containing the relevant value(s) exactly as they appear in the supported external providers. |
mgp-external-processing-date | The date at which the transaction was created. | Date (ISO 8601 format) |
mgp-external-provider-reference | The unique identifier of the transaction at the provider level. | Text (Max: 2000 char.) |
mgp-external-merchant-reference | The unique identifier of the transaction at the merchant level. | Text (Max: 2000 char.) |
mgp-external-provider-payment-method | One of the supported payment methods used to process the transaction. | Single values list containing the relevant values exactly as they appear in the supported payment methods. |
Best practice – Use list values not text stringsThe data values sent in
mgp-external-provider-name
and mgp-external-provider-payment-method
must match the supported enum values linked above.Therefore, it is better to use the Mirakl Single values list format with the specified values rather than free text. In the Mirakl API this format is LIST
with accepted_values
.Note that the payment method is not required by Mangopay, so if you make it required on Mirakl then all values must be in the supported values.2. Integrate the custom Order fields into your Mirakl API calls
Now that the fields have been created, you need to integrate them on your calls to the Mirakl API for Orders. The following fields are required for correct processing by Mangopay Echo:Field | Required | Expected values |
---|---|---|
mgp-external-provider-name | Yes | One of the supported external providers. |
mgp-external-processing-date | Yes | ISO 8601 date time in UTC (YYYY-MM-DDTHH:MM:SSZ) |
mgp-external-provider-reference | Yes | String |
mgp-external-merchant-reference | No | String |
mgp-external-provider-payment-method | No | One of the supported payment methods. If the payment method is not supported, this field can be left blank (provided you created it as not required). |
- OR01 when you create an Order – this is recommended
- OR31 by editing an existing Order, if the data becomes available after creation
Note – Incomplete custom fields blocks release of fundsYou should provide the custom field data as early as possible in the flow.With this information, the Mirakl Connector calls the Mangopay API to declare the order details to Mangopay based on the Mirakl Order status. It creates, captures and refunds Intents.Without this custom field data, the Mirakl Connector cannot reconcile the Order and its settlement with Intents, preventing the release of funds to the seller.
Example of custom fields in Mirakl API call
Provide settlement files to Mangopay
Applies to: Any platform using a third-party PSP for funds acquisition (whether the platform uses the Mirakl Connector or not)