{
  "context": {
    "domain": "ONDC:RET10",
    "country": "IND",
    "city": "std:080",
    "action": "on_cancel",
    "core_version": "1.2.0",
    "bap_id": "buyerNP.com",
    "bap_uri": "https://buyerNP.com/ondc",
    "bpp_id": "sellerNP.com",
    "bpp_uri": "https://sellerNP.com/ondc",
    "transaction_id": "T2",
    "message_id": "M10",
    "timestamp": "2023-06-03T11:00:30.000Z",
    "ttl": "PT30S"
  },
  "message": {
    "order": {
      "id": "O1",
      "state": "Cancelled ",
      "provider": {
        "id": "P1",
        "locations": [
          {
            "id": "L1"
          }
        ]
      },
      "items": [
        {
          "id": "I1",
          "fulfillment_id": "F1",
          "quantity": {
            "count": 0
          }
        },
        {
          "id": "I1",
          "fulfillment_id": "C1",
          "quantity": {
            "count": 2
          }
        }
      ],
      "billing": {
        "name": "ONDC buyer",
        "address": {
          "name": "my house or door or floor #",
          "building": "my building name or house #",
          "locality": "my street name",
          "city": "Bengaluru",
          "state": "Karnataka",
          "country": "IND",
          "area_code": "560037"
        },
        "email": "nobody@nomail.com",
        "phone": "9886098860",
        "created_at": "2023-06-03T09:00:00.000Z",
        "updated_at": "2023-06-03T09:00:00.000Z"
      },
      "cancellation ": {
        "cancelled_by": "buyerNP.com",
        "reason": {
          "id": "006"
        }
      },
      "fulfillments": [
        {
          "id": "F1",
          "@ondc/org/provider_name": "LSP or Provider Name",
          "state": {
            "descriptor": {
              "code": "Cancelled"
            }
          },
          "type": "Delivery",
          "tracking": true,
          "@ondc/org/TAT": "PT60M",
          "start": {
            "location": {
              "id": "L1",
              "descriptor": {
                "name": "ABC Store"
              },
              "gps": "12.956399,77.636803",
              "address": {
                "locality": "Jayanagar",
                "city": "Bengaluru",
                "area_code": "560076",
                "state": "KA"
              }
            },
            "time": {
              "range": {
                "start": "2023-06-03T10:00:00.000Z",
                "end": "2023-06-03T10:30:00.000Z"
              }
            },
            "contact": {
              "phone": "9886098860",
              "email": "nobody@nomail.com"
            }
          },
          "end": {
            "location": {
              "gps": "12.453544,77.928379",
              "address": {
                "name": "my house or door or floor #",
                "building": "my building name or house #",
                "locality": "my street name",
                "city": "Bengaluru",
                "state": "Karnataka",
                "country": "IND",
                "area_code": "560037"
              }
            },
            "time": {
              "range": {
                "start": "2023-06-03T11:00:00.000Z",
                "end": "2023-06-03T11:30:00.000Z"
              }
            },
            "person": {
              "name": "name_of_person"
            },
            "contact": {
              "phone": "9886098860",
              "email": "nobody@nomail.com"
            }
          },
          "tags ": [
            {
              "code": "cancel_request",
              "list": [
                {
                  "code": "reason_id",
                  "value": "006"
                },
                {
                  "code": "initiated_by",
                  "value": "buyerNP.com"
                }
              ]
            },
            {
              "code": "igm_request ",
              "list": [
                {
                  "code": "id",
                  "value": "Issue1"
                }
              ]
            },
            {
              "code": "precancel_state ",
              "list": [
                {
                  "code": "fulfillment_state",
                  "value": "Order-picked-up"
                },
                {
                  "code": "updated_at",
                  "value": "2023-06-03T10:45:00.000Z"
                }
              ]
            }
          ]
        },
        {
          "id": "C1",
          "type": "Cancel",
          "state": {
            "descriptor": {
              "code": "Cancelled"
            }
          },
          "tags": [
            {
              "code": "quote_trail",
              "list": [
                {
                  "code": "type",
                  "value": "item"
                },
                {
                  "code": "id",
                  "value": "I1"
                },
                {
                  "code": "currency",
                  "value": "INR"
                },
                {
                  "code": "value",
                  "value": "-340.00"
                }
              ]
            }
          ]
        }
      ],
      "quote": {
        "price ": {
          "currency": "INR",
          "value": "84.00"
        },
        "breakup": [
          {
            "@ondc/org/item_id": "I1",
            "@ondc/org/item_quantity": {
              "count": 0
            },
            "title": "Atta",
            "@ondc/org/title_type": "item",
            "price": {
              "currency": "INR",
              "value": "0.00"
            },
            "item": {
              "price": {
                "currency": "INR",
                "value": "170.00"
              }
            }
          },
          {
            "@ondc/org/item_id": "F1",
            "title": "Delivery charges",
            "@ondc/org/title_type": "delivery",
            "price": {
              "currency": "INR",
              "value": "50.00"
            }
          },
          {
            "@ondc/org/item_id": "F1",
            "title": "Tax",
            "@ondc/org/title_type": "tax ",
            "price": {
              "currency": "INR",
              "value": "9.00"
            },
            "item": {
              "tags": [
                {
                  "code": "quote",
                  "list": [
                    {
                      "code": "type",
                      "value": "fulfillment"
                    }
                  ]
                }
              ]
            }
          },
          {
            "@ondc/org/item_id": "F1",
            "title": "Packing charges",
            "@ondc/org/title_type": "packing",
            "price": {
              "currency": "INR",
              "value": "25.00"
            }
          },
          {
            "@ondc/org/item_id": "I1",
            "title": "Tax",
            "@ondc/org/title_type": "tax",
            "price": {
              "currency": "INR",
              "value": "0.00"
            }
          }
        ],
        "ttl": "P1D"
      },
      "payment": {
        "uri": "https://ondc.transaction.com/payment",
        "tl_method": "http/get",
        "params": {
          "currency": "INR",
          "transaction_id": "3937",
          "amount": "424.00"
        },
        "status": "PAID",
        "type": "ON-ORDER",
        "collected_by": "BAP",
        "@ondc/org/buyer_app_finder_fee_type": "percent",
        "@ondc/org/buyer_app_finder_fee_amount": "3",
        "@ondc/org/settlement_details": [
          {
            "settlement_counterparty": "seller-app",
            "settlement_phase": "sale-amount",
            "beneficiary_name": "xxxxx",
            "settlement_type": "upi",
            "upi_address": "gft@oksbi",
            "settlement_bank_account_no": "XXXXXXXXXX",
            "settlement_ifsc_code": "XXXXXXXXX",
            "bank_name": "xxxx",
            "branch_name": "xxxx"
          }
        ]
      },
      "created_at": "2023-06-03T09:30:00.000Z",
      "updated_at": "2023-06-03T11:00:30.000Z"
    }
  }
}
