{"case":{"id":"A-770EC6AE45FC4681","scenario":"A","label":"Case A","created_at":"2026-11-09T10:41:49Z","updated_at":"2026-11-09T10:46:07Z","status":"REFUND_COMPLETED","customer_name":"Maria (demo customer)","customer_message":"The sneakers I received are black, but the photo shows white. The colour doesn't match the listing, and I'd like to return them for a refund.","product_sku":"TRAIL-RUNNER-42","amount":"49.99","currency":"USD","purchase_date_seeded":null,"order_id":"7R842709FE7019806","order_status":"COMPLETED","capture_id":"88G70527JA473570X","capture_status":"REFUNDED","capture_time":"2026-11-09T10:42:36Z","approve_url":null,"decision":"ELIGIBLE","supplier_draft":null,"supplier_reply":null,"human_decision":"APPROVED","human_at":"2026-11-09T10:42:39Z","approval_source":"human","refund_id":"84R36954519561114","refund_status":"COMPLETED","refund_fault":null,"webhook_status":"VERIFIED","error":null,"refund_request_id":"tradeos-refund-A-770EC6AE45FC4681","completed_via":"refund_api","archived_at":null,"shipping_minor":null,"intent":{"intent":"REFUND_REQUEST","reason":"NOT_AS_DESCRIBED","requested_action":"REFUND"},"policy":{"decision":"ELIGIBLE","stage":"final","action":"REFUND","checks":[{"name":"request_supported","passed":true,"detail":"Request understood as REFUND_REQUEST / REFUND (reason NOT_AS_DESCRIBED)"},{"name":"payment_captured","passed":true,"detail":"PayPal capture status is COMPLETED"},{"name":"return_window","passed":true,"detail":"Purchased 0 days ago; window is 30 days"},{"name":"product_eligible","passed":true,"detail":"Trail Runner sneakers, EU size 42 is eligible for return"},{"name":"refundable_amount","passed":true,"detail":"Requested 49.99 USD; refundable 49.99 USD"}],"reasons":[]},"refund":{"id":"84R36954519561114","amount":{"currency_code":"USD","value":"49.99"},"note_to_payer":"This refund of 49.99 USD is for your returned item. Thank you for your patience!","seller_payable_breakdown":{"gross_amount":{"currency_code":"USD","value":"49.99"},"paypal_fee":{"currency_code":"USD","value":"0.00"},"net_amount":{"currency_code":"USD","value":"49.99"},"net_amount_breakdown":[{"payable_amount":{"currency_code":"GBP","value":"37.33"},"converted_amount":{"currency_code":"USD","value":"49.99"},"exchange_rate":{"source_currency":"GBP","target_currency":"USD","value":"1.339217934971362"}}],"total_refunded_amount":{"currency_code":"USD","value":"49.99"}},"custom_id":"A-770EC6AE45FC4681","status":"COMPLETED","create_time":"2026-11-09T02:42:40-08:00","update_time":"2026-11-09T02:42:40-08:00","links":[{"href":"https://api.sandbox.paypal.com/v2/payments/refunds/84R36954519561114","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v2/payments/captures/88G70527JA473570X","rel":"up","method":"GET"}]},"assist":{"language":"English","language_code":"en","current_size":null,"requested_size":null,"merchant_summary_en":"Customer wants a refund because the sneakers received are black instead of white as shown in the listing."},"extraction":{"extractor":"llm:openai/gpt-oss-20b","note":"Validated against strict schema.","assist_note":"Validated (information only; the policy engine ignores these fields).","injection_guard":false,"llm_unavailable":false,"llm_chat_completions":1,"safety":{"flagged":false,"trigger":"none","product_class":"NONE","rule_version":"safety-gate/3.4.0-main","signals":[]},"safety_ai":{"ai_layer":"off"}},"note":{"outcome":"COMPLETED_NOTE","language":"English","language_code":"en","text":"Your return was approved and your refund of 49.99 USD has been completed by PayPal. Thank you!","source_en":"Your return was approved and your refund of 49.99 USD has been completed by PayPal. Thank you!","generator":"template","validation":"English template."},"duplicate":null,"webhook":{"event_id":"WH-1CG953647V613825E-23Y3563816419335D","event_type":"PAYMENT.CAPTURE.REFUNDED","resource_id":"84R36954519561114","resource_status":"COMPLETED","status_details":null,"verification":"SUCCESS","verify_method":"self","received_at":"2026-11-09T10:42:56Z","create_time":"2026-11-09T10:42:44.605Z","transmission_time":"2026-11-09T10:42:53Z","transmission_age":"fresh"},"payer_note":{"outcome":"REFUND_NOTE","language":"English","language_code":"en","text":"This refund of 49.99 USD is for your returned item. Thank you for your patience!","source_en":"This refund of 49.99 USD is for your returned item. Thank you for your patience!","generator":"template","validation":"English template."}},"timeline":[{"id":1,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:37Z","stage":"payment","title":"PayPal order created","detail":{"order_id":"7R842709FE7019806","status":"COMPLETED","amount":"49.99 USD"}},{"id":2,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:37Z","stage":"payment","title":"PayPal payment captured","detail":{"order_id":"7R842709FE7019806","capture_id":"88G70527JA473570X","status":"COMPLETED"}},{"id":3,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:37Z","stage":"request","title":"Customer request received","detail":{"customer":"Maria (demo customer)","message":"The sneakers I received are black, but the photo shows white. The colour doesn't match the listing, and I'd like to return them for a refund."}},{"id":4,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:37Z","stage":"intent","title":"Intent extracted","detail":{"intent":"REFUND_REQUEST","reason":"NOT_AS_DESCRIBED","requested_action":"REFUND","extractor":"llm:openai/gpt-oss-20b","note":"Validated against strict schema.","assist":{"language":"English","language_code":"en","current_size":null,"requested_size":null,"merchant_summary_en":"Customer wants a refund because the sneakers received are black instead of white as shown in the listing."},"assist_note":"Validated (information only; the policy engine ignores these fields).","safety_gate":{"flagged":false,"rule_version":"safety-gate/3.4.0-main"}}},{"id":5,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:38Z","stage":"policy","title":"Policy pre-check: ELIGIBLE","detail":{"decision":"ELIGIBLE","stage":"final","action":"REFUND","checks":[{"name":"request_supported","passed":true,"detail":"Request understood as REFUND_REQUEST / REFUND (reason NOT_AS_DESCRIBED)"},{"name":"payment_captured","passed":true,"detail":"PayPal capture status is COMPLETED"},{"name":"return_window","passed":true,"detail":"Purchased 0 days ago; window is 30 days"},{"name":"product_eligible","passed":true,"detail":"Trail Runner sneakers, EU size 42 is eligible for return"},{"name":"refundable_amount","passed":true,"detail":"Requested 49.99 USD; refundable 49.99 USD"}],"reasons":[]}},{"id":6,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:38Z","stage":"policy","title":"Policy final: ELIGIBLE — return for a refund (supplier not involved)","detail":{"decision":"ELIGIBLE","stage":"final","action":"REFUND","checks":[{"name":"request_supported","passed":true,"detail":"Request understood as REFUND_REQUEST / REFUND (reason NOT_AS_DESCRIBED)"},{"name":"payment_captured","passed":true,"detail":"PayPal capture status is COMPLETED"},{"name":"return_window","passed":true,"detail":"Purchased 0 days ago; window is 30 days"},{"name":"product_eligible","passed":true,"detail":"Trail Runner sneakers, EU size 42 is eligible for return"},{"name":"refundable_amount","passed":true,"detail":"Requested 49.99 USD; refundable 49.99 USD"}],"reasons":[]}},{"id":7,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:38Z","stage":"human","title":"Autonomy: HUMAN — this case needs a person","detail":{"why":"AUTO_ENABLED is off — every refund needs a person","auto_enabled":false,"auto_refund_max_amount":"50.00","auto_exchange_enabled":false}},{"id":8,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:38Z","stage":"note","title":"Customer note drafted: awaiting merchant approval (not sent)","detail":{"outcome":"PENDING_NOTE","language":"English","language_code":"en","text":"Your return request has been reviewed and is awaiting merchant approval. No refund has been issued yet.","source_en":"Your return request has been reviewed and is awaiting merchant approval. No refund has been issued yet.","generator":"template","validation":"English template."}},{"id":9,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:38Z","stage":"human","title":"Waiting for human approval of the refund","detail":{"amount":"49.99 USD"}},{"id":10,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:39Z","stage":"policy","title":"Policy re-check before refund: ELIGIBLE","detail":{"decision":"ELIGIBLE","stage":"final","action":"REFUND","checks":[{"name":"request_supported","passed":true,"detail":"Request understood as REFUND_REQUEST / REFUND (reason NOT_AS_DESCRIBED)"},{"name":"payment_captured","passed":true,"detail":"PayPal capture status is COMPLETED"},{"name":"return_window","passed":true,"detail":"Purchased 0 days ago; window is 30 days"},{"name":"product_eligible","passed":true,"detail":"Trail Runner sneakers, EU size 42 is eligible for return"},{"name":"refundable_amount","passed":true,"detail":"Requested 49.99 USD; refundable 49.99 USD"}],"reasons":[],"capture_id":"88G70527JA473570X","capture_status":"COMPLETED"}},{"id":11,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:39Z","stage":"human","title":"Human approved the refund","detail":{"approver":"merchant","source":"human"}},{"id":12,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:39Z","stage":"note","title":"note_to_payer written for the refund call (neutral wording)","detail":{"outcome":"REFUND_NOTE","language":"English","language_code":"en","text":"This refund of 49.99 USD is for your returned item. Thank you for your patience!","source_en":"This refund of 49.99 USD is for your returned item. Thank you for your patience!","generator":"template","validation":"English template."}},{"id":13,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:41Z","stage":"paypal","title":"PayPal refund COMPLETED","detail":{"refund_id":"84R36954519561114","status":"COMPLETED","amount":{"currency_code":"USD","value":"49.99"},"expected_amount":{"value":"49.99","currency_code":"USD"},"amount_verified":true,"create_time":"2026-11-09T02:42:40-08:00","paypal_request_id":"tradeos-refund-A-770EC6AE45FC4681","note_to_payer":"This refund of 49.99 USD is for your returned item. Thank you for your patience!","status_details":null}},{"id":14,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:41Z","stage":"note","title":"Final customer note written after PayPal COMPLETED","detail":{"outcome":"COMPLETED_NOTE","language":"English","language_code":"en","text":"Your return was approved and your refund of 49.99 USD has been completed by PayPal. Thank you!","source_en":"Your return was approved and your refund of 49.99 USD has been completed by PayPal. Thank you!","generator":"template","validation":"English template."}},{"id":15,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:56Z","stage":"webhook","title":"PayPal webhook PAYMENT.CAPTURE.REFUNDED received — signature verified (second confirmation)","detail":{"event_id":"WH-1CG953647V613825E-23Y3563816419335D","event_type":"PAYMENT.CAPTURE.REFUNDED","resource_id":"84R36954519561114","resource_status":"COMPLETED","status_details":null,"verification":"SUCCESS","verify_method":"self","received_at":"2026-11-09T10:42:56Z","create_time":"2026-11-09T10:42:44.605Z","transmission_time":"2026-11-09T10:42:53Z","transmission_age":"fresh"}},{"id":16,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:59Z","stage":"reconcile","title":"Reconciled with PayPal — all match","detail":{"checks":[{"field":"capture.status","local":"PARTIALLY_REFUNDED/REFUNDED","paypal":"REFUNDED","match":true},{"field":"capture.amount","local":"49.99 USD","paypal":{"currency_code":"USD","value":"49.99"},"match":true},{"field":"refund.status","local":"COMPLETED","paypal":"COMPLETED","match":true,"advanced":false},{"field":"refund.amount","local":"49.99 USD","paypal":"49.99 USD","match":true}],"ok":true,"needs_human":null,"seq":1794220979161447066}},{"id":120,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:46:07Z","stage":"reconcile","title":"Reconciled with PayPal — all match","detail":{"checks":[{"field":"capture.status","local":"PARTIALLY_REFUNDED/REFUNDED","paypal":"REFUNDED","match":true},{"field":"capture.amount","local":"49.99 USD","paypal":{"currency_code":"USD","value":"49.99"},"match":true},{"field":"refund.status","local":"COMPLETED","paypal":"COMPLETED","match":true,"advanced":false},{"field":"refund.amount","local":"49.99 USD","paypal":"49.99 USD","match":true}],"ok":true,"needs_human":null,"seq":1794221167966534305}}],"paypal_calls":[{"id":1,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:37Z","operation":"create_order_with_card","ok":1,"result":"{\"id\": \"7R842709FE7019806\", \"status\": \"COMPLETED\"}","debug_id":"f4101378fb327","request_id":"tradeos-order-A-770EC6AE45FC4681","evidence_json":"{\"id\": \"7R842709FE7019806\", \"status\": \"COMPLETED\", \"capture_id\": \"88G70527JA473570X\", \"capture_status\": \"COMPLETED\"}","seq":1794220957254616822},{"id":2,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:38Z","operation":"get_capture","ok":1,"result":"{\"id\": \"88G70527JA473570X\", \"status\": \"COMPLETED\"}","debug_id":"f3396491a8163","request_id":null,"evidence_json":"{\"id\": \"88G70527JA473570X\", \"status\": \"COMPLETED\", \"amount\": {\"currency_code\": \"USD\", \"value\": \"49.99\"}}","seq":1794220958438097433},{"id":3,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:39Z","operation":"get_capture","ok":1,"result":"{\"id\": \"88G70527JA473570X\", \"status\": \"COMPLETED\"}","debug_id":"f427989753f94","request_id":null,"evidence_json":"{\"id\": \"88G70527JA473570X\", \"status\": \"COMPLETED\", \"amount\": {\"currency_code\": \"USD\", \"value\": \"49.99\"}}","seq":1794220959469182692},{"id":4,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:41Z","operation":"refund_capture","ok":1,"result":"{\"id\": \"84R36954519561114\", \"status\": \"COMPLETED\"}","debug_id":"f5894177109d9","request_id":"tradeos-refund-A-770EC6AE45FC4681","evidence_json":"{\"id\": \"84R36954519561114\", \"status\": \"COMPLETED\", \"amount\": {\"currency_code\": \"USD\", \"value\": \"49.99\"}}","seq":1794220961223959226},{"id":5,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:58Z","operation":"get_capture","ok":1,"result":"{\"id\": \"88G70527JA473570X\", \"status\": \"REFUNDED\"}","debug_id":"f70749278d10a","request_id":null,"evidence_json":"{\"id\": \"88G70527JA473570X\", \"status\": \"REFUNDED\", \"amount\": {\"currency_code\": \"USD\", \"value\": \"49.99\"}}","seq":1794220978842461411},{"id":6,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:42:59Z","operation":"get_refund","ok":1,"result":"{\"id\": \"84R36954519561114\", \"status\": \"COMPLETED\"}","debug_id":"f718817c9cd0c","request_id":null,"evidence_json":"{\"id\": \"84R36954519561114\", \"status\": \"COMPLETED\", \"amount\": {\"currency_code\": \"USD\", \"value\": \"49.99\"}}","seq":1794220979141412679},{"id":30,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:46:07Z","operation":"get_capture","ok":1,"result":"{\"id\": \"88G70527JA473570X\", \"status\": \"REFUNDED\"}","debug_id":"f5337453798c9","request_id":null,"evidence_json":"{\"id\": \"88G70527JA473570X\", \"status\": \"REFUNDED\", \"amount\": {\"currency_code\": \"USD\", \"value\": \"49.99\"}}","seq":1794221167486306996},{"id":31,"case_id":"A-770EC6AE45FC4681","ts":"2026-11-09T10:46:07Z","operation":"get_refund","ok":1,"result":"{\"id\": \"84R36954519561114\", \"status\": \"COMPLETED\"}","debug_id":"f782888024980","request_id":null,"evidence_json":"{\"id\": \"84R36954519561114\", \"status\": \"COMPLETED\", \"amount\": {\"currency_code\": \"USD\", \"value\": \"49.99\"}}","seq":1794221167945612066}]}