{
    "context":
    {
      "domain":"ONDC:RET10",
      "action":"on_status",
      "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":"M12",
      "city":"std:080",
      "country":"IND",
      "timestamp":"2023-06-04T10:00:30.000Z",
      "ttl": "PT30S"
    },
    "message":
    {
      "order":
      {
        "id":"O1",
        "state":"Completed ",
        "cancellation ":
        {
          "cancelled_by":"buyerNP.com",
          "reason":
          {
            "id":"004"
          }
        },
        "provider":
        {
          "id":"P1",
          "locations":
          [
            {
              "id":"L1"
            }
          ]
        },
        "items":
        [
          {
            "id":"I1",
            "fulfillment_id":"F1",
            "quantity":
            {
              "count":1
            }
          },
          { 
            "id":"I1",
            "fulfillment_id":"R1",
            "quantity":
            {
              "count":1
            }
          }
        ],
        "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",
          "type":"Delivery",
          "tracking":false,
          "@ondc/org/TAT":"PT60M",
          "state":
          {
            "descriptor":
            {
              "code":"Order-delivered "
            }
          },
          "start":
          {
            "location":
            {
              "descriptor":
              {
                "name":"ABC Store"
              },
              "gps":"12.967555,77.749666",
              "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"
              },
              "timestamp ":"2023-06-03T10:25:00.000Z"
            },
            "instructions":
            {
              "code":"1 ",
              "name":"ONDC Order",
              "short_desc":"value of PCC ",
              "long_desc":"additional instructions for pickup",
              "images ":
              [
                "https://lsp.com/pickup_image.png",
                "https://lsp.com/rider_location.png"
              ]
            },
            "authorization ":
            {
              "type":"OTP ",
              "token":"OTP code",
              "valid_from":"2023-06-03T12:00:00.000Z",
              "valid_to":"2023-06-03T14:00: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"
              },
              "timestamp ":"2023-06-03T11:35:00.000Z"
            },
            "instructions":
            {
              "code":"3 ",
              "name":"ONDC Order",
              "short_desc":"value of DCC ",
              "long_desc ":"additional instructions for delivery",
              "images ":
              [
                "https://lsp.com/delivery_image.png",
                "https://lsp.com/rider_location.png"
              ]
            },
            "authorization ":
            {
              "type":"OTP ",
              "token":"OTP code",
              "valid_from":"2023-06-03T18:00:00.000Z",
              "valid_to":"2023-06-03T22:00:00.000Z"
            },
            "person":
            {
              "name":"name_of_person"
            },
            "contact":
            {
              "phone":"9886098860"
            }
          },
          "agent ":
          {
            "name":"agent_name",
            "phone":"9886098860"
          },
          "vehicle ":
          {
            "registration":"3LVJ945"
          },
          "tags":
          [
            {
              "code":"state ",
              "list":
              [
                {
                  "code":"ready_to_ship",
                  "value":"yes"
                }
              ]
            },
            {
              "code":"routing ",
              "list":
              [
                {
                  "code":"type",
                  "value":"P2P "
                }
              ]
            },
            {
              "code":"tracking ",
              "list":
              [
                {
                  "code":"gps_enabled ",
                  "value":"yes"
                },
                {
                  "code":"url_enabled ",
                  "value":"no"
                },
                {
                  "code":"url ",
                  "value":"https://sellerNP.com/ondc/tracking_url"
                }
              ]
            },
            {
              "code":"fulfillment_delay ",
              "list":
              [
                {
                  "code":"state",
                  "value":"Order-picked-up "
                },
                {
                  "code":"reason_id",
                  "value":"002 "
                },
                {
                  "code":"timestamp",
                  "value":"2023-06-06T22:00:00.000Z"
                }
              ]
            }
          ]
        }
      ],
      "quote":
      {
        "price":
        {
          "currency":"INR",
          "value":"254"
        },
        "breakup":
        [
          {
            "@ondc/org/item_id":"I1",
            "@ondc/org/item_quantity":
            {
              "count": 1
            },
            "title":"Atta",
            "@ondc/org/title_type":"item",
            "price":
            {
              "currency":"INR",
              "value":"170"
            },
            "item":
            {
              "price":
              {
                "currency":"INR",
                "value":"170"
              }
            }
          },
          {
            "@ondc/org/item_id":"F1",
            "title":"Delivery charges",
            "@ondc/org/title_type":"delivery",
            "price":
            {
              "currency":"INR",
              "value":"50"
            }
          },
          {
            "@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"
            }
          },
          {
            "@ondc/org/item_id":"I1",
            "title":"Tax",
            "@ondc/org/title_type":"tax",
            "price":
            {
              "currency":"INR",
              "value":"0"
            }
          },
          {
            "@ondc/org/item_id":"I1",
            "title":"Discount",
            "@ondc/org/title_type":"discount",
            "price":
            {
              "currency":"INR",
              "value":"-10"
            }
          },
          {	
            "@ondc/org/item_id":"F1",
            "title":"Convenience Fee",
            "@ondc/org/title_type":"misc",
            "price":
            {
              "currency":"INR",
              "value":"10"
            }
          }
        ],
        "ttl":"P1D"
      },
      "payment ":
      {
        "uri":"https://ondc.transaction.com/payment",
        "tl_method":"http/get",
        "params":
        {
          "currency":"INR",
          "transaction_id":"3937",
          "amount":"254"
        },
        "status":"PAID",
        "type":"ON-ORDER",
        "collected_by":"BAP",
        "time ":
        {
            "timestamp": "2023-06-04T10:00:00.000Z"
        },
        "@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_reference":"XXXX",
            "settlement_status":"PAID",
            "settlement_timestamp":"2023-02-04T10:00:00.000Z",
            "settlement_type":"upi",
            "upi_address":"gft@oksbi",
            "settlement_bank_account_no":"XXXXXXXXXX",
            "settlement_ifsc_code":"XXXXXXXXX",
            "bank_name":"xxxx",
            "branch_name":"xxxx"
          },
          {
            "settlement_counterparty":"buyer",
            "settlement_phase":"refund",
            "settlement_type":"upi",
            "settlement_amount":"1000",
            "settlement_timestamp":"2023-02-04T18:00:00.000Z"
          }
        ]
      },
      "documents ":
      [
        {
          "url":"https://invoice_url",
          "label":"Invoice"
        }
      ],
      "created_at":"2023-06-03T09:30:00.000Z",
      "updated_at":"2023-06-03T10:00:30.201Z"
    }
  }
}
  