Sandbox environment

For development and testing purposes, a sandbox environment is provided by the Chimpy POS API.

This environment is a copy of the production app, but the database contains only test data that can be used to play around.

Environment variables

The following environment variables should be set by the cashier software:

Keys:

  • POS_API_URI
  • AUTHORIZATION_SERVICE_URI
  • AUTH_CLIENT_ID
  • AUTH_AUDIENCE
  • PRIVATE_USERNAME
  • PRIVATE_PASSWORD

Values for sandbox environment will be provided by Chimpy directly, for security reasons.

Sandbox data

The sandbox environment comes with a bunch of readymade sandbox data to play with. The following provides an overview of the test identifiers available by default, for each of the available countries. Whenever needed, Chimpy can reset this test data to its default state.

Batteries identifiers

Url param: battery_id

Pickup cases

  • ready_to_be_picked (success): identifiers 10000000 to 10000019
  • battery_expired (error): identifiers 10000020
  • battery_already_used (error): identifiers 10000040

Return cases

  • ready_for_return (success): identifiers 10000100 to 10000113
  • battery_not_rented_out (error): identifiers 10000120
  • battery_already_returned (error): identifiers 10000130

Some of these test codes are also rendered as CODE128 barcodes in this document.

User coupons

Url param: user_coupon

  • Free charge coupon (free charge, payment at shop): GREENAF000000, GREENAF000001
  • Invalid free charge coupon (error, payment at shop): GREENAF111111
  • Regular registered user (no free charge, in-app payment): auth0|5b72f10e7cc5d76e68f4e85f
  • Registered user with free promo charges (free charge, in-app payment): auth0|5b72f40bf7ad7d713cb05888
  • Registered user with free support charges (free charge, in-app payment): auth0|5b72f4b6f7ad7d713cb058f7
  • Registered user with standard subscription (free charge, in-app payment): auth0|5b72f52c96ad777836c14771
  • Registered user with unlimited subscription (free charge, in-app payment): auth0|5b72f59e7cc5d76e68f4eb7d
  • Invalid registered user (error, in-app payment): auth0|000000000000000000000000

Some of these test codes are also rendered as 1D/2D barcodes in this document.

Location identifiers

Url param: location_identifier

Switzerland

sandbox_retail_ch_10001, sandbox_retail_ch_10002

Germany

sandbox_retail_de_10001, sandbox_retail_de_10002

France

sandbox_retail_fr_10001, sandbox_retail_fr_10002

Spain

sandbox_retail_es_10001, sandbox_retail_es_10002

Austria

sandbox_retail_at_10001, sandbox_retail_at_10002

Italy

sandbox_retail_it_10001, sandbox_retail_it_10002

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard