You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consent to Continue Out Created by Staff – User Receives 403 Error When Downloading Receipt #34460
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresOn HoldUATThis ticket is to track all UAT feedback from a StorybugSomething isn't workingtimeboxed
Describe the bug in current situation
A Consent to Continue Out filing created by a Staff user can be viewed successfully by a User in Filing History. However, when the user attempts to download the Receipt, the system returns a 403 Forbidden error. All other filing documents download successfully.
Steps to Reproduce
Steps to reproduce the behaviour:
Log in as Staff.
Create a Consent to Continue Out filing for business BC1200832.
Verify the filing appears in Filing History.
Download all available documents, including the Receipt.
Receipt downloads successfully.
Log out and log in as an External User.
Access the same business (BC1200832).
Open Filing History.
Attempt to download the Receipt.
Actual/ observed behavior/ results
The Receipt download fails with a 403 Forbidden error.
Other filing documents can be downloaded successfully.
Expected behavior
The external user should be able to download the Receipt, along with all other filing documents, without receiving a 403 Forbidden error
changed the title [-]Consent to Continue Out Created in Staff and View in User got 403 while downloading Receipt [/-][+]Consent to Continue Out Created by Staff – User Receives 403 Error When Downloading Receipt[/+]on Aug 4, 2026
When Staff creates a filing with fees waived, the payment record in Pay API is tied to the Staff account. When an external user tries to download the receipt, it uses the external user's token to call Pay API — but Pay API only allows the account that owns the payment to access it, so it returns 403.
` Before the fix: legal-api forwarded the external user's token → Pay API saw a regular user whose account didn't own the invoice ( owned by staff ) → 403 .
Proposed fix: legal-api sends AccountService.get_bearer_token() → Pay API sees a system account → is_system() returns True → account ownership check skipped → receipt generated successfully.
The is_system() bypass was deliberately designed in Pay API for exactly this service-to-service scenario.
`
Sent follow up to Pay team today. @vikas-gov to keep our sprint going we should be able to push this through. If there are concerns flagged by pay we'd need to revisit the approach before our launch Sept 17th.
Note: Follow up from Pay team was received noting in their opinion anyone on an affiliated account (user/coordinator) should be able to see a receipt created via a staff filing - which is what we are tackling here.
Transactions and Statement restrictions logic is unclear.
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresOn HoldUATThis ticket is to track all UAT feedback from a StorybugSomething isn't workingtimeboxed
Activity
[-]Consent to Continue Out Created in Staff and View in User got 403 while downloading Receipt [/-][+]Consent to Continue Out Created by Staff – User Receives 403 Error When Downloading Receipt[/+]mstanton1 commentedon Aug 13, 2026
Suspected that this will only occur if the filing was done by another user (e.g. end user) and then the filing is viewed by staff.
vikas-gov commentedon Aug 13, 2026
related ticket for reference #33861
benjamin-bc-gov commentedon Aug 19, 2026
Root cause
When Staff creates a filing with fees waived, the payment record in Pay API is tied to the Staff account. When an external user tries to download the receipt, it uses the external user's token to call Pay API — but Pay API only allows the account that owns the payment to access it, so it returns 403.
vikas-gov commentedon Aug 20, 2026
Next Steps: Review with Pay team and confirm expected behavior for staff transactions/receipts.
Owner: @mstanton1
mstanton1 commentedon Aug 20, 2026
Questions sent to pay team. @rebturg you've been cc'd for knowledge building.
benjamin-bc-gov commentedon Aug 20, 2026
`
Before the fix: legal-api forwarded the external user's token → Pay API saw a regular user whose account didn't own the invoice ( owned by staff ) → 403 .
Proposed fix: legal-api sends AccountService.get_bearer_token() → Pay API sees a system account → is_system() returns True → account ownership check skipped → receipt generated successfully.
The is_system() bypass was deliberately designed in Pay API for exactly this service-to-service scenario.
`
mstanton1 commentedon Aug 26, 2026
Sent follow up to Pay team today. @vikas-gov to keep our sprint going we should be able to push this through. If there are concerns flagged by pay we'd need to revisit the approach before our launch Sept 17th.
mstanton1 commentedon Aug 26, 2026
Note: Follow up from Pay team was received noting in their opinion anyone on an affiliated account (user/coordinator) should be able to see a receipt created via a staff filing - which is what we are tackling here.
Transactions and Statement restrictions logic is unclear.
gunanagar commentedon Aug 26, 2026
Retested after the fix, I can download the receipt, which was filled by the staff
gunanagar commentedon Aug 26, 2026
Also tested with other filling; it's working now. Thanks