Menu

createSandboxSeller

MutationPublic — no key needed

Developer sandbox: opens an active test store with an owner account, a custom key carrying every scope and, optionally, a pairing code for a connector app. Only on the sandbox API; refused with NOT_FOUND elsewhere.

Arguments

NameTypeDescription
inputSandboxSellerInput!required

Returns

SandboxSellerView!

Example

GraphQL
mutation CreateSandboxSeller($input: SandboxSellerInput!) {
  createSandboxSeller(input: $input) {
    apiKey
    apiKeyPrefix
    email
    endpoint
    organizationId
    pairingCode
    pairingCodeExpiresAt
    scopes
    sellerUrl
    slug
  }
}
curl
curl -sS https://api.wamia.tn/connect/graphql \
  -H 'content-type: application/json' \
  -H 'x-api-key: wamia_…' \
  -H 'user-agent: my-integration/1.0.0 (+https://shop.example.tn)' \
  -H 'wamia-idempotency-key: 6f0e1a2b-…' \
  --data '{"query":"mutation CreateSandboxSeller($input: SandboxSellerInput!) { createSandboxSeller(input: $input) { apiKey apiKeyPrefix email endpoint organizationId pairingCode pairingCodeExpiresAt scopes sellerUrl slug } }"}'