Test Environment

For testing and development purposes, we provide a dedicated GraphQL test environment. This environment allows you to test API integrations without triggering real shipments or financial transactions.

The test environment is available at: https://dev.sibi.pro/graphql

Key Features

  • All requests made to this endpoint are treated as test requests
  • No real financial transactions will be processed
  • Distributors will not be notified about orders
  • Test data is regularly purged
  • All other API functionality works as expected

Authentication

Authentication works the same way as the production API. Include your API key in the Authorization header:

Curl
curl \
  --request POST \
  --header 'Authorization: Bearer <YOUR_API_KEY>' \
  --data '{"query": "<YOUR_QUERY>"}' \
  https://dev.sibi.pro/graphql
Fetch
const response = await fetch('https://dev.sibi.pro/graphql', {
  method: 'POST',
  headers: { 'Authorization': `Bearer ${yourApiKey}` },
  body: JSON.stringify({ query: '<YOUR_QUERY>'}),
});
const data = await response.json();

Example Test Requests

Below are examples of common test operations you can perform on the test environment.

Search Products

query SearchProducts($search: String!) {
  searchProducts(search: $search) {
    edges {
      id
      name
      price
    }
  }
}

Place Test Order

mutation PlaceOrder($input: OrderInput!) {
  placeOrder(input: $input) {
    id
    status
    total
  }
}

Important Notes

  • The test environment mirrors the production environment’s schema and validation rules
  • While financial transactions aren’t processed, all other business logic remains intact
  • Test data may be purged periodically

For full GraphQL API documentation, see Making a GraphQL Request.