GST API Sandboxing tuning on-off via "Frappe Cloud > Site > Site Config"

Hi,

We have two instances on frappe cloud: 1. Testing 2. Production
It would be highly beneficial to be able to pre-set GST API sandboxing via Frappe Cloud > Sites > Sites Config

This ensures no un-intended submission to GST Portal.

If possible pls do consider doing this.

@Paresh_Shah U can setup like that when u can migrate in your production site then write code for off your gst setting so u can not challenging part for u so write after_migrate event for when you set the site config like

"server" : "Production"

then fetch this value in after_migrate event if your production server then update your gst setting doctype

3 Likes

Even for your staging server, you may like to use Production APIs from GST.

Reasons:

  • Sandbox is only supported for e-Waybill and e-Invoice.
  • For certain GET requests, like for purchase reconciliation tool, it should be okay to use production APIs even on staging server.

We may do some work here to make it selective sandbox.

About keeping it as a part of site config, we may consider this request too, after we address the above issue.

In the mean time if this is critical for you and you are okay with APIs disabled for some functionalities,

  • you can implement something as suggested by Meet or
  • just manually enable sandbox and keep the field as read-only by manually creating a property setter
2 Likes