TSGGLOBAL Support sign in
Skip to page content
Browse TSG Global API docs

TSG Global API documentation Phone Numbers Checkout Numbers in Cart

Checkout Numbers in Cart

On this page

GraphQL numbersOrder mutation: purchase every number reserved in your cart and add it to your account.

Overview

Checkout and purchase all of the currently reserved numbers in your cart.

Authentication

This function is available via our new GraphQL API. You can read more about how to authenticate to this API here.

Example Mutation

This function will add all the numbers currently reserved in your cart to your TSG Global account.

mutation OrderNumbers {
  numbersOrder {
    orderId
    items {
      tn
      trunkGroup
      tnNote
    }
  }
}

Example Response

{
  "data": {
    "numbersOrder": {
      "items": [
        {
          "tn": "8572391650",
          "tnNote": null,
          "trunkGroup": null
        }
      ],
      "orderId": 0
    }
  }
}