SapoWebhookController :: receiveSapoEvent
Request
GET Parameters
None
POST Parameters
None
Uploaded Files
None
Request Attributes
| Key | Value |
|---|---|
| _controller | "App\SapoBundle\Controller\SapoWebhookController::receiveSapoEvent" |
| _route | "sapo_webhook_receive" |
| _route_params | [] |
| _stopwatch_token | "677bfe" |
Request Headers
| Header | Value |
|---|---|
| accept | "*/*" |
| accept-encoding | "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" |
| connection | "Keep-Alive" |
| content-length | "13770" |
| content-type | "application/json; charset=utf-8" |
| host | "test.noibo.the350f.com" |
| user-agent | "JVM" |
| x-event-version | "1376782206" |
| x-php-ob-level | "1" |
| x-sapo-hmac-sha256 | "pvqtZqoatIQzCV9jrY7qXR2L+N6gVIhgv94yUzmEafY=" |
| x-sapo-object-id | "151962593" |
| x-sapo-order-id | "151962593" |
| x-sapo-tenant-domain | "the350f-ch.mysapogo.com" |
| x-sapo-test | "false" |
| x-sapo-topic | "orders/update" |
| x-sapo-webhook-address | "https://test.noibo.the350f.com/api/sapo-webhook/receive" |
Request Content
Raw
{"id":151962593,"tenant_id":816347,"location_id":776510,"code":"SON362766","created_on":"2026-01-21T09:32:20Z","modified_on":"2026-01-21T10:44:40Z","issued_on":"2026-01-21T09:32:20Z","ship_on":null,"ship_on_min":"2026-01-21T10:00:00Z","ship_on_max":"2026-01-21T11:00:00Z","account_id":1277085,"assignee_id":1277085,"customer_id":898141978,"customer_data":{"id":898141978,"tenant_id":816347,"default_location_id":null,"created_on":"2026-01-21T09:31:47Z","modified_on":"2026-01-21T09:31:47Z","code":"CUZN268527","name":"Chị Trinh","dob":null,"sex":"other","description":null,"email":"","fax":null,"phone_number":"0329819898","tax_number":"","website":"","customer_group_id":3122518,"group_name":"Bán lẻ","assignee_id":1277085,"default_payment_term_id":null,"default_payment_method_id":null,"default_tax_type_id":null,"default_discount_rate":null,"default_price_list_id":null,"tags":[],"addresses":[{"id":843546359,"created_on":"2026-01-21T09:31:47Z","modified_on":"2026-01-21T09:31:47Z","country":"Việt Nam","city":"TP Hồ Chí Minh","district":"Quận 10","ward":"Phường 2","address1":"Cao ốc A - Ngô Gia Tự - 301 Hoà Hảo","address2":null,"zip_code":null,"email":"","first_name":null,"last_name":null,"full_name":null,"label":null,"phone_number":"0329819898","status":"active"}],"contacts":[],"notes":[],"customer_group":{"id":3122518,"tenant_id":816347,"created_on":"2025-03-24T04:16:21Z","modified_on":"2025-03-24T04:16:21Z","name":"RETAIL","name_translate":"Bán lẻ","status":"active","is_default":true,"default_payment_term_id":null,"default_payment_method_id":null,"default_tax_type_id":null,"default_discount_rate":null,"default_price_list_id":null,"note":null,"code":"BANLE"},"status":"active","is_default":false,"debt":-648000.0000,"apply_incentives":"group","total_expense":null,"loyalty_customer":null,"sale_order":null,"social_customers":[]},"contact_id":null,"billing_address":{"id":304817829,"label":null,"first_name":"","full_name":"","last_name":"","address1":"Cao ốc A - Ngô Gia Tự - 301 Hoà Hảo","address2":"Cao ốc A - Ngô Gia Tự - 301 Hoà Hảo","email":"","phone_number":"0329819898","country":"Việt Nam","city":"TP Hồ Chí Minh","district":"Quận 10","ward":"Phường 2","zip_code":null},"shipping_address":{"id":304817830,"label":null,"first_name":null,"full_name":null,"last_name":null,"address1":"Cao ốc A - Ngô Gia Tự - 301 Hoà Hảo","address2":null,"email":"","phone_number":"0329819898","country":"Việt Nam","city":"TP Hồ Chí Minh","district":"Quận 10","ward":"Phường 2","zip_code":null},"email":"","phone_number":"0329819898","reference_number":"","currency_id":0,"price_list_id":2349366,"tax_treatment":"inclusive","status":"finalized","fulfillment_status":"unshipped","packed_status":"packed","payment_status":"paid","return_status":"unreturned","received_status":"unreceived","source_url":null,"source_id":8724179,"tax_label":null,"total":648000,"order_discount_rate":0.00,"order_discount_value":0.0000,"discount_reason":null,"total_discount":0,"total_tax":48000,"note":"[P20] - đã ck gr xlđh 650k - dư 2k đang hỏi khách đt tím\n\ntag: Anh yêu","tags":[],"delivery_fee":null,"order_discount_amount":0,"discount_items":[],"order_line_items":[{"id":331769542,"created_on":"2026-01-21T09:32:20Z","modified_on":"2026-01-21T09:32:20Z","variant_id":333744284,"product_id":204359846,"product_name":"Bánh Mousse Dưa Lưới","variant_name":"Bánh Mousse Dưa Lưới - Size 16cm","tax_type_id":null,"tax_included":false,"tax_rate_override":8.000,"tax_rate":8.000,"tax_amount":46400.0000000000,"discount_rate":0.00,"discount_value":0.0000,"discount_reason":null,"discount_amount":0E-10,"note":"","price":580000,"quantity":1.000,"is_freeform":false,"is_composite":false,"line_amount":626400.0000000000,"discount_items":[],"sku":"SP330","barcode":"SP330","unit":"cái","variant_options":"Size 16cm","serials":null,"product_type":"normal","lots_dates":[]},{"id":331769543,"created_on":"2026-01-21T09:32:20Z","modified_on":"2026-01-21T09:32:20Z","variant_id":383412512,"product_id":218126620,"product_name":"PHÍ VẬN CHUYỂN","variant_name":"PHÍ VẬN CHUYỂN","tax_type_id":null,"tax_included":false,"tax_rate_override":8.000,"tax_rate":8.000,"tax_amount":1600.0000000000,"discount_rate":0.00,"discount_value":0.0000,"discount_reason":null,"discount_amount":0E-10,"note":"","price":20000,"quantity":1.000,"is_freeform":false,"is_composite":false,"line_amount":21600.0000000000,"discount_items":[],"sku":"SP001","barcode":"SP001","unit":"Lần","variant_options":"Mặc định","serials":null,"product_type":"normal","lots_dates":[]}],"fulfillments":[{"id":138560167,"tenant_id":816347,"stock_location_id":776510,"code":"FUN435594","order_id":151962593,"account_id":1277093,"assignee_id":1277093,"partner_id":898141978,"billing_address":{"id":304820977,"label":null,"first_name":"","full_name":"","last_name":"","address1":"Cao ốc A - Ngô Gia Tự - 301 Hoà Hảo","address2":"Cao ốc A - Ngô Gia Tự - 301 Hoà Hảo","email":"","phone_number":"0329819898","country":"Việt Nam","city":"TP Hồ Chí Minh","district":"Quận 10","ward":"Phường 2","zip_code":null},"delivery_type":"courier","tax_treatment":"inclusive","discount_rate":0.000,"discount_value":0.0000,"discount_amount":0.0000,"total":648000.0000,"total_tax":48000.0000,"total_discount":0.0000,"notes":null,"packed_on":"2026-01-21T09:36:18Z","received_on":null,"shipped_on":null,"cancel_date":"2026-01-21T09:39:51Z","cancel_account_id":1277101,"created_on":"2026-01-21T09:36:18Z","modified_on":"2026-01-21T09:39:51Z","status":"cancelled","composite_fulfillment_status":"packed_cancelled","payment_status":"unpaid","stock_out_account_id":null,"receive_account_id":null,"receive_cancellation_account_id":null,"receive_cancellation_on":"2026-01-21T09:39:51Z","fulfillment_line_items":[{"id":308959466,"created_on":"2026-01-21T09:36:18Z","modified_on":"2026-01-21T09:36:18Z","order_line_item_id":331769542,"product_id":204359846,"product_name":"Bánh Mousse Dưa Lưới","variant_id":333744284,"variant_name":"Bánh Mousse Dưa Lưới - Size 16cm","order_line_item_note":"","is_freeform":false,"is_composite":false,"is_packsize":false,"base_price":580000.0000,"quantity":1.000,"tax_type_id":null,"tax_rate_override":8,"tax_rate":8.00,"line_amount":626400.0000,"line_tax_amount":46400.0000,"line_discount_amount":0.0000,"discount_value":0.0000,"discount_rate":0.000,"sku":"SP330","barcode":"SP330","unit":"cái","variant_options":"Size 16cm","serials":null},{"id":308959467,"created_on":"2026-01-21T09:36:18Z","modified_on":"2026-01-21T09:36:18Z","order_line_item_id":331769543,"product_id":218126620,"product_name":"PHÍ VẬN CHUYỂN","variant_id":383412512,"variant_name":"PHÍ VẬN CHUYỂN","order_line_item_note":"","is_freeform":false,"is_composite":false,"is_packsize":false,"base_price":20000.0000,"quantity":1.000,"tax_type_id":null,"tax_rate_override":8,"tax_rate":8.00,"line_amount":21600.0000,"line_tax_amount":1600.0000,"line_discount_amount":0.0000,"discount_value":0.0000,"discount_rate":0.000,"sku":"SP001","barcode":"SP001","unit":"Lần","variant_options":"Mặc định","serials":null}],"shipment":{"id":63051853,"delivery_service_provider_id":512988,"service_name":null,"cod_amount":0.0000,"freight_amount":0.0000,"freight_amount_detail":null,"delivery_fee":0.0000,"tracking_code":"FUN435594","tracking_url":null,"created_on":"2026-01-21T09:36:18Z","modified_on":"2026-01-21T09:36:18Z","sender_address":null,"shipping_address":{"id":304820978,"label":null,"first_name":"Chị Trinh","full_name":"Chị Trinh","last_name":null,"address1":"Cao ốc A - Ngô Gia Tự - 301 Hoà Hảo","address2":null,"email":null,"phone_number":"0329819898","country":"Việt Nam","city":"TP Hồ Chí Minh","district":"Quận 10","ward":"Phường 2","zip_code":null},"shipper_deposits":[],"detail":"{\"delivery_service_provider_id\":512988,\"receiver_name\":\"Chị Trinh\",\"receiver_phone\":\"0329819898\",\"cod_amount\":0,\"destination_address\":\"Cao ốc A - Ngô Gia Tự - 301 Hoà Hảo\",\"destination_province_id\":2,\"destination_district_id\":39,\"delivery_fee\":0,\"destination_country_id\":201,\"source_location_id\":776510,\"note\":\"Cho xem hàng, không cho thử |[P20] - tttm\\n\\ntag: Anh yêu\",\"destination_country\":\"Việt Nam\",\"destination_district\":\"Quận 10\",\"destination_province\":\"TP Hồ Chí Minh\",\"weight\":100,\"destination_ward\":\"Phường 2\"}","note":"Cho xem hàng, không cho thử |[P20] - tttm\n\ntag: Anh yêu","pushing_status":null,"reference_status":null,"reference_status_explanation":null,"pushing_note":null,"collation_status":"unresolved","delivery_service_provider":null,"weight":100.000,"length":10.000,"height":10.000,"width":10.000},"payments":[],"total_quantity":2.000,"reason_cancel_id":0},{"id":138561661,"tenant_id":816347,"stock_location_id":776510,"code":"FUN435611","order_id":151962593,"account_id":1277101,"assignee_id":1277101,"partner_id":898141978,"billing_address":{"id":304823466,"label":null,"first_name":"","full_name":"","last_name":"","address1":"Cao ốc A - Ngô Gia Tự - 301 Hoà Hảo","address2":"Cao ốc A - Ngô Gia Tự - 301 Hoà Hảo","email":"","phone_number":"0329819898","country":"Việt Nam","city":"TP Hồ Chí Minh","district":"Quận 10","ward":"Phường 2","zip_code":null},"delivery_type":"courier","tax_treatment":"inclusive","discount_rate":0.000,"discount_value":0.0000,"discount_amount":0.0000,"total":648000.0000,"total_tax":48000.0000,"total_discount":0.0000,"notes":"[P20] - tttm\n\ntag: Anh yêu","packed_on":"2026-01-21T09:40:10Z","received_on":null,"shipped_on":null,"cancel_date":null,"cancel_account_id":null,"created_on":"2026-01-21T09:40:10Z","modified_on":"2026-01-21T09:40:10Z","status":"packed","composite_fulfillment_status":"packed","payment_status":"unpaid","stock_out_account_id":null,"receive_account_id":null,"receive_cancellation_account_id":null,"receive_cancellation_on":null,"fulfillment_line_items":[{"id":308963352,"created_on":"2026-01-21T09:40:10Z","modified_on":"2026-01-21T09:40:10Z","order_line_item_id":331769542,"product_id":204359846,"product_name":"Bánh Mousse Dưa Lưới","variant_id":333744284,"variant_name":"Bánh Mousse Dưa Lưới - Size 16cm","order_line_item_note":"","is_freeform":false,"is_composite":false,"is_packsize":false,"base_price":580000.0000,"quantity":1.000,"tax_type_id":null,"tax_rate_override":8,"tax_rate":8.00,"line_amount":626400.0000,"line_tax_amount":46400.0000,"line_discount_amount":0.0000,"discount_value":0.0000,"discount_rate":0.000,"sku":"SP330","barcode":"SP330","unit":"cái","variant_options":"Size 16cm","serials":null},{"id":308963353,"created_on":"2026-01-21T09:40:10Z","modified_on":"2026-01-21T09:40:10Z","order_line_item_id":331769543,"product_id":218126620,"product_name":"PHÍ VẬN CHUYỂN","variant_id":383412512,"variant_name":"PHÍ VẬN CHUYỂN","order_line_item_note":"","is_freeform":false,"is_composite":false,"is_packsize":false,"base_price":20000.0000,"quantity":1.000,"tax_type_id":null,"tax_rate_override":8,"tax_rate":8.00,"line_amount":21600.0000,"line_tax_amount":1600.0000,"line_discount_amount":0.0000,"discount_value":0.0000,"discount_rate":0.000,"sku":"SP001","barcode":"SP001","unit":"Lần","variant_options":"Mặc định","serials":null}],"shipment":{"id":63052304,"delivery_service_provider_id":512898,"service_name":null,"cod_amount":0.0000,"freight_amount":0.0000,"freight_amount_detail":null,"delivery_fee":0.0000,"tracking_code":"FUN435611","tracking_url":null,"created_on":"2026-01-21T09:40:10Z","modified_on":"2026-01-21T09:40:10Z","sender_address":null,"shipping_address":{"id":304823467,"label":null,"first_name":"Chị Trinh","full_name":"Chị Trinh","last_name":null,"address1":"Cao ốc A - Ngô Gia Tự - 301 Hoà Hảo","address2":null,"email":null,"phone_number":"0329819898","country":"Việt Nam","city":"TP Hồ Chí Minh","district":"Quận 10","ward":"Phường 2","zip_code":null},"shipper_deposits":[],"detail":"{\"delivery_service_provider_id\":512898,\"receiver_name\":\"Chị Trinh\",\"receiver_phone\":\"0329819898\",\"cod_amount\":0,\"destination_address\":\"Cao ốc A - Ngô Gia Tự - 301 Hoà Hảo\",\"destination_province_id\":2,\"destination_district_id\":39,\"delivery_fee\":0,\"destination_country_id\":201,\"source_location_id\":776510,\"note\":\"Cho xem hàng, không cho thử |[P20] - tttm\\n\\ntag: Anh yêu\",\"destination_country\":\"Việt Nam\",\"destination_district\":\"Quận 10\",\"destination_province\":\"TP Hồ Chí Minh\",\"weight\":100,\"destination_ward\":\"Phường 2\"}","note":"Cho xem hàng, không cho thử |[P20] - tttm\n\ntag: Anh yêu","pushing_status":null,"reference_status":null,"reference_status_explanation":null,"pushing_note":null,"collation_status":"unresolved","delivery_service_provider":null,"weight":100.000,"length":10.000,"height":10.000,"width":10.000},"payments":[],"total_quantity":2.000,"reason_cancel_id":null}],"payments":null,"prepayments":[{"id":126817007,"payment_method_id":3621317,"paid_on":"2026-01-21T10:43:18Z","amount":648000.0000,"account_id":1277083,"note":null,"created_on":"2026-01-21T10:43:20Z","modified_on":"2026-01-21T10:43:20Z","reference":null,"source":"customer_prepaid","source_id":null,"paid_amount":648000.000,"returned_amount":0.000,"status":"active","integrated":false,"status_before_cancelled":null}],"order_returns":[],"expected_payment_method_id":null,"expected_delivery_type":null,"expected_delivery_provider_id":null,"process_status_id":18525,"process_status":null,"reason_cancel_id":null,"finalized_on":"2026-01-21T09:32:22Z","finished_on":null,"completed_on":null,"channel":null,"cancelled_on":null,"promotion_redemptions":[],"from_order_return_id":null}
Response
Response Headers
| Header | Value |
|---|---|
| cache-control | "no-cache, private" |
| content-type | "text/html; charset=UTF-8" |
| date | "Wed, 21 Jan 2026 10:44:41 GMT" |
| x-debug-token | "f48adc" |
Cookies
Request Cookies
No request cookies
Response Cookies
No response cookies
Session
Session Metadata
No session metadata
Session Attributes
No session attributes
Session Usage
0
Usages
Stateless check enabled
Session not used.
Flashes
Flashes
No flash messages were created.
Server Parameters
Server Parameters
Defined in .env
| Key | Value |
|---|---|
| APP_ENV | "dev" |
| APP_SECRET | "4750cff62f6eba6e302b339523723cd3" |
| DATABASE_SERVER_VERSION | "8" |
| DATABASE_URL | "mysql://root:S6c-66Sj@127.0.0.1:3306/hethongnoibo?serverVersion=8.0&charset=utf8mb4" |
| MAILER_DSN | "null://null" |
| MESSENGER_TRANSPORT_DSN | "doctrine://default?auto_setup=0" |
| SAPO_API2_ACCESS_TOKEN | "dd951eb59c814a6d9b78734ebbf4d3a0" |
| SAPO_API2_BASE_URL | "https://the-350f.mysapogo.com" |
| SAPO_API2_CLIENT_ID | "4c43fac2e51a4457ab6a141f1619a0ee" |
| SAPO_API2_CLIENT_SECRET | "ad8b74b78c81449488ccd3b550963243" |
| SAPO_API2_CODE | "f1ca93b14c65461390b9369115e2ffe9" |
| SAPO_API2_SESSION_ID | "08cbe458-b659-0a01-3512-ee85fdd8ea51" |
| SAPO_API2_TENANT | "the-350f.mysapogo.com" |
| SAPO_API_ACCESS_TOKEN | "ad8b74b78c81449488ccd3b550963243" |
| SAPO_API_BASE_URL | "https://the350f-ch.mysapogo.com" |
| SAPO_API_CLIENT_ID | "d78daee704454140bb1ab84d34ca561e" |
| SAPO_API_CLIENT_SECRET | "b882a4b7dc1541e88acab85bdd531f83" |
| SAPO_API_CODE | "4c43fac2e51a4457ab6a141f1619a0ee" |
| SAPO_API_SESSION_ID | "1cd17172-54d3-2329-3d6d-69740f56e47e" |
| SAPO_API_TENANT | "the-350f.mysapogo.com" |
Defined as regular env variables
| Key | Value |
|---|---|
| APP_DEBUG | "1" |
| CONTENT_LENGTH | "13770" |
| CONTENT_TYPE | "application/json; charset=utf-8" |
| DOCUMENT_ROOT | "/opt/The350F_HeThongNoiBo/public" |
| DOCUMENT_URI | "/index.php" |
| FCGI_ROLE | "RESPONDER" |
| GATEWAY_INTERFACE | "CGI/1.1" |
| HOME | "/var/www" |
| HTTPS | "on" |
| HTTP_ACCEPT | "*/*" |
| HTTP_ACCEPT_ENCODING | "gzip;q=1.0,deflate;q=0.6,identity;q=0.3" |
| HTTP_CONNECTION | "Keep-Alive" |
| HTTP_CONTENT_LENGTH | "13770" |
| HTTP_CONTENT_TYPE | "application/json; charset=utf-8" |
| HTTP_HOST | "test.noibo.the350f.com" |
| HTTP_USER_AGENT | "JVM" |
| HTTP_X_EVENT_VERSION | "1376782206" |
| HTTP_X_SAPO_HMAC_SHA256 | "pvqtZqoatIQzCV9jrY7qXR2L+N6gVIhgv94yUzmEafY=" |
| HTTP_X_SAPO_OBJECT_ID | "151962593" |
| HTTP_X_SAPO_ORDER_ID | "151962593" |
| HTTP_X_SAPO_TENANT_DOMAIN | "the350f-ch.mysapogo.com" |
| HTTP_X_SAPO_TEST | "false" |
| HTTP_X_SAPO_TOPIC | "orders/update" |
| HTTP_X_SAPO_WEBHOOK_ADDRESS | "https://test.noibo.the350f.com/api/sapo-webhook/receive" |
| PATH_INFO | "" |
| PHP_SELF | "/index.php" |
| QUERY_STRING | "" |
| REDIRECT_STATUS | "200" |
| REMOTE_ADDR | "42.113.206.190" |
| REMOTE_PORT | "51898" |
| REMOTE_USER | "" |
| REQUEST_METHOD | "POST" |
| REQUEST_SCHEME | "https" |
| REQUEST_TIME | 1768992281 |
| REQUEST_TIME_FLOAT | 1768992281.0643 |
| REQUEST_URI | "/api/sapo-webhook/receive" |
| SCRIPT_FILENAME | "/opt/The350F_HeThongNoiBo/public/index.php" |
| SCRIPT_NAME | "/index.php" |
| SERVER_ADDR | "103.200.22.135" |
| SERVER_NAME | "test.noibo.the350f.com" |
| SERVER_PORT | "443" |
| SERVER_PROTOCOL | "HTTP/1.1" |
| SERVER_SOFTWARE | "nginx/1.24.0" |
| SYMFONY_DOTENV_PATH | "/opt/The350F_HeThongNoiBo/.env" |
| SYMFONY_DOTENV_VARS | "APP_ENV,APP_SECRET,DATABASE_URL,DATABASE_SERVER_VERSION,MESSENGER_TRANSPORT_DSN,MAILER_DSN,SAPO_API_BASE_URL,SAPO_API_SESSION_ID,SAPO_API_TENANT,SAPO_API_CLIENT_ID,SAPO_API_CLIENT_SECRET,SAPO_API_CODE,SAPO_API_ACCESS_TOKEN,SAPO_API2_BASE_URL,SAPO_API2_SESSION_ID,SAPO_API2_TENANT,SAPO_API2_CLIENT_ID,SAPO_API2_CLIENT_SECRET,SAPO_API2_CODE,SAPO_API2_ACCESS_TOKEN" |
| USER | "www-data" |