POST https://test.noibo.the350f.com/api/sapo-webhook/receive

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
"3a2a46"

Request Headers

Header Value
accept
"*/*"
accept-encoding
"gzip;q=1.0,deflate;q=0.6,identity;q=0.3"
connection
"Keep-Alive"
content-length
"10375"
content-type
"application/json; charset=utf-8"
host
"test.noibo.the350f.com"
user-agent
"JVM"
x-event-version
"2155090063"
x-php-ob-level
"1"
x-sapo-hmac-sha256
"vUeumKlUsChkc9UL69K2tIlTD0lFIyBXqwbh1RxLIzQ="
x-sapo-object-id
"223309663"
x-sapo-order-id
"223309663"
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":223309663,"tenant_id":816347,"location_id":776355,"code":"SON515081","created_on":"2026-08-19T09:56:36Z","modified_on":"2026-08-19T15:47:35Z","issued_on":"2026-08-19T09:56:36Z","ship_on":null,"ship_on_min":null,"ship_on_max":null,"account_id":1302516,"assignee_id":1302516,"customer_id":670731257,"customer_data":{"id":670731257,"tenant_id":816347,"default_location_id":null,"created_on":"2025-03-31T10:13:24Z","modified_on":"2025-09-23T01:53:47Z","code":"KH161451","name":"CHỊ NHƯ ĐP","dob":null,"sex":"other","description":"","email":"","fax":"","phone_number":"0901389896","tax_number":"","website":"","customer_group_id":3122518,"group_name":"Bán lẻ","assignee_id":null,"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":833626400,"created_on":"2026-01-10T06:53:17Z","modified_on":"2026-01-26T05:39:29Z","country":"Việt Nam","city":"TP Hồ Chí Minh","district":"Quận 10","ward":"Phường 15","address1":"Xưởng Legamex 15 Đ. Trường Sơn","address2":null,"zip_code":"","email":null,"first_name":null,"last_name":null,"full_name":"","label":null,"phone_number":"0901389896","status":"active"},{"id":848191691,"created_on":"2026-01-26T10:44:54Z","modified_on":"2026-01-26T10:44:54Z","country":"Việt Nam","city":"TP Hồ Chí Minh","district":"Quận 10","ward":"Phường 15","address1":"Xưởng Legamex 15 Đ. Trường Sơn","address2":null,"zip_code":"","email":"","first_name":null,"last_name":null,"full_name":"","label":null,"phone_number":"0901389896","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":0.0000,"apply_incentives":"group","total_expense":230000.0000,"loyalty_customer":null,"sale_order":{"total_sales":1960075.76,"order_purchases":9.00,"returned_item_quantity":0.00,"net_quantity":13.00,"last_order_on":"2026-08-19T09:59:48Z"},"social_customers":[]},"contact_id":null,"billing_address":{"id":438280851,"label":null,"first_name":null,"full_name":"","last_name":null,"address1":"Xưởng Legamex 15 Đ. Trường Sơn","address2":null,"email":null,"phone_number":"0901389896","country":"Việt Nam","city":"TP Hồ Chí Minh","district":"Quận 10","ward":"Phường 15","zip_code":""},"shipping_address":{"id":438280852,"label":null,"first_name":null,"full_name":"","last_name":null,"address1":"Xưởng Legamex 15 Đ. Trường Sơn","address2":null,"email":null,"phone_number":"0901389896","country":"Việt Nam","city":"TP Hồ Chí Minh","district":"Quận 10","ward":"Phường 15","zip_code":""},"email":"","phone_number":"0901389896","reference_number":null,"currency_id":0,"price_list_id":2349366,"tax_treatment":"inclusive","status":"completed","fulfillment_status":"shipped","packed_status":"packed","payment_status":"paid","return_status":"unreturned","received_status":"received","source_url":null,"source_id":8722575,"tax_label":null,"total":328860,"order_discount_rate":30.00,"order_discount_value":0.0000,"discount_reason":null,"total_discount":130500,"total_tax":24360,"note":"địa chỉ: 22/53 Trương Thị Hoa, phường Tân Thới Hiệp,q12 sdt: 0975566319 hôm nay lúc 17-18h tag gs thường +mini: Happy Birthday Phương Thảo","tags":[],"delivery_fee":null,"order_discount_amount":130500.0000,"discount_items":[{"position":0,"source":"manual","rate":30.000,"value":0.0000,"amount":130500.0000,"reason":null,"promotion_redemption_id":null,"promotion_condition_item_id":null}],"order_line_items":[{"id":490292260,"created_on":"2026-08-19T09:56:36Z","modified_on":"2026-08-19T09:56:36Z","variant_id":392968908,"product_id":223573130,"product_name":"BÁNH DƯA LƯỚI HỘP THIẾC","variant_name":"BÁNH DƯA LƯỚI HỘP THIẾC","tax_type_id":null,"tax_included":false,"tax_rate_override":8.000,"tax_rate":8.000,"tax_amount":20720.0000000000,"discount_rate":0.00,"discount_value":0.0000,"discount_reason":null,"discount_amount":0E-10,"note":"","price":370000,"quantity":1.000,"is_freeform":false,"is_composite":false,"line_amount":390720.0000000000,"discount_items":[],"sku":"SP338","barcode":"SP338","unit":"Cái","variant_options":"Mặc định","serials":null,"product_type":"normal","lots_dates":[]},{"id":490292261,"created_on":"2026-08-19T09:56:36Z","modified_on":"2026-08-19T09:56:36Z","variant_id":333744336,"product_id":204359858,"product_name":"Nến Cây","variant_name":"Nến Cây","tax_type_id":null,"tax_included":false,"tax_rate_override":8.000,"tax_rate":8.000,"tax_amount":560.0000000000,"discount_rate":0.00,"discount_value":0.0000,"discount_reason":null,"discount_amount":0E-10,"note":"","price":10000,"quantity":1.000,"is_freeform":false,"is_composite":false,"line_amount":10560.0000000000,"discount_items":[],"sku":"SP535","barcode":"SP535","unit":"Hộp","variant_options":"Mặc định","serials":null,"product_type":"normal","lots_dates":[]},{"id":490292262,"created_on":"2026-08-19T09:56:36Z","modified_on":"2026-08-19T09:56:36Z","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":3080.0000000000,"discount_rate":0.00,"discount_value":0.0000,"discount_reason":null,"discount_amount":0E-10,"note":"","price":55000,"quantity":1.000,"is_freeform":false,"is_composite":false,"line_amount":58080.0000000000,"discount_items":[],"sku":"SP001","barcode":"SP001","unit":"Lần","variant_options":"Mặc định","serials":null,"product_type":"normal","lots_dates":[]}],"fulfillments":[{"id":205460395,"tenant_id":816347,"stock_location_id":776355,"code":"FUN598535","order_id":223309663,"account_id":1302516,"assignee_id":1302516,"partner_id":670731257,"billing_address":{"id":438280853,"label":null,"first_name":null,"full_name":"","last_name":null,"address1":"Xưởng Legamex 15 Đ. Trường Sơn","address2":null,"email":null,"phone_number":"0901389896","country":"Việt Nam","city":"TP Hồ Chí Minh","district":"Quận 10","ward":"Phường 15","zip_code":""},"delivery_type":"pickup","tax_treatment":"inclusive","discount_rate":30.000,"discount_value":0.0000,"discount_amount":130500.0000,"total":328860.0000,"total_tax":24360.0000,"total_discount":130500.0000,"notes":null,"packed_on":"2026-08-19T09:56:36Z","received_on":"2026-08-19T09:59:48Z","shipped_on":"2026-08-19T09:59:48Z","cancel_date":null,"cancel_account_id":null,"created_on":"2026-08-19T09:56:36Z","modified_on":"2026-08-19T09:59:48Z","status":"received","composite_fulfillment_status":"received","payment_status":"paid","stock_out_account_id":1302516,"receive_account_id":null,"receive_cancellation_account_id":null,"receive_cancellation_on":null,"fulfillment_line_items":[{"id":458952849,"created_on":"2026-08-19T09:56:36Z","modified_on":"2026-08-19T09:56:36Z","order_line_item_id":490292260,"product_id":223573130,"product_name":"BÁNH DƯA LƯỚI HỘP THIẾC","variant_id":392968908,"variant_name":"BÁNH DƯA LƯỚI HỘP THIẾC","order_line_item_note":"","is_freeform":false,"is_composite":false,"is_packsize":false,"base_price":370000.0000,"quantity":1.000,"tax_type_id":null,"tax_rate_override":8,"tax_rate":8.00,"line_amount":390720.0000,"line_tax_amount":20720.0000,"line_discount_amount":0.0000,"discount_value":0.0000,"discount_rate":0.000,"sku":"SP338","barcode":"SP338","unit":"Cái","variant_options":"Mặc định","serials":null},{"id":458952852,"created_on":"2026-08-19T09:56:36Z","modified_on":"2026-08-19T09:56:36Z","order_line_item_id":490292261,"product_id":204359858,"product_name":"Nến Cây","variant_id":333744336,"variant_name":"Nến Cây","order_line_item_note":"","is_freeform":false,"is_composite":false,"is_packsize":false,"base_price":10000.0000,"quantity":1.000,"tax_type_id":null,"tax_rate_override":8,"tax_rate":8.00,"line_amount":10560.0000,"line_tax_amount":560.0000,"line_discount_amount":0.0000,"discount_value":0.0000,"discount_rate":0.000,"sku":"SP535","barcode":"SP535","unit":"Hộp","variant_options":"Mặc định","serials":null},{"id":458952854,"created_on":"2026-08-19T09:56:36Z","modified_on":"2026-08-19T09:56:36Z","order_line_item_id":490292262,"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":55000.0000,"quantity":1.000,"tax_type_id":null,"tax_rate_override":8,"tax_rate":8.00,"line_amount":58080.0000,"line_tax_amount":3080.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":null,"payments":[{"id":259375435,"tenant_id":0,"location_id":0,"account_id":1302516,"created_on":"2026-08-19T09:59:48Z","modified_on":"2026-08-19T09:59:48Z","order_id":223309663,"payment_method_id":3621885,"amount":328860,"reference":null,"paid_on":"2026-08-19T09:59:48Z","status":"active","currency_id":0,"exchange_rate":null,"paid_amount":0,"returned_amount":0}],"total_quantity":3.000,"reason_cancel_id":null}],"payments":null,"prepayments":[{"id":188082535,"payment_method_id":3621885,"paid_on":"2026-08-19T09:56:36Z","amount":328860.0000,"account_id":1302516,"note":null,"created_on":"2026-08-19T09:56:36Z","modified_on":"2026-08-19T09:59:35Z","reference":"FT26231110126577 - MD071787133397242BT","source":"customer_paid","source_id":null,"paid_amount":328860.000,"returned_amount":0.000,"status":"active","integrated":true,"status_before_cancelled":null}],"order_returns":[],"expected_payment_method_id":null,"expected_delivery_type":null,"expected_delivery_provider_id":null,"process_status_id":null,"process_status":null,"reason_cancel_id":null,"finalized_on":"2026-08-19T09:56:36Z","finished_on":null,"completed_on":"2026-08-19T09:59:48Z","channel":"POS","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, 19 Aug 2026 15:47:40 GMT"
x-debug-token
"5f81ac"

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
"10375"
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
"10375"
HTTP_CONTENT_TYPE
"application/json; charset=utf-8"
HTTP_HOST
"test.noibo.the350f.com"
HTTP_USER_AGENT
"JVM"
HTTP_X_EVENT_VERSION
"2155090063"
HTTP_X_SAPO_HMAC_SHA256
"vUeumKlUsChkc9UL69K2tIlTD0lFIyBXqwbh1RxLIzQ="
HTTP_X_SAPO_OBJECT_ID
"223309663"
HTTP_X_SAPO_ORDER_ID
"223309663"
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
"49810"
REMOTE_USER
""
REQUEST_METHOD
"POST"
REQUEST_SCHEME
"https"
REQUEST_TIME
1787154459
REQUEST_TIME_FLOAT
1787154459.998
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"