{
  "context": {
    "domain": "ONDC:RET10",
    "action": "on_confirm",
    "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": "M4",
    "city": "std:080",
    "country": "IND",
    "timestamp": "2023-06-03T09:30:30.000Z"
  },
  "message": {
    "order": {
      "id": "O1",
      "state": "Accepted ",
      "provider": {
        "id": "P1",
        "locations": [
          {
            "id": "L1"
          }
        ]
      },
      "items": [
        {
          "id": "I1",
          "fulfillment_id": "F1",
          "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"
      },
      "fulfillments": [
        {
          "id": "F1",
          "@ondc/org/provider_name": "LSP or Provider Name",
          "state": {
            "descriptor": {
              "code": "Pending"
            }
          },
          "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"
              }
            },
            "instructions ": {
              "code": "2 ",
              "name": "ONDC order",
              "short_desc": "value of PCC ",
              "long_desc": "additional instructions such as register or counter no for self-pickup"
            },
            "contact": {
              "phone": "9886098860",
              "email ": "nobody@nomail.com"
            }
          },
          "end": {
            "location": {
              "gps": "12.453544,77.928379",
              "address": {
                "name": "my house or door #",
                "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"
            }
          }
        }
      ],
      "quote": {
        "price": {
          "currency": "INR",
          "value": "424.00"
        },
        "breakup": [
          {
            "@ondc/org/item_id": "I1",
            "@ondc/org/item_quantity": {
              "count": 2
            },
            "title": "Atta",
            "@ondc/org/title_type": "item",
            "price": {
              "currency": "INR",
              "value": "340.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"
            }
          },
          {
            "@ondc/org/item_id": "I1",
            "title": "Discount",
            "@ondc/org/title_type": "discount",
            "price": {
              "currency": "INR",
              "value": "-10.00"
            }
          },
          {
            "@ondc/org/item_id": "F1",
            "title": "Convenience Fee",
            "@ondc/org/title_type": "misc",
            "price": {
              "currency": "INR",
              "value": "10.00"
            }
          }
        ],
        "ttl": "P1D"
      },
      "payment ": {
        "uri ": "https://ondc.transaction.com/payment",
        "tl_method ": "http/get",
        "params": {
          "currency": "INR",
          "transaction_id": "3937",
          "amount": "415.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_basis": "delivery",
        "@ondc/org/settlement_window": "P1D",
        "@ondc/org/withholding_amount": "10.00",
        "@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"
          }
        ]
      },
      "cancellation_terms ": [
        {
          "fulfillment_state": {
            "descriptor": {
              "code": "Pending",
              "short_desc": "002"
            }
          },
          "cancellation_fee": {
            "amount": {
              "currency": "INR",
              "value": "0.00"
            }
          }
        },
        {
          "fulfillment_state": {
            "descriptor": {
              "code": "Packed",
              "short_desc": "001,003"
            }
          },
          "cancellation_fee": {
            "amount": {
              "currency": "INR",
              "value": "50.00"
            }
          }
        },
        {
          "fulfillment_state": {
            "descriptor": {
              "code": "Order-picked-up",
              "short_desc": "001,003"
            }
          },
          "cancellation_fee": {
            "amount": {
              "currency": "INR",
              "value": "50.00"
            }
          }
        },
        {
          "fulfillment_state": {
            "descriptor": {
              "code": "Out-for-delivery",
              "short_desc": "009"
            }
          },
          "cancellation_fee": {
            "amount": {
              "currency": "INR",
              "value": "0.00"
            }
          }
        },
        {
          "fulfillment_state": {
            "descriptor": {
              "code": "Out-for-delivery",
              "short_desc": "011,012,013,014,015"
            }
          },
          "cancellation_fee": {
            "amount": {
              "currency": "INR",
              "value": "100.00"
            }
          }
        }
      ],
      "tags ": [
        {
          "code": "bpp_terms",
          "list": [
            {
              "code": "max_liability_cap",
              "value": "10000.00"
            },
            {
              "code": "max_liability",
              "value": "2"
            },
            {
              "code": "mandatory_arbitration",
              "value": "false"
            },
            {
              "code": "court_jurisdiction",
              "value": "Bengaluru"
            },
            {
              "code": "delay_interest",
              "value": "7.50"
            },
            {
              "code": "np_type",
              "value": "MSN "
            },
            {
              "code": "tax_number",
              "value": "gst_number_of_sellerNP"
            },
            {
              "code": "provider_tax_number ",
              "value": "PAN_number_of_provider"
            },
            {
              "code": "accept_bap_terms ",
              "value": "Y"
            }
          ]
        },
        {
          "code": "bap_terms",
          "list": [
            {
              "code": "static_terms",
              "value": "https://github.com/ONDC-Official/protocol-network-extension/discussions/79"
            },
            {
              "code": "tax_number",
              "value": "gst_number_of_buyerNP"
            }
          ]
        }
      ],
      "created_at ": "2023-06-03T09:30:00.000Z",
      "updated_at ": "2023-06-03T09:31:30.000Z"
    }
  }
}
