{
  "context":
  {
    "domain":"ONDC:RET10",
    "action":"on_init",
    "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":"M3",
    "city":"std:080",
    "country":"IND",
    "timestamp":"2023-06-03T09:00:30.000Z"
  },
  "message":
  {
    "order":
    {
      "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"
        },
        "tax_number ":"XXXXXXXXXXXXXXX",
        "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",
          "type":"Delivery",
          "tracking":false,
          "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"
              }
            },
            "contact":
            {
              "phone":"9886098860"
            }
          },
          "tags":
          [
            {
              "code":"rto_action ",
              "list":
              [
                {
                  "code":"return_to_origin",
                  "value":"yes"
                }
              ]
            }
          ]
        }
      ],
      "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 ":
      {
        "type":"ON-ORDER",
        "collected_by":"BPP",
        "uri":"https://snp.com/pg",
        "status":"NOT-PAID ",
        "@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 ",
        "tags":
        [
          {
            "code":"bpp_collect ",
            "list":
            [
              {
                "code":"success",
                "value":"Y"
              },
              {
                "code":"error",
                "value":".."
              }
            ]
          }
        ],
        "@ondc/org/settlement_details ":
        [
          {
            "settlement_counterparty":"seller-app",
            "settlement_phase":"sale-amount",
            "settlement_type":"upi ",
            "beneficiary_name":"xxxxx",
            "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 ":
          {
            "percentage":"0.00",
            "amount":
            {
              "currency":"INR",
              "value":"0.00"
            }
          }
        },
        {
          "fulfillment_state":
          {
            "descriptor":
            {
              "code":"Packed",
              "short_desc":"001,003"
            }
          },
          "cancellation_fee ":
          {
            "percentage":"10.00",
            "amount":
            {
              "currency":"INR",
              "value":"42.40"
            }
          }
        },
        {
          "fulfillment_state":
          {
            "descriptor":
            {
              "code":"Order-picked-up",
              "short_desc":"001,003"
            }
          },
          "cancellation_fee":
          {
            "percentage":"10.00",
            "amount":
            {
              "currency":"INR",
              "value":"42.40"
            }
          }
        },
        {
          "fulfillment_state":
          {
            "descriptor":
            {
              "code":"Out-for-delivery",
              "short_desc":"009"
            }
          },
          "cancellation_fee ":
          {
            "percentage":"0.00",
            "amount":
            {
              "currency":"INR",
              "value":"0.00"
            }
          }
        },
        {
          "fulfillment_state":
          {
            "descriptor":
            {
              "code":"Out-for-delivery",
              "short_desc":"010,011,012,013,014,015 "
            }
          },
          "cancellation_fee ":
          {
            "percentage":"20.00",
            "amount":
            {
              "currency":"INR",
              "value":"84.80"
            }
          }
        }
      ],
      "tags":
      [
        {
          "code":"bpp_terms ",
          "list":
          [
            {
              "code":"max_liability",
              "value":"2"
            },
            {
              "code":"max_liability_cap",
              "value":"10000.00"
            },
            {
              "code":"mandatory_arbitration",
              "value":"false"
            },
            {
              "code":"court_jurisdiction",
              "value":"Bengaluru"
            },
            {
              "code":"delay_interest",
              "value":"7.50"
            },
            {
              "code":"tax_number ",
              "value":"gst_number_of_sellerNP"
            },
            {
              "code":"provider_tax_number ",
              "value":"PAN_number_of_provider"
            }
          ]
        }
      ]
    }
  }
}
