API Information

Corporate Sandbox Management


Description

The Sandbox Management API is available to upload test data files and reset the sandbox directly from your development environment. This is applicable for both HSBC Bank and HSBC Innovation Banking.

See also:

Detailed User Guide for Sandbox projects

Download the Sandbox Toolkit

Detailed Guide to Sandbox Data Management


Postman Collection

A downloadable Postman collection is available on your project details page to help get started with the Smart Sandbox. Please see our Sandbox Toolkit page for more details.


Code Examples

Sample cURL snippets for the Sandbox Management API:

Below cURL snippet can be used to add data to the transaction table.
curl --location --request POST 'https://sandbox.corporate-api.hsbc.com/v1/sandbox-self-service/manage/data' \
--header 'x-hsbc-client-id: {{client-id}}' \
--header 'x-hsbc-client-secret: {{client-secret}}' \
--header 'x-hsbc-profile-id: {{profile-id}}' \
--header 'product-category: treasury' \
--header 'category-version: 1.0' \
--header 'api-name: account-information' \
--header 'api-version: v2' \
--header 'table-name: transaction' \
--header 'product-names: account-information-v2' \
--header 'content-type: multipart/form-data' \
--f file=@/{{your-upload-file-location-and-filename}}
Below cURL snippet can be used to reset the data in the transaction table back to the default dataset.
curl --location --request DELETE 'https://sandbox.corporate-api.hsbc.com/v1/sandbox-self-service/manage/data' \
--header 'x-hsbc-client-id: {{client-id}}' \
--header 'x-hsbc-client-secret: {{client-secret}}' \
--header 'x-hsbc-profile-id: {{profile-id}}' \
--header 'product-category: treasury' \
--header 'category-version: 1.0' \
--header 'api-name: account-information' \
--header 'api-version: v2' \
--header 'table-name: transaction' \
--header 'product-names: account-information-v2'

Version History

Change log and release history:

Version Release Date Status Description
v1 August 2021 Live (Sandbox) Sandbox management API first release

 

Return to top