Skip to content
SIBISIBI Developers
Esc
navigateopen⌘Jpreview
On this page

Test GraphQL Environment

Make test GraphQL requests without financial transactions

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
  • Test orders do not require a pre-provisioned payment method: if the caller has no usable saved Stripe payment method — no bank account and no unexpired card — a Stripe test card is created and saved to them automatically the first time an order is reviewed or created. It is returned in availablePaymentMethods from then on. Callers who already have a usable payment method keep exactly the methods they have, and production requests never get a test card.
  • 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 \
  --request POST \
  --header 'Authorization: Bearer <YOUR_API_KEY>' \
  --data '{"query": "<YOUR_QUERY>"}' \
  https://dev.sibi.pro/graphql
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.

Was this page helpful?