Sandbox is an environment that helps developers develop APIs and enables integration tests of main functions. The sandbox environment simulates the main functions and logic of Alipay products. During the integration process, developers can develop and debug various open APIs in the sandbox environment according to the needs of each application. This enables integration tests to be completed quickly and successfully, and helps the application to pass all acceptance tests before going live.


  • After you complete the API development and integration tests of main functions, be sure to run acceptance tests of related functions such as payment and refund in Alipay's production environment. All return codes and business logic are subject to the production environment.
  • Stress tests are forbidden in sandbox. This is to avoid triggering corresponding rate limiting, which results in the inability to use sandbox.
  • Before going live, be sure to complete all acceptance cases of iValidate in the sandbox environment.