Short Code Submission (Order)
Overview
This form allows you to order short code numbers for your messaging campaigns.
Authentication
Mutation - Submit a short code form (order)
Using a GraphQL mutation you can submit the form, the example command is below. This creates an order which will be verified and the short code numbers will be ordered based on the submitted data.
mutation (
$businessName: String!
$businessRegisteredAddress: String!
$businessRegisteredCity: String!
$businessRegisteredState: String!
$businessRegisteredZip: String!
$businessContactFirstName: String!
$businessContactLastName: String!
$businessContactEmail: String!
$businessContactPhone: String!
$useCase: String!
$termsAndConditionsWebsite: String!
$privacyPolicyWebsite: String!
$callToActionLocations: String!
$callToActionLanguage: String!
$optInKeywords: String!
$optInConfirmation: String!
$welcomeMessage: String!
$exampleAlerts: String!
$helpResponseText: String!
$stopResponseText: String!
$customerSupportContactEmail: String!
$customerSupportContactPhone: String!
$customerSupportUrl: String!
$attachments: [String!]!
) {
submitShortcodeForm(
businessName: $businessName,
businessRegisteredAddress: $businessRegisteredAddress,
businessRegisteredCity: $businessRegisteredCity,
businessRegisteredState: $businessRegisteredState,
businessRegisteredZip: $businessRegisteredZip,
businessContactFirstName: $businessContactFirstName,
businessContactLastName: $businessContactLastName,
businessContactEmail: $businessContactEmail,
businessContactPhone: $businessContactPhone,
useCase: $useCase,
termsAndConditionsWebsite: $termsAndConditionsWebsite,
privacyPolicyWebsite: $privacyPolicyWebsite,
callToActionLocations: $callToActionLocations,
callToActionLanguage: $callToActionLanguage,
optInKeywords: $optInKeywords,
optInConfirmation: $optInConfirmation,
welcomeMessage: $welcomeMessage,
exampleAlerts: $exampleAlerts,
helpResponseText: $helpResponseText,
stopResponseText: $stopResponseText,
customerSupportContactEmail: $customerSupportContactEmail,
customerSupportContactPhone: $customerSupportContactPhone,
customerSupportUrl: $customerSupportUrl,
attachments: $attachments,
) {
id
publicId
insertedAt
name
status
statusNote
finishedAt
data {
...ShortcodeFormFields
}
}
}
fragment ShortcodeFormFields on ShortcodeFormOrderData {
type
businessName
businessRegisteredAddress
businessRegisteredCity
businessRegisteredState
businessRegisteredZip
businessContactFirstName
businessContactLastName
businessContactEmail
businessContactPhone
useCase
termsAndConditionsWebsite
privacyPolicyWebsite
callToActionLocations
callToActionLanguage
optInKeywords
optInConfirmation
welcomeMessage
exampleAlerts
helpResponseText
stopResponseText
customerSupportContactEmail
customerSupportContactPhone
customerSupportUrl
attachments
}Sample arguments
The payload should be formatted like this, do note that the attachments is an array of base64 encoded images and/or docs.
Query - list short code form orders
To retrieve the status of the request, and to list your short code orders you can use the query bellow.
And the variables look like this.
You can do a more detailed search, e.g. by using the full publicId.
You can also specify a date range
Last updated
Was this helpful?