Note:DBS (Delivery By Seller) feature is not available to all sellers.Only open to some sellers or brands
This tutorial will show you how to identify DBS type orders and use the Miravia fulfillment API to ship them.
You can use GetOrders to retrieve a list of new orders and the order details. With Order ID of new order, you can use GetOrderItems to retrieve the product information of the order.
{ "data": [ { "order_item_id": 33247176004, "order_id": 33247076004, "status": "pending", "warehouse_code": "dropshipping", "shipping_type": "Dropshipping", "created_at": "2022-08-01 14:47:30 +0800", "delivery_option_sof": 1, "updated_at": "2022-08-01 14:48:46 +0800", "currency": "EUR", "shipping_provider_type": "seller_own_fleet". } ], "code": "0", "request_id": "21038f5516593373640451144" }
Use the order item ids and order ids obtained in the first step to call the Pack API to pack the order item ids into a package.
{ "pack_order_list": [ { "order_item_list": [ 33247176004,33247176005 ], "order_id": 33247076004 } ], "delivery_type": "dropship", "shipping_allocate_type": "TFS" }
{ "result": { "data": { "pack_order_list": [ { "order_item_list": [ { "order_item_id": 33247176004, "item_err_code": "0", "tracking_number": "SOF_33247076004", "shipment_provider": "Delivered by Seller", "package_id": "FP0900221001", "retry": false }, { "order_item_id": 33247176005, "item_err_code": "0", "tracking_number": "SOF_33247076004", "shipment_provider": "Delivered by Seller", "package_id": "FP0900221001", "retry": false } ], "order_id": 33247076004 } ] }, "success": true }, "code": "0", "request_id": "21038f5516593376367631145" }
You would need to call GetDBSShipmentProviders API to get the DBS shipping provider list to update the actual shipping provider of each parcel. Because you use the DBS method of shipping, the Miravia system will not automatically sense your package information.
{"sellerId":4000000176001}
{ "result": { "data": { "shipment_providers": [ { "name": "Correos EXPRESS", "provider_code": "DBSSP100000016" }, { "name": "SF3", "provider_code": "DBSSP100000009" } ] }, "success": true }, "code": "0", "request_id": "211b500616593381296471086" }
Note: This list is for reference only, please refer to the GetDBSShipmentProviders API response for the specific DBSShipmentProviders available.
Logistic name | Tracking number rules | Tracking number SampleSample | Tracking inf.Link |
Correos EXPRESS | ^([0-9]{16}|[0-9]{23})$ | eg.32300041720095701420026 | https://s.correosexpress.com/SeguimientoSinCP/search;jsessionid=UB6X2jZ4t2Aequ9T1DZ5OSkjNSItC2NOoJAq8Dz2.seguimientosincp-cex-677dc6d959-k778q |
SEUR | ^([0-9]{7}|[0-9]{10}|[0-9]{11}|[0-9]{12}|[0-9]{13}|[0-9]{14}|[0-9]{6}[a-zA-Z]{3}|[0-9]{6}[a-zA-Z]{5})$ | eg.11090140105784 | https://www.seur.com/es/ |
GLS(Inc.ASM) | ^([0-9]{14})$ | eg.31306552116360 | https://www.gls-spain.es/es/recibir-paquetes/seguimiento-envio/ |
MRW | ^([0-9a-zA-Z]{12})$ | eg.004003013617 | https://www.mrw.es/seguimiento_envios/MRW_seguimiento_envios.asp |
Paqueteria Correos | ^([a-zA-Z]{2}[0-9a-zA-Z]{4}[0-9]{9}[a-zA-Z]{1}|[a-zA-Z]{2}[0-9a-zA-Z]{4}[0-9]{16}[a-zA-Z]{1})$ | eg.PK79W40200000040118329P | https://www.correos.es/es/es/herramientas/localizador/envios |
ICP | ^([a-zA-Z]{2}[0-9]{8})$ | eg.AE17852042 | |
DHL | ^([0-9]{10}|[a-zA-Z]{2}[0-9]{18}|[a-zA-Z]{3}[0-9]{20})$ | eg.JD014600008628708223 | https://www.dhl.com/es-es/home.html |
https://www.dhl.com/es-es/home/seguimiento/etiqueta-de-identificacion.html | |||
UPS | ^([0-9a-zA-Z]{18}|[0-9]{12}|[0-9a-zA-Z]{11}|[0-9]{9})$ | eg.1Z0Y5W886897381391 | https://www.ups.com/track?loc=es_ES&requester=ST/ |
https://www.ups.com/es/es/tracking/help/tracking/tnh.page | |||
TIPSA | ^([0-9]{22})$ | eg. 0460180460184000123998 | https://www.etip-sa.com/localiza-envio |
ENVIALIA | ^([0-9]{16})$ | eg.0028960125448269 | https://www.envialia.com/seguimiento/ |
NACEX | ^([0-9a-zA-Z]{36})$ | https://www.nacex.es/recargarPagina.do?pagina=0 | |
ZELERIS | ^([0-9a-zA-Z]{18})$ | eg.1AE54180045223101W | https://www.zeleris.com/busqueda-envio.aspx |
CTT EXPRESS | ^[0-9]{22}|[0-9a-zA-Z]{13}$ | https://www.cttexpress.com/home/index | |
Others |
Call the UpdateTrackingInfo API to upload your actual tracking number and shipping provider.
{ "update_packages": [ { "tracking_number": "9356463170722110", "package_id": "FP0900221001", "shipment_provider_code": "DBSSP100000016" } ] }
{ "result": { "data": { "packages": [ { "item_err_code": "0", "package_id": "FP0900221001", "retry": false } ] }, "success": true }, "code": "0", "request_id": "211b500616593388491761088" }
Call ReadyToShip API to update the order to RTS status.
{"packages":[{"package_id":"FP0900221001"}]}
{ "result": { "data": { "packages": [ { "item_err_code": "0", "package_id": "FP0900221001", "retry": false } ] }, "success": true }, "code": "0", "request_id": "211b500616593408382921092" }
After your shipping provider have delivered the DBS parcels and buyers have accepted them , then you need to trigger parcels as delivered status through ConfirmDeliveryForDBS API .
If your shipping provider fail delivery the DBS parcels , then you need to trigger the parcels as failed delivered stauts through FailedDeliveryForDBS API.
{"packages":[{"package_id":"FP0900221001"}]}
{ "result": { "data": { "packages": [ { "item_err_code": "0", "package_id": "FP0900221001", "retry": false } ] }, "success": true }, "code": "0", "request_id": "211b500616593408382921092" }