GGlamBug Partner APIglambug.in ↗

Payments

Amount due / paid on an order

Fetch these directly on any order — they're computed live, never stale or cached.

Query
query {
  myOrders {
    orderNumber
    grandTotal
    amountPaid
    amountDue
  }
}
Response
{
  "data": {
    "myOrders": [
      { "orderNumber": "GB-3801", "grandTotal": 2816, "amountPaid": 0, "amountDue": 2816 }
    ]
  }
}

Payment history

Every payment recorded against your account, newest first.

Query
query {
  myWalletTransactions(limit: 50, offset: 0) {
    total
    hasMore
    items {
      id
      amount
      orderNumber
      paymentMode
      description
      createdAt
    }
  }
}
Response
{
  "data": {
    "myWalletTransactions": {
      "total": 3,
      "hasMore": false,
      "items": [
        {
          "id": "cmv0abc123",
          "amount": 2816,
          "orderNumber": "GB-3801",
          "paymentMode": "BANK",
          "description": "Payment received",
          "createdAt": "2026-09-17T10:00:00.000Z"
        }
      ]
    }
  }
}

Subscription and billing status

If your account has a monthly White label subscription, read where it stands at any time. If it doesn't, subscribed is false and every other field is empty.

Query
query {
  partnerBilling {
    subscribed
    status
    paused
    message
    monthlyFee
    testPeriodEndsAt
    nextDueAt
    graceEndsAt
    nextFeeFree
    freeProvisional
    ordersThisPeriod
    freeOrderThreshold
    walletBalance
    shortBy
  }
}
Response
{
  "data": {
    "partnerBilling": {
      "subscribed": true,
      "status": "ACTIVE",
      "paused": false,
      "message": null,
      "monthlyFee": 5000,
      "testPeriodEndsAt": null,
      "nextDueAt": "2026-12-15T00:00:00.000Z",
      "graceEndsAt": null,
      "nextFeeFree": true,
      "freeProvisional": true,
      "ordersThisPeriod": 52,
      "freeOrderThreshold": 50,
      "walletBalance": 18250,
      "shortBy": 0
    }
  }
}
  • status is SCHEDULED during your test period (building and testing is free until your start date), ACTIVE, GRACE (the fee could not be taken and the grace period is running) or PAUSED.
  • monthlyFee is in rupees and includes GST. It is taken from your wallet on the same day each month, starting on your start date. shortBy shows how much to add to the wallet when the fee is due soon or overdue.
  • Reach freeOrderThreshold accepted, paid orders in a billing period and the next fee is free: nextFeeFree becomes true, and freeProvisional stays true until the due date, when the orders are counted again. A free month appears in your wallet history as a 0.00 line.
  • While paused is true, catalogue and order calls are refused with SUBSCRIPTION_PAUSED (see Errors). This query, your orders and your wallet history stay available, and access resumes by itself once the wallet covers the fee.