/
Trigger Definition
Trigger Definition
Cancel Order
Used when an order is canceled on Flipkart.
{
"versionCode": "96@121",
"actionSlug": "cancel_order",
"type": "polling",
"operation": {
"sample": {
"hasMore": true,
"nextPageUrl": "/v3/shipments/filter?next_token=ewogICJmaWx0ZXJUeXBlIiA6ICJjYW5jZWxsZWQiLAogICJzZWxsZXJJZCIgOiAiMjhkYmEwZDU4MGY2NDcwOCIsCiAgInRva2VuIiA6ICJld29nSUNKd1lYSmhiWE1pSURvZ2V3b2dJQ0FnSW5ObGNuWnBZMlZmY0hKdlptbHNaWE1pSURvZ1d5QWlUazlPWDBaQ1JpSWdYU3dLSUNBZ0lDSmpZVzVqWld4c1pXUWlJRG9nZXdvZ0lDQWdJQ0FpY21WaGMyOXVjeUlnT2lCYklDSmpZVzVqWld4c1lYUnBiMjVmY21WeGRXVnpkR1ZrSWlCZENpQWdJQ0I5TEFvZ0lDQWdJbkowYnlJZ09pQjdDaUFnSUNBZ0lDSnlaV0Z6YjI1eklpQTZJRnNnSWxOSldrVmZSa2xVWDBsVFUxVkZVeUlzSUNKRFZWTlVUMDFGVWw5U1JVMVBVbE5GSWl3Z0lrTjFjM1J2YldWeUlFTmhibU5sYkd4bFpDQk9iM1FnU1c1MFpYSmxjM1JsWkNJc0lDSkpibU",
"shipments": [
{
"shipmentId": "d04887a0-b8b6-4ff5-913b-b935e94fabab",
"dispatchByDate": "2020-06-13T12:00:00.000+05:30",
"dispatchAfterDate": "2020-06-11T18:01:00.000+05:30",
"updatedAt": "2020-08-12T16:28:48.000+05:30",
"hold": false,
"mps": false,
"subShipments": [
{
"subShipmentId": "SS-1",
"packages": [
{
"packageId": "PKGDREFQ3E83PVCE7HNN1ZQQ1",
"packageSku": "13DB23FMFAW"
}
]
}
],
"orderItems": [
{
"orderItemId": "11886250452593500",
"orderId": "OD118862504525935000",
"cancellationGroupId": "grp11886250452593500",
"orderDate": "2020-06-10T11:46:10.000+05:30",
"cancellationDate": "2020-08-12T16:28:46.000+05:30",
"paymentType": "PREPAID",
"status": "CANCELLED",
"cancellationReason": "order_cancelled",
"cancellationSubReason": "delivery_time_long",
"courierReturn": true,
"quantity": 1,
"fsn": "DREFQ3E83PVCE7HN",
"sku": "13DB23FMFAW",
"listingId": "LSTDREFQ3E83PVCE7HNN1ZQQ1",
"hsn": "61044300",
"title": "Cover Story Women Maxi Yellow Dress L DSMX03UB0823-MU",
"packageIds": [
"PKGDREFQ3E83PVCE7HNN1ZQQ1"
],
"priceComponents": {
"sellingPrice": 1.0,
"totalPrice": 42.0,
"shippingCharge": 41.0,
"customerPrice": 42.0,
"flipkartDiscount": 0.0
},
"serviceProfile": "Seller_Fulfilment",
"is_replacement": false
}
],
"shipmentType": "NORMAL"
}
]
},
"perform": {
"url": "https://api.flipkart.net/sellers/v3/shipments/filter",
"method": "POST",
"params": {},
"headers": {
"Accept": "application/json",
"Authorization": "Bearer {{bundle.authData.access_token}}"
},
"body": {
"filter##type": "cancelled",
"filter##states[]": "CANCELLED",
"filter##cancellationType": "{{bundle.inputData.cancellationType}}",
"filter##cancellationDate##to": "{{bundle.inputData.to}}",
"filter##cancellationDate##from": "{{bundle.inputData.from}}"
},
"removeMissingValuesFrom": {}
},
"outputFields": [],
"canPaginate": true
},
"noun": "order",
"display": {
"label": "order cancelled",
"description": "When an order is cancelled on Flipkart",
"hidden": false,
"important": true
}
}
Create Order
Used when an order is created on Flipkart.
{
"versionCode": "96@121",
"actionSlug": "create_order",
"type": "polling",
"operation": {
"sample": {
"hasMore": true,
"nextPageUrl": "/v3/shipments/filter?next_token=ewogICJmaWx0ZXJUeXBlIiA6ICJwcmVEaXNwYXRjaCIsCiAgInNlbGxlcklkIiA6ICIyOGRiYTBkNTgwZjY0NzA4IiwKICAidG9",
"shipments": [
{
"shipmentId": "cd6fff34-368e-44dd-b747-d7fad8c84990",
"dispatchByDate": "2020-09-28T12:00:00.000+05:30",
"dispatchAfterDate": "2020-09-27T12:01:00.000+05:30",
"updatedAt": "2020-09-20T15:44:12.000+05:30",
"locationId": "LOC62a30c1d159845e09dfeef303f52cfb9",
"hold": false,
"mps": false,
"packagingPolicy": "DEFAULT",
"subShipments": [
{
"subShipmentId": "SS-1",
"packages": [
{
"packageId": "PKGBRFF8H6TSRBXPABQIUPJI5",
"packageSku": "BBAPLBB63792_L",
"dimensions": {
"length": 16,
"breadth": 12,
"height": 6,
"weight": 0.23
}
}
]
}
],
"orderItems": [
{
"orderItemId": "11974521229403000",
"orderId": "OD119745212294030000",
"cancellationGroupId": "grp11974521229403000",
"orderDate": "2020-09-20T15:43:49.000+05:30",
"paymentType": "COD",
"status": "APPROVED",
"quantity": 1,
"fsn": "BRFF8H6TSRBXPABQ",
"sku": "BBAPLBB63792_L",
"listingId": "LSTBRFF8H6TSRBXPABQIUPJI5",
"hsn": "61071100",
"title": "Blackberrys Men Brief L SP-INFLUENCE_Mustard",
"packageIds": [
"PKGBRFF8H6TSRBXPABQIUPJI5"
],
"priceComponents": {
"sellingPrice": 416.0,
"totalPrice": 452.0,
"shippingCharge": 36.0,
"customerPrice": 452.0,
"flipkartDiscount": 0.0
},
"serviceProfile": "Seller_Fulfilment",
"is_replacement": false
}
],
"forms": [],
"shipmentType": "NORMAL"
}
]
},
"perform": {
"url": "https://api.flipkart.net/sellers/v3/shipments/filter",
"method": "POST",
"params": {},
"headers": {
"Accept": "application/json",
"Authorization": "Bearer {{bundle.authData.access_token}}"
},
"body": {
"filter##type": "preDispatch",
"filter##states[]": "APPROVED",
"filter##orderDate##to": "{{bundle.inputData.to}}",
"filter##orderFrom##from": "{{bundle.inputData.from}}"
},
"removeMissingValuesFrom": {}
},
"outputFields": [],
"canPaginate": true
},
"noun": "order",
"display": {
"label": "order created",
"description": "When an order is created on flipkart ",
"hidden": false,
"important": true
}
}
Packed Order
Used when an order is marked packed on Flipkart.
{
"versionCode": "96@121",
"actionSlug": "packed_order",
"type": "polling",
"operation": {
"sample": {
"hasMore": true,
"nextPageUrl": "/v3/shipments/filter?next_token=ewogICJmaWx0ZXJUeXBlIiA6ICJwcmVEaXNwYXRjaCIsCiAgInNlbGxlcklkIiA6ICIyOGRiYTBkNTgwZjY0NzA4IiwKICAidG9",
"shipments": [
{
"shipmentId": "cd6fff34-368e-44dd-b747-d7fad8c84990",
"dispatchByDate": "2020-09-28T12:00:00.000+05:30",
"dispatchAfterDate": "2020-09-27T12:01:00.000+05:30",
"updatedAt": "2020-09-20T15:44:12.000+05:30",
"locationId": "LOC62a30c1d159845e09dfeef303f52cfb9",
"hold": false,
"mps": false,
"packagingPolicy": "DEFAULT",
"subShipments": [
{
"subShipmentId": "SS-1",
"packages": [
{
"packageId": "PKGBRFF8H6TSRBXPABQIUPJI5",
"packageSku": "BBAPLBB63792_L",
"dimensions": {
"length": 16,
"breadth": 12,
"height": 6,
"weight": 0.23
}
}
]
}
],
"orderItems": [
{
"orderItemId": "11974521229403000",
"orderId": "OD119745212294030000",
"cancellationGroupId": "grp11974521229403000",
"orderDate": "2020-09-20T15:43:49.000+05:30",
"paymentType": "COD",
"status": "PACKED",
"quantity": 1,
"fsn": "BRFF8H6TSRBXPABQ",
"sku": "BBAPLBB63792_L",
"listingId": "LSTBRFF8H6TSRBXPABQIUPJI5",
"hsn": "61071100",
"title": "Blackberrys Men Brief L SP-INFLUENCE_Mustard",
"packageIds": [
"PKGBRFF8H6TSRBXPABQIUPJI5"
],
"priceComponents": {
"sellingPrice": 416.0,
"totalPrice": 452.0,
"shippingCharge": 36.0,
"customerPrice": 452.0,
"flipkartDiscount": 0.0
},
"serviceProfile": "Seller_Fulfilment",
"is_replacement": false
}
],
"forms": [],
"shipmentType": "NORMAL"
}
]
},
"perform": {
"url": "https://api.flipkart.net/sellers/v3/shipments/filter",
"method": "POST",
"params": {},
"headers": {
"Accept": "application/json",
"Authorization": "Bearer {{bundle.authData.access_token}}"
},
"body": {
"filter##type": "preDispatch",
"filter##states[]": "PACKED",
"filter##orderDateto": "{{bundle.inputData.to}}",
"filter##orderDatefrom": "{{bundle.inputData.from}}"
},
"removeMissingValuesFrom": {}
},
"outputFields": [],
"canPaginate": true
},
"noun": "order",
"display": {
"label": "order packed",
"description": "When an order is packed ",
"hidden": false,
"important": true
}
}
New Return
Used when a new return is created on Flipkart.
{
"versionCode": "96@121",
"actionSlug": "return_created",
"type": "polling",
"operation": {
"sample": {
"hasMore": true,
"nextUrl": "/returns/search/ewogICJmaWx0ZXIiIDogewogICAgInNlcnZpY2VfcHJvZmlsZSIgOiBudWxsLAogICAgInR5cGUiIDogWyAiY291cmllcl9yZXR1cm4iIF0sCiAgICAic2hpcG1lbnRfdHlwZXMiIDogbnVsbCwKICAgICJzaGlwbWVudF9zdGF0dXMiIDogbnVsbCwKICAgICJyZXR1cm5fc3RhdHVzIiA6IG51bGwsCiAgICAic2hpcG1lbnRfZXhwZWN0YXRpb25zIiA6IG51bGwsCiAgICAic2t1IiA6IG51bGwsCiAgICAicHJvbWlzZV9icmVhY2giIDogbnVsbCwKICAgICJhcHByb3ZlZCIgOiBudWxsLAogICAgInByb21pc2UiIDogbnVsbCwKICAgICJvdXRfZm9yX2RlbGl2ZXJ5IiA6IG51bGwsCiAgICAicmV0dXJuX2NvbXBsZXRlZCIgOiBudWxsLAogICAgInNoaXBtZW50X2NvbXBsZXRlZF9vbiIgOiBudWxsLAogICAgImNyZWF0ZWRfYWZ0ZXIiIDogbnVsbCwKICAgICJtb2RpZmllZF9hZnRlciIgOiBudWxsCiAgfSwKICAicGFnaW5hdGlvbiIgOiB7CiAgICAic3RhcnRpbmdfcGFnZSIgOiAyLAogICAgInBhZ2Vfc2l6ZSIgOiAyNQogIH0sCiAgInNvcnQiIDogbnVsbAp9",
"returnItems": [
{
"orderItemId": "11980720411507700",
"locationId": "LOC62a30c1d159845e09dfeef303f52cfb9",
"orderId": "OD119807204115077000",
"quantity": 1,
"orderDate": "2020-09-27T14:25:48.659Z",
"createdDate": "2020-09-28T16:19:17+05:30",
"courierName": null,
"sellerId": "28dba0d580f64708",
"returnId": "10101981454721753372",
"status": "created",
"type": "courier_return",
"reason": "order_cancelled",
"subReason": "mind_changed",
"trackingId": "FMPC0883440212",
"shipmentStatus": "in_transit",
"shipmentId": null,
"comments": "",
"updatedDate": null,
"approvedOn": null,
"expectedDate": "2020-10-28T16:19:30.000",
"serviceProfile": "NON_FBF",
"services": []
}
]
},
"perform": {
"url": "http://api.flipkart.net/sellers/v2/return",
"method": "GET",
"params": {
"source": "{{bundle.inputData.source}}",
"createdAfter": "{{bundle.inputData.createdAfter}}"
},
"headers": {
"Accept": "application/json",
"Authorization": "Bearer {{bundle.authData.access_token}}"
},
"body": {},
"removeMissingValuesFrom": {}
},
"outputFields": [],
"canPaginate": true
},
"noun": "return",
"display": {
"label": "return created",
"description": "When a return is created on flipkart",
"hidden": false,
"important": true
}
}
, multiple selections available,