{"items":[{"type":"link","label":"SMS Gateway API","link":"/apis/sms","routeSlug":"/apis/sms","content":{"contentType":"overview","meta":{"name":"SMS Gateway API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"sms.json","url":"/_bundle/apis/sms.json?download"},{"kind":"download","label":"sms.yaml","url":"/_bundle/apis/sms.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"externallink","title":"URL","titleTranslationKey":"info.contact.url","label":"https://www.ecommunicate.co.za/","url":"https://www.ecommunicate.co.za/"},{"kind":"email","title":"eCommunicate Support","email":"support@ecommunicate.co.za","label":"support@ecommunicate.co.za","withCopyButton":true,"copyContent":"support@ecommunicate.co.za"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"SMS Gateway API (1.31)","showPageActions":true},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Direct bulk & transactional SMS over a simple HTTP JSON API."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"The eCommunicate "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"SMS Gateway"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" (Payless4SMS) is a direct HTTP/JSON API for sending single and bulk SMS, tracking delivery, receiving replies and delivery receipts, scheduling messages, and managing your credit balance."},"children":[],"type":"text"}],"type":"paragraph"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"It is a standalone product, separate from the WhatsApp-centric "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"href":"/apis/omnichannel"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Omnichannel Integration API"},"children":[],"type":"text"}],"type":"link"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Use this API when you need plain SMS to any mobile network."},"children":[],"type":"text"}],"type":"paragraph"}]}],"sectionId":"/"}],"sectionId":"/"},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{"level":2,"id":"section/authentication"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Authentication"},"children":[],"type":"text"}],"type":"heading"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Every request is authenticated with an "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":": send an "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"X-API-Key: ecomm_..."},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" header. Generate and revoke keys from the client portal ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API Keys"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"). Always use HTTPS so the key is never sent in the clear."},"children":[],"type":"text"}],"type":"paragraph"}]}],"sectionId":"/section/authentication"},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{"level":2,"id":"section/high-priority-(otp)-traffic"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"High-priority (OTP) traffic"},"children":[],"type":"text"}],"type":"heading"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"For one-time-pin traffic that must deliver in 5–10 seconds, request an OTP token from support and send it as an "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"otpToken"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" header. Valid tokens are routed to a dedicated priority queue with automatic backup-gateway fallback. If the response "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"statusCode"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"502"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", resend via your backup gateway until it returns to "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"100"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]}],"sectionId":"/section/high-priority-(otp)-traffic"},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{"level":2,"id":"section/status-codes"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Status codes"},"children":[],"type":"text"}],"type":"heading"},{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Responses carry a string "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"statusCode"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" and "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"statusDescription"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Common values: "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"001"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Request Completed · "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"021"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Authentication Failed · "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"022"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Invalid Parameters · "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"023"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Missing Parameters · "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"100"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Accepted For Processing · "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"126"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Blacklisted Destination · "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"128"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Invalid Destination · "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"129"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Duplicate Destination · "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"136"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Batch Size Exceeded (max 1000 recipients) · "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"137"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Insufficient Credits · "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"201"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Batch Scheduled · "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"500"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Message Sent · "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"501"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Queued At MNO · "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"600"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Delivery Success · "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"620"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" Failed In Delivery. The gateway sometimes returns equivalent alternates (e.g. Invalid Destination "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"128"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"/"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"226"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"), so treat "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"statusCode"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" as an opaque string."},"children":[],"type":"text"}],"type":"paragraph"}]}],"sectionId":"/section/status-codes"}]}]}},{"type":"link","label":"Authentication","link":"/apis/sms/section/authentication","routeSlug":"/apis/sms/section/authentication","content":null},{"type":"link","label":"High-priority (OTP) traffic","link":"/apis/sms/section/high-priority-(otp)-traffic","routeSlug":"/apis/sms/section/high-priority-(otp)-traffic","content":null},{"type":"link","label":"Status codes","link":"/apis/sms/section/status-codes","routeSlug":"/apis/sms/section/status-codes","content":null},{"type":"group","label":"Messaging","link":"/apis/sms/messaging","routeSlug":"/apis/sms/messaging","items":[{"label":"Send SMS (JSON)","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/sms/messaging/sendsms","routeSlug":"/apis/sms/messaging/sendsms","metadata":{"seo":{"title":"Send SMS (JSON)","description":"Send a single message, the same message to many recipients, or many messages to many recipients. Keep each request to a maximum of 1000 recipients and send the next request only after receiving the previous response. Also available over GET /sms/json (query parameters) for quick testing."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"sendSms","name":"Send SMS (JSON)","isWebhook":false,"pointer":"/paths/~1sms~1json/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Send SMS (JSON)","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Send a single message, the same message to many recipients, or many messages to many recipients. Keep each request to a maximum of "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"1000"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" recipients and send the next request only after receiving the previous response. Also available over "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"GET /sms/json"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" (query parameters) for quick testing."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ApiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"X-API-Key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"otpToken","in":"header","schemaId":"schema_0","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"OTP token issued by support. Routes the message to the priority queue. An invalid token yields "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"statusCode"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"480"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" and standard-queue routing."},"children":[],"type":"text"}],"type":"paragraph"}]}],"pointer":"/paths/~1sms~1json/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SendRequest","exampleIds":["paths/~1sms~1json/post/requestBody/content/application~1json/examples/singleRecipient","paths/~1sms~1json/post/requestBody/content/application~1json/examples/sameTextManyRecipients","paths/~1sms~1json/post/requestBody/content/application~1json/examples/withCallbacks"]}},"schemaId":"components/schemas/SendRequest","exampleIds":["paths/~1sms~1json/post/requestBody/content/application~1json/examples/singleRecipient","paths/~1sms~1json/post/requestBody/content/application~1json/examples/sameTextManyRecipients","paths/~1sms~1json/post/requestBody/content/application~1json/examples/withCallbacks"],"pointer":"/paths/~1sms~1json/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/sms/json","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"otpToken","in":"header","required":false,"example":"7C84AABBCCDDEEFF","schemaId":"schema_0"}],"cookie":[]},"security":[{"schemes":[{"id":"ApiKeyAuth","type":"apiKey","name":"X-API-Key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/SendRequest","exampleIds":["paths/~1sms~1json/post/requestBody/content/application~1json/examples/singleRecipient","paths/~1sms~1json/post/requestBody/content/application~1json/examples/sameTextManyRecipients","paths/~1sms~1json/post/requestBody/content/application~1json/examples/withCallbacks"]}},"responseCodes":["200","400"],"pointer":"/sms/json","href":"messaging/sendsms","openApiOperationId":"sendSms","summary":"Send SMS (JSON)"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"schemaId":"components/schemas/SendRequest","exampleIds":["paths/~1sms~1json/post/requestBody/content/application~1json/examples/singleRecipient","paths/~1sms~1json/post/requestBody/content/application~1json/examples/sameTextManyRecipients","paths/~1sms~1json/post/requestBody/content/application~1json/examples/withCallbacks"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/SendRequest","exampleIds":["paths/~1sms~1json/post/requestBody/content/application~1json/examples/singleRecipient","paths/~1sms~1json/post/requestBody/content/application~1json/examples/sameTextManyRecipients","paths/~1sms~1json/post/requestBody/content/application~1json/examples/withCallbacks"]}},"examples":[{},{},{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Request processed. Inspect "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"statusCode"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" for the outcome."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/SendResponse","exampleIds":["paths/~1sms~1json/post/responses/200/content/application~1json/examples/accepted","paths/~1sms~1json/post/responses/200/content/application~1json/examples/insufficientCredit"]}},"schemaId":"components/schemas/SendResponse","exampleIds":["paths/~1sms~1json/post/responses/200/content/application~1json/examples/accepted","paths/~1sms~1json/post/responses/200/content/application~1json/examples/insufficientCredit"]},{"code":"400","description":"Malformed request or invalid parameters.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/StatusResponse","exampleIds":["paths/~1sms~1json/post/responses/400/content/application~1json/example"]}},"schemaId":"components/schemas/StatusResponse","exampleIds":["paths/~1sms~1json/post/responses/400/content/application~1json/example"]}],"pointer":"/paths/~1sms~1json/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/SendResponse","exampleIds":["paths/~1sms~1json/post/responses/200/content/application~1json/examples/accepted","paths/~1sms~1json/post/responses/200/content/application~1json/examples/insufficientCredit"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/SendResponse","exampleIds":["paths/~1sms~1json/post/responses/200/content/application~1json/examples/accepted","paths/~1sms~1json/post/responses/200/content/application~1json/examples/insufficientCredit"]}}},{"code":"400","schemaId":"components/schemas/StatusResponse","exampleIds":["paths/~1sms~1json/post/responses/400/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/StatusResponse","exampleIds":["paths/~1sms~1json/post/responses/400/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/messaging/sendsms"}],"panels":[]}]},"httpPath":"/sms/json"},{"label":"Send SMS (query parameters)","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/sms/messaging/sendsmsget","routeSlug":"/apis/sms/messaging/sendsmsget","metadata":{"seo":{"title":"Send SMS (query parameters)","description":"A convenience form for quick testing. Send the same text to one or more destinations (comma-separated to). POST is recommended for production — it is not length-limited."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"sendSmsGet","name":"Send SMS (query parameters)","isWebhook":false,"pointer":"/paths/~1sms~1json/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Send SMS (query parameters)","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"A convenience form for quick testing. Send the same text to one or more destinations (comma-separated "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"to"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"). POST is recommended for production — it is not length-limited."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ApiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"X-API-Key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"to","in":"query","schemaId":"schema_1","description":"Destination MSISDN, or a comma-separated list for several recipients.","required":true},{"name":"messageText","in":"query","schemaId":"schema_2","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"URL-encoded message text. Use "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"%0A"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" for a new line."},"children":[],"type":"text"}],"type":"paragraph"}],"required":true},{"name":"priority","in":"query","schemaId":"schema_3","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"true"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" for transactional/premium routing; "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"false"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" for regular."},"children":[],"type":"text"}],"type":"paragraph"}]},{"name":"dsm","in":"query","schemaId":"schema_3","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Don't save message — stores a masked record and recipient number."},"children":[],"type":"text"}],"type":"paragraph"}]},{"name":"unicode","in":"query","schemaId":"schema_3","description":"Send as a Unicode (UCS-2) message."}],"pointer":"/paths/~1sms~1json/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/sms/json","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"parameters":{"path":[],"query":[{"name":"to","in":"query","required":true,"example":"27821234567","schemaId":"schema_1"},{"name":"messageText","in":"query","required":true,"example":"Hello%20from%20eCommunicate","schemaId":"schema_2"},{"name":"priority","in":"query","example":"false","schemaId":"schema_3"},{"name":"dsm","in":"query","example":"false","schemaId":"schema_3"},{"name":"unicode","in":"query","example":"false","schemaId":"schema_3"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ApiKeyAuth","type":"apiKey","name":"X-API-Key","in":"header"}],"scopes":[]}],"responseCodes":["200"],"pointer":"/sms/json","href":"messaging/sendsmsget","openApiOperationId":"sendSmsGet","summary":"Send SMS (query parameters)"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Request processed. Inspect "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"statusCode"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" for the outcome."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/SendResponse"}},"schemaId":"components/schemas/SendResponse"}],"pointer":"/paths/~1sms~1json/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/SendResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/SendResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/messaging/sendsmsget"}],"panels":[]}]},"httpPath":"/sms/json"}],"content":{"contentType":"group","meta":{"name":"Messaging"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Messaging","showPageActions":true},{"nodeType":"markdoc","content":"Send single and bulk SMS."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/sms/json","summary":"Send SMS (JSON)","prefix":{"name":"post","color":"post"},"badges":[],"link":"/messaging/sendsms","deprecated":false},{"title":"/sms/json","summary":"Send SMS (query parameters)","prefix":{"name":"get","color":"get"},"badges":[],"link":"/messaging/sendsmsget","deprecated":false}]}]}]}]}},{"type":"group","label":"Tracking","link":"/apis/sms/tracking","routeSlug":"/apis/sms/tracking","items":[{"label":"Track message status","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/sms/tracking/trackingmessagestatus","routeSlug":"/apis/sms/tracking/trackingmessagestatus","metadata":{"seo":{"title":"Track message status","description":"Query delivery status and receipts. Filter by time range (startDate/endDate), by ctid + sentDate, by stid, or by the global ids gctid/gstid. Add showfinalstatus=true to return only final states. Rate limited to 10 queries per id in the first 10 minutes, then once per 10 minutes. Also available over GET."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"trackingMessageStatus","name":"Track message status","isWebhook":false,"pointer":"/paths/~1sms~1trackingMessageStatus/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Track message status","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Query delivery status and receipts. Filter by time range ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"startDate"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"/"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"endDate"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"), by "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ctid"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" + "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"sentDate"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", by "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"stid"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", or by the global ids "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"gctid"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"/"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"gstid"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Add "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"showfinalstatus=true"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" to return only final states. Rate limited to 10 queries per id in the first 10 minutes, then once per 10 minutes. Also available over "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"GET"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ApiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"X-API-Key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/TrackingRequest","exampleIds":["paths/~1sms~1trackingMessageStatus/post/requestBody/content/application~1json/examples/byCtid","paths/~1sms~1trackingMessageStatus/post/requestBody/content/application~1json/examples/byTimeRange"]}},"schemaId":"components/schemas/TrackingRequest","exampleIds":["paths/~1sms~1trackingMessageStatus/post/requestBody/content/application~1json/examples/byCtid","paths/~1sms~1trackingMessageStatus/post/requestBody/content/application~1json/examples/byTimeRange"],"pointer":"/paths/~1sms~1trackingMessageStatus/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/sms/trackingMessageStatus","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ApiKeyAuth","type":"apiKey","name":"X-API-Key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/TrackingRequest","exampleIds":["paths/~1sms~1trackingMessageStatus/post/requestBody/content/application~1json/examples/byCtid","paths/~1sms~1trackingMessageStatus/post/requestBody/content/application~1json/examples/byTimeRange"]}},"responseCodes":["200"],"pointer":"/sms/trackingMessageStatus","href":"tracking/trackingmessagestatus","openApiOperationId":"trackingMessageStatus","summary":"Track message status"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"schemaId":"components/schemas/TrackingRequest","exampleIds":["paths/~1sms~1trackingMessageStatus/post/requestBody/content/application~1json/examples/byCtid","paths/~1sms~1trackingMessageStatus/post/requestBody/content/application~1json/examples/byTimeRange"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/TrackingRequest","exampleIds":["paths/~1sms~1trackingMessageStatus/post/requestBody/content/application~1json/examples/byCtid","paths/~1sms~1trackingMessageStatus/post/requestBody/content/application~1json/examples/byTimeRange"]}},"examples":[{},{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Tracking result.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/TrackingResponse","exampleIds":["paths/~1sms~1trackingMessageStatus/post/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/TrackingResponse","exampleIds":["paths/~1sms~1trackingMessageStatus/post/responses/200/content/application~1json/example"]}],"pointer":"/paths/~1sms~1trackingMessageStatus/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/TrackingResponse","exampleIds":["paths/~1sms~1trackingMessageStatus/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/TrackingResponse","exampleIds":["paths/~1sms~1trackingMessageStatus/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/tracking/trackingmessagestatus"}],"panels":[]}]},"httpPath":"/sms/trackingMessageStatus"},{"label":"Get receipts for a recipient","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/sms/tracking/getreceiptsforrecipient","routeSlug":"/apis/sms/tracking/getreceiptsforrecipient","metadata":{"seo":{"title":"Get receipts for a recipient","description":"Return delivery receipts for one recipient over a date range."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getReceiptsForRecipient","name":"Get receipts for a recipient","isWebhook":false,"pointer":"/paths/~1sms~1getReceiptsForRecipient/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get receipts for a recipient","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Return delivery receipts for one recipient over a date range."},{"nodeType":"security","requirements":[{"schemes":[{"name":"ApiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"X-API-Key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"recipient","in":"query","schemaId":"schema_1","description":"Recipient MSISDN.","required":true},{"name":"startDate","in":"query","schemaId":"schema_4","description":"ISO-8601 start of range.","required":true},{"name":"endDate","in":"query","schemaId":"schema_5","description":"ISO-8601 end of range.","required":true}],"pointer":"/paths/~1sms~1getReceiptsForRecipient/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/sms/getReceiptsForRecipient","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"parameters":{"path":[],"query":[{"name":"recipient","in":"query","required":true,"example":"27821234567","schemaId":"schema_1"},{"name":"startDate","in":"query","required":true,"example":"2026-03-01T00:46:19Z","schemaId":"schema_4"},{"name":"endDate","in":"query","required":true,"example":"2026-09-29T18:46:19Z","schemaId":"schema_5"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ApiKeyAuth","type":"apiKey","name":"X-API-Key","in":"header"}],"scopes":[]}],"responseCodes":["200"],"pointer":"/sms/getReceiptsForRecipient","href":"tracking/getreceiptsforrecipient","openApiOperationId":"getReceiptsForRecipient","summary":"Get receipts for a recipient"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Receipts for the recipient.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/TrackingResponse"}},"schemaId":"components/schemas/TrackingResponse"}],"pointer":"/paths/~1sms~1getReceiptsForRecipient/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/TrackingResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/TrackingResponse"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/tracking/getreceiptsforrecipient"}],"panels":[]}]},"httpPath":"/sms/getReceiptsForRecipient"}],"content":{"contentType":"group","meta":{"name":"Tracking"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Tracking","showPageActions":true},{"nodeType":"markdoc","content":"Query delivery status and delivery receipts."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/sms/trackingMessageStatus","summary":"Track message status","prefix":{"name":"post","color":"post"},"badges":[],"link":"/tracking/trackingmessagestatus","deprecated":false},{"title":"/sms/getReceiptsForRecipient","summary":"Get receipts for a recipient","prefix":{"name":"get","color":"get"},"badges":[],"link":"/tracking/getreceiptsforrecipient","deprecated":false}]}]}]}]}},{"type":"group","label":"Replies","link":"/apis/sms/replies","routeSlug":"/apis/sms/replies","items":[{"label":"Get inbound replies","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/sms/replies/getreply","routeSlug":"/apis/sms/replies/getreply","metadata":{"seo":{"title":"Get inbound replies","description":"Retrieve reply messages received over a time range. Set includeSentSms to attach the last message sent to each replier. Also available over GET."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getReply","name":"Get inbound replies","isWebhook":false,"pointer":"/paths/~1sms~1getReply/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get inbound replies","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Retrieve reply messages received over a time range. Set "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"includeSentSms"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" to attach the last message sent to each replier. Also available over "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"GET"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ApiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"X-API-Key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ReplyRequest","exampleIds":["paths/~1sms~1getReply/post/requestBody/content/application~1json/example"]}},"schemaId":"components/schemas/ReplyRequest","exampleIds":["paths/~1sms~1getReply/post/requestBody/content/application~1json/example"],"pointer":"/paths/~1sms~1getReply/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/sms/getReply","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ApiKeyAuth","type":"apiKey","name":"X-API-Key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/ReplyRequest","exampleIds":["paths/~1sms~1getReply/post/requestBody/content/application~1json/example"]}},"responseCodes":["200"],"pointer":"/sms/getReply","href":"replies/getreply","openApiOperationId":"getReply","summary":"Get inbound replies"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"schemaId":"components/schemas/ReplyRequest","exampleIds":["paths/~1sms~1getReply/post/requestBody/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/ReplyRequest","exampleIds":["paths/~1sms~1getReply/post/requestBody/content/application~1json/example"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Replies ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"509"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" if none found)."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ReplyResponse","exampleIds":["paths/~1sms~1getReply/post/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/ReplyResponse","exampleIds":["paths/~1sms~1getReply/post/responses/200/content/application~1json/example"]}],"pointer":"/paths/~1sms~1getReply/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/ReplyResponse","exampleIds":["paths/~1sms~1getReply/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ReplyResponse","exampleIds":["paths/~1sms~1getReply/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/replies/getreply"}],"panels":[]}]},"httpPath":"/sms/getReply"}],"content":{"contentType":"group","meta":{"name":"Replies"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Replies","showPageActions":true},{"nodeType":"markdoc","content":"Retrieve inbound reply messages."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/sms/getReply","summary":"Get inbound replies","prefix":{"name":"post","color":"post"},"badges":[],"link":"/replies/getreply","deprecated":false}]}]}]}]}},{"type":"group","label":"Scheduling","link":"/apis/sms/scheduling","routeSlug":"/apis/sms/scheduling","items":[{"label":"Cancel scheduled SMS","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/sms/scheduling/deletescheduledsms","routeSlug":"/apis/sms/scheduling/deletescheduledsms","metadata":{"seo":{"title":"Cancel scheduled SMS","description":"Delete scheduled (not-yet-sent) messages by stid + destination, by ctid, by a ctids array, by time range (startDate/endDate), or all of them with deleteall. Also available over GET."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"deleteScheduledSMS","name":"Cancel scheduled SMS","isWebhook":false,"pointer":"/paths/~1sms~1deleteScheduledSMS/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Cancel scheduled SMS","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Delete scheduled (not-yet-sent) messages by "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"stid"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" + "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"destination"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", by "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ctid"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", by a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ctids"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" array, by time range ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"startDate"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"/"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"endDate"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"), or all of them with "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"deleteall"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Also available over "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"GET"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ApiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"X-API-Key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/DeleteScheduledRequest","exampleIds":["paths/~1sms~1deleteScheduledSMS/post/requestBody/content/application~1json/examples/byCtids","paths/~1sms~1deleteScheduledSMS/post/requestBody/content/application~1json/examples/all"]}},"schemaId":"components/schemas/DeleteScheduledRequest","exampleIds":["paths/~1sms~1deleteScheduledSMS/post/requestBody/content/application~1json/examples/byCtids","paths/~1sms~1deleteScheduledSMS/post/requestBody/content/application~1json/examples/all"],"pointer":"/paths/~1sms~1deleteScheduledSMS/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/sms/deleteScheduledSMS","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ApiKeyAuth","type":"apiKey","name":"X-API-Key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/DeleteScheduledRequest","exampleIds":["paths/~1sms~1deleteScheduledSMS/post/requestBody/content/application~1json/examples/byCtids","paths/~1sms~1deleteScheduledSMS/post/requestBody/content/application~1json/examples/all"]}},"responseCodes":["200"],"pointer":"/sms/deleteScheduledSMS","href":"scheduling/deletescheduledsms","openApiOperationId":"deleteScheduledSMS","summary":"Cancel scheduled SMS"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"schemaId":"components/schemas/DeleteScheduledRequest","exampleIds":["paths/~1sms~1deleteScheduledSMS/post/requestBody/content/application~1json/examples/byCtids","paths/~1sms~1deleteScheduledSMS/post/requestBody/content/application~1json/examples/all"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/DeleteScheduledRequest","exampleIds":["paths/~1sms~1deleteScheduledSMS/post/requestBody/content/application~1json/examples/byCtids","paths/~1sms~1deleteScheduledSMS/post/requestBody/content/application~1json/examples/all"]}},"examples":[{},{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Deletion result ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"508"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" deleted, "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"507"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" none found)."},"children":[],"type":"text"}],"type":"paragraph"}],"mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/StatusResponse","exampleIds":["paths/~1sms~1deleteScheduledSMS/post/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/StatusResponse","exampleIds":["paths/~1sms~1deleteScheduledSMS/post/responses/200/content/application~1json/example"]}],"pointer":"/paths/~1sms~1deleteScheduledSMS/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/StatusResponse","exampleIds":["paths/~1sms~1deleteScheduledSMS/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/StatusResponse","exampleIds":["paths/~1sms~1deleteScheduledSMS/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/scheduling/deletescheduledsms"}],"panels":[]}]},"httpPath":"/sms/deleteScheduledSMS"}],"content":{"contentType":"group","meta":{"name":"Scheduling"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Scheduling","showPageActions":true},{"nodeType":"markdoc","content":"Schedule and cancel future SMS."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/sms/deleteScheduledSMS","summary":"Cancel scheduled SMS","prefix":{"name":"post","color":"post"},"badges":[],"link":"/scheduling/deletescheduledsms","deprecated":false}]}]}]}]}},{"type":"group","label":"Account","link":"/apis/sms/account","routeSlug":"/apis/sms/account","items":[{"label":"Get credit balance","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/sms/account/getbalance","routeSlug":"/apis/sms/account/getbalance","metadata":{"seo":{"title":"Get credit balance","description":"Return the current credit balance. Authenticated by the X-API-Key header. A POST must still carry a JSON body: send an empty object ({}) with Content-Type: application/json. Without it the gateway answers HTTP 415 Unsupported Media Type with an HTML error page. Also available over GET, which needs no body."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getBalance","name":"Get credit balance","isWebhook":false,"pointer":"/paths/~1sms~1getBalance/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get credit balance","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Return the current credit balance. Authenticated by the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"X-API-Key"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" header. A "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"POST"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" must still carry a JSON body: send an empty object ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"{}"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":") with "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"Content-Type: application/json"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Without it the gateway answers HTTP "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"415 Unsupported Media Type"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" with an HTML error page. Also available over "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"GET"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", which needs no body."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ApiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"X-API-Key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_6","exampleIds":["paths/~1sms~1getBalance/post/requestBody/content/application~1json/example"]}},"schemaId":"schema_6","exampleIds":["paths/~1sms~1getBalance/post/requestBody/content/application~1json/example"],"pointer":"/paths/~1sms~1getBalance/post/requestBody","description":"An empty JSON object. The API key in the header identifies the account."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/sms/getBalance","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ApiKeyAuth","type":"apiKey","name":"X-API-Key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_6","exampleIds":["paths/~1sms~1getBalance/post/requestBody/content/application~1json/example"]}},"responseCodes":["200"],"pointer":"/sms/getBalance","href":"account/getbalance","openApiOperationId":"getBalance","summary":"Get credit balance"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"schemaId":"schema_6","exampleIds":["paths/~1sms~1getBalance/post/requestBody/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_6","exampleIds":["paths/~1sms~1getBalance/post/requestBody/content/application~1json/example"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Current balance.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/BalanceResponse","exampleIds":["paths/~1sms~1getBalance/post/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/BalanceResponse","exampleIds":["paths/~1sms~1getBalance/post/responses/200/content/application~1json/example"]}],"pointer":"/paths/~1sms~1getBalance/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/BalanceResponse","exampleIds":["paths/~1sms~1getBalance/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/BalanceResponse","exampleIds":["paths/~1sms~1getBalance/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/account/getbalance"}],"panels":[]}]},"httpPath":"/sms/getBalance"},{"label":"Get unsubscribed numbers","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/sms/account/getunsubscribelist","routeSlug":"/apis/sms/account/getunsubscribelist","metadata":{"seo":{"title":"Get unsubscribed numbers","description":"Return numbers that have unsubscribed / been blacklisted over a date range. Recipients who reply STOP, END, CANCEL, QUIT, or UNSUBSCRIBE are blacklisted automatically."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getUnsubscribeList","name":"Get unsubscribed numbers","isWebhook":false,"pointer":"/paths/~1sms~1getUnsubscribelist/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get unsubscribed numbers","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Return numbers that have unsubscribed / been blacklisted over a date range. Recipients who reply "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"STOP"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"END"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"CANCEL"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"QUIT"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":", or "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"UNSUBSCRIBE"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" are blacklisted automatically."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ApiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"X-API-Key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/DateRangeRequest","exampleIds":["paths/~1sms~1getUnsubscribelist/post/requestBody/content/application~1json/example"]}},"schemaId":"components/schemas/DateRangeRequest","exampleIds":["paths/~1sms~1getUnsubscribelist/post/requestBody/content/application~1json/example"],"pointer":"/paths/~1sms~1getUnsubscribelist/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/sms/getUnsubscribelist","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ApiKeyAuth","type":"apiKey","name":"X-API-Key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/DateRangeRequest","exampleIds":["paths/~1sms~1getUnsubscribelist/post/requestBody/content/application~1json/example"]}},"responseCodes":["200"],"pointer":"/sms/getUnsubscribelist","href":"account/getunsubscribelist","openApiOperationId":"getUnsubscribeList","summary":"Get unsubscribed numbers"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"schemaId":"components/schemas/DateRangeRequest","exampleIds":["paths/~1sms~1getUnsubscribelist/post/requestBody/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/DateRangeRequest","exampleIds":["paths/~1sms~1getUnsubscribelist/post/requestBody/content/application~1json/example"]}},"examples":[{}]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Unsubscribed numbers.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_7","exampleIds":["paths/~1sms~1getUnsubscribelist/post/responses/200/content/application~1json/example"]}},"schemaId":"schema_7","exampleIds":["paths/~1sms~1getUnsubscribelist/post/responses/200/content/application~1json/example"]}],"pointer":"/paths/~1sms~1getUnsubscribelist/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_7","exampleIds":["paths/~1sms~1getUnsubscribelist/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_7","exampleIds":["paths/~1sms~1getUnsubscribelist/post/responses/200/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/account/getunsubscribelist"}],"panels":[]}]},"httpPath":"/sms/getUnsubscribelist"},{"label":"Get server time","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/sms/account/getservertime","routeSlug":"/apis/sms/account/getservertime","metadata":{"seo":{"title":"Get server time","description":"Return the gateway's current server time. Authenticated by the X-API-Key header; no request body is required. Also available over GET."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getServerTime","name":"Get server time","isWebhook":false,"pointer":"/paths/~1sms~1getServerTime/post","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get server time","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Return the gateway's current server time. Authenticated by the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"X-API-Key"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" header; no request body is required. Also available over "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"GET"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ApiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"X-API-Key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/sms/getServerTime","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ApiKeyAuth","type":"apiKey","name":"X-API-Key","in":"header"}],"scopes":[]}],"responseCodes":["200"],"pointer":"/sms/getServerTime","href":"account/getservertime","openApiOperationId":"getServerTime","summary":"Get server time"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Server time.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_8"}},"schemaId":"schema_8"}],"pointer":"/paths/~1sms~1getServerTime/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_8","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_8"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/account/getservertime"}],"panels":[]}]},"httpPath":"/sms/getServerTime"},{"label":"Set SMSC status webhook URL","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/sms/account/setsmscstatuscallbackurl","routeSlug":"/apis/sms/account/setsmscstatuscallbackurl","metadata":{"seo":{"title":"Set SMSC status webhook URL","description":"Register a URL that the gateway calls with real-time SMSC connectivity events. See the SMSC status webhook."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"setSmscStatusCallbackUrl","name":"Set SMSC status webhook URL","isWebhook":false,"pointer":"/paths/~1SMS~1client~1setSmscStatusCallbackUrl/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Set SMSC status webhook URL","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Register a URL that the gateway calls with real-time SMSC connectivity events. See the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"href":"#tag/webhooks"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"SMSC status webhook"},"children":[],"type":"text"}],"type":"link"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ApiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"X-API-Key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"callbackUrl","in":"query","schemaId":"schema_9","description":"URL-encoded endpoint that will receive SMSC status events.","required":true}],"pointer":"/paths/~1SMS~1client~1setSmscStatusCallbackUrl/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/SMS/client/setSmscStatusCallbackUrl","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://www.payless4sms.co.za","description":"API-key host"}],"parameters":{"path":[],"query":[{"name":"callbackUrl","in":"query","required":true,"example":"https%3A%2F%2Fyour-server.com%2Fsmsc-status","schemaId":"schema_9"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ApiKeyAuth","type":"apiKey","name":"X-API-Key","in":"header"}],"scopes":[]}],"responseCodes":["200"],"pointer":"/SMS/client/setSmscStatusCallbackUrl","href":"account/setsmscstatuscallbackurl","openApiOperationId":"setSmscStatusCallbackUrl","summary":"Set SMSC status webhook URL"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://www.payless4sms.co.za","description":"API-key host"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Callback URL set.","mediaType":"text/plain","mediaTypes":["text/plain"],"mediaTypeContent":{"text/plain":{"schemaId":"schema_10"}},"schemaId":"schema_10"}],"pointer":"/paths/~1SMS~1client~1setSmscStatusCallbackUrl/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_10","mediaTypes":["text/plain"],"mediaTypeContent":{"text/plain":{"schemaId":"schema_10"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/account/setsmscstatuscallbackurl"}],"panels":[]}]},"httpPath":"/SMS/client/setSmscStatusCallbackUrl"},{"label":"Get current SMSC status","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/sms/account/getsmscstatus","routeSlug":"/apis/sms/account/getsmscstatus","metadata":{"seo":{"title":"Get current SMSC status","description":"Return the current SMSC connectivity status."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"getSmscStatus","name":"Get current SMSC status","isWebhook":false,"pointer":"/paths/~1SMS~1client~1getSmscStatus/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get current SMSC status","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Return the current SMSC connectivity status."},{"nodeType":"security","requirements":[{"schemes":[{"name":"ApiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"X-API-Key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/SMS/client/getSmscStatus","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://www.payless4sms.co.za","description":"API-key host"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ApiKeyAuth","type":"apiKey","name":"X-API-Key","in":"header"}],"scopes":[]}],"responseCodes":["200"],"pointer":"/SMS/client/getSmscStatus","href":"account/getsmscstatus","openApiOperationId":"getSmscStatus","summary":"Get current SMSC status"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://www.payless4sms.co.za","description":"API-key host"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Current SMSC status.","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_11"}},"schemaId":"schema_11"}],"pointer":"/paths/~1SMS~1client~1getSmscStatus/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_11","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_11"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/account/getsmscstatus"}],"panels":[]}]},"httpPath":"/SMS/client/getSmscStatus"}],"content":{"contentType":"group","meta":{"name":"Account"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Account","showPageActions":true},{"nodeType":"markdoc","content":"Credit balance, server time, unsubscribes, and SMSC status."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/sms/getBalance","summary":"Get credit balance","prefix":{"name":"post","color":"post"},"badges":[],"link":"/account/getbalance","deprecated":false},{"title":"/sms/getUnsubscribelist","summary":"Get unsubscribed numbers","prefix":{"name":"post","color":"post"},"badges":[],"link":"/account/getunsubscribelist","deprecated":false},{"title":"/sms/getServerTime","summary":"Get server time","prefix":{"name":"post","color":"post"},"badges":[],"link":"/account/getservertime","deprecated":false},{"title":"/SMS/client/setSmscStatusCallbackUrl","summary":"Set SMSC status webhook URL","prefix":{"name":"get","color":"get"},"badges":[],"link":"/account/setsmscstatuscallbackurl","deprecated":false},{"title":"/SMS/client/getSmscStatus","summary":"Get current SMSC status","prefix":{"name":"get","color":"get"},"badges":[],"link":"/account/getsmscstatus","deprecated":false}]}]}]}]}},{"type":"group","label":"Webhooks","link":"/apis/sms/webhooks","routeSlug":"/apis/sms/webhooks","items":[{"label":"Delivery receipt","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/sms/webhooks/ondeliveryreceipt","routeSlug":"/apis/sms/webhooks/ondeliveryreceipt","metadata":{"seo":{"title":"Delivery receipt","description":"When a receiptCallBackURL is configured, the gateway performs an HTTP GET to it as delivery status changes. Return HTTP 200. Undelivered callbacks are retried for up to 24 hours (2m, 4m, 8m … 1440m)."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"onDeliveryReceipt","name":"Delivery receipt","isWebhook":true,"pointer":"/paths/deliveryReceipt/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Delivery receipt","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"When a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"receiptCallBackURL"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is configured, the gateway performs an HTTP GET to it as delivery status changes. Return HTTP 200. Undelivered callbacks are retried for up to 24 hours (2m, 4m, 8m … 1440m)."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ApiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"X-API-Key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"stid","in":"query","schemaId":"schema_12"},{"name":"destination","in":"query","schemaId":"schema_13"},{"name":"smsID","in":"query","schemaId":"schema_14"},{"name":"ctid","in":"query","schemaId":"schema_15"},{"name":"gstid","in":"query","schemaId":"schema_16"},{"name":"statusCode","in":"query","schemaId":"schema_17"},{"name":"statusDesc","in":"query","schemaId":"schema_18"},{"name":"senttime","in":"query","schemaId":"schema_19"},{"name":"deliveredtime","in":"query","schemaId":"schema_20"}],"pointer":"/paths/deliveryReceipt/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"GET","path":"deliveryReceipt","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"parameters":{"path":[],"query":[{"name":"stid","in":"query","example":"7491d356-0205-43fb-b723-f451c2ebf776","schemaId":"schema_12"},{"name":"destination","in":"query","example":"+27821234567","schemaId":"schema_13"},{"name":"smsID","in":"query","example":"d3f44eef-0205-43fb-b723-f451c2ebf776","schemaId":"schema_14"},{"name":"ctid","in":"query","example":"order-12345","schemaId":"schema_15"},{"name":"gstid","in":"query","example":"2a987d4e-0205-43fb-b723-f451c2ebf776","schemaId":"schema_16"},{"name":"statusCode","in":"query","example":"500","schemaId":"schema_17"},{"name":"statusDesc","in":"query","example":"Message Sent.","schemaId":"schema_18"},{"name":"senttime","in":"query","example":"2026-10-20T10:42:08.000+02:00","schemaId":"schema_19"},{"name":"deliveredtime","in":"query","example":"2026-10-20T10:42:20.000+02:00","schemaId":"schema_20"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ApiKeyAuth","type":"apiKey","name":"X-API-Key","in":"header"}],"scopes":[]}],"responseCodes":["200"],"pointer":"deliveryReceipt","href":"webhooks/ondeliveryreceipt","openApiOperationId":"onDeliveryReceipt","summary":"Delivery receipt"},"isWebhook":true,"hideReplay":false,"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Acknowledged."}],"pointer":"/paths/deliveryReceipt/get/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/webhooks/ondeliveryreceipt"}],"panels":[]}]},"httpPath":"deliveryReceipt"},{"label":"Inbound reply","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/sms/webhooks/onreply","routeSlug":"/apis/sms/webhooks/onreply","metadata":{"seo":{"title":"Inbound reply","description":"When a replyCallBackURL is configured, the gateway forwards inbound replies. This shows the POST form; a GET form (?gstid=&ctid=&date=&from=&message=) is also supported. Return HTTP 200."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"onReply","name":"Inbound reply","isWebhook":true,"pointer":"/paths/reply/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Inbound reply","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"When a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"replyCallBackURL"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is configured, the gateway forwards inbound replies. This shows the POST form; a GET form ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"?gstid=&ctid=&date=&from=&message="},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":") is also supported. Return HTTP 200."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ApiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"X-API-Key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","isEvent":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_21"}},"schemaId":"schema_21","pointer":"/paths/reply/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"reply","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ApiKeyAuth","type":"apiKey","name":"X-API-Key","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_21"}},"responseCodes":["200"],"pointer":"reply","href":"webhooks/onreply","openApiOperationId":"onReply","summary":"Inbound reply"},"isWebhook":true,"hideReplay":false,"schemaId":"schema_21","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_21"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Acknowledged."}],"pointer":"/paths/reply/post/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/webhooks/onreply"}],"panels":[]}]},"httpPath":"reply"},{"label":"SMSC status","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/sms/webhooks/onsmscstatus","routeSlug":"/apis/sms/webhooks/onsmscstatus","metadata":{"seo":{"title":"SMSC status","description":"Real-time SMSC connectivity events sent to the URL registered via Set SMSC status webhook URL. Return HTTP 200."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"onSmscStatus","name":"SMSC status","isWebhook":true,"pointer":"/paths/smscStatus/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"SMSC status","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Real-time SMSC connectivity events sent to the URL registered via "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"href":"#operation/setSmscStatusCallbackUrl"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Set SMSC status webhook URL"},"children":[],"type":"text"}],"type":"link"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Return HTTP 200."},"children":[],"type":"text"}],"type":"paragraph"}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"ApiKeyAuth","scopes":[],"type":"apiKey","in":"header","paramName":"X-API-Key","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}]}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"smsc","in":"query","schemaId":"schema_22"},{"name":"event","in":"query","schemaId":"schema_23"},{"name":"status","in":"query","schemaId":"schema_24"},{"name":"timestamp","in":"query","schemaId":"schema_25","description":"Unix epoch seconds."},{"name":"clientref","in":"query","schemaId":"schema_26"}],"pointer":"/paths/smscStatus/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"GET","path":"smscStatus","servers":[{"url":"/_mock/apis/sms","description":"Mock server","isMockServer":true},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"parameters":{"path":[],"query":[{"name":"smsc","in":"query","example":"SMSC1","schemaId":"schema_22"},{"name":"event","in":"query","example":"down","schemaId":"schema_23"},{"name":"status","in":"query","example":"0","schemaId":"schema_24"},{"name":"timestamp","in":"query","example":"1711286400","schemaId":"schema_25"},{"name":"clientref","in":"query","example":"your-client-ref","schemaId":"schema_26"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"ApiKeyAuth","type":"apiKey","name":"X-API-Key","in":"header"}],"scopes":[]}],"responseCodes":["200"],"pointer":"smscStatus","href":"webhooks/onsmscstatus","openApiOperationId":"onSmscStatus","summary":"SMSC status"},"isWebhook":true,"hideReplay":false,"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Acknowledged."}],"pointer":"/paths/smscStatus/get/responses"}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/webhooks/onsmscstatus"}],"panels":[]}]},"httpPath":"smscStatus"}],"content":{"contentType":"group","meta":{"name":"Webhooks"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Webhooks","showPageActions":true},{"nodeType":"markdoc","content":"Callbacks the gateway sends to your server (delivery receipts, replies, SMSC status)."}],"panels":[{"children":[{"kind":"group-items","title":"Webhooks","titleTranslationKey":"webhooks","items":[{"title":"deliveryReceipt","summary":"Delivery receipt","prefix":{"name":"get","color":"get"},"badges":[],"link":"/webhooks/ondeliveryreceipt","deprecated":false},{"title":"reply","summary":"Inbound reply","prefix":{"name":"post","color":"post"},"badges":[],"link":"/webhooks/onreply","deprecated":false},{"title":"smscStatus","summary":"SMSC status","prefix":{"name":"get","color":"get"},"badges":[],"link":"/webhooks/onsmscstatus","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/Settings":{"id":"components/schemas/Settings","kind":"json-schema","title":"Settings","data":{"type":"object","description":"Per-batch options.","properties":{"gctid":{"type":"string","description":"Client global tracking id for the whole request; must be unique per day.","example":"batch-2026-05-21-001"},"ctidunique":{"type":"boolean","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Enforce unique "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ctid"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" within the batch and against today's records."},"children":[],"type":"text"}],"type":"paragraph"}],"example":false},"scheduledSmsDate":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Schedule the whole batch ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"YYYY-MM-DDThh:mm:ssZ"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":")."},"children":[],"type":"text"}],"type":"paragraph"}],"example":"2026-05-22T09:36:26+02:00"},"receiptCallBackURL":{"type":"string","description":"URL that receives delivery-receipt callbacks.","example":"https://your-server.com/receipts"},"replyCallBackURL":{"type":"string","description":"URL that receives inbound-reply callbacks.","example":"https://your-server.com/replies"},"dsm":{"type":"string","enum":["true","false"],"description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Don't save message — store a masked record only."},"children":[],"type":"text"}],"type":"paragraph"}],"example":"false"},"checkCreditsLater":{"type":"boolean","description":"Defer the credit check; the batch is accepted immediately.","example":false}}}},"components/schemas/Recipient":{"id":"components/schemas/Recipient","kind":"json-schema","title":"Recipient","data":{"type":"object","required":["to"],"properties":{"to":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Destination MSISDN. Accepts country-code form ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"27821234567"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"), 9-digit ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"821234567"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"), or leading-zero ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"0821234567"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":")."},"children":[],"type":"text"}],"type":"paragraph"}],"example":"27821234567"},"identifier":{"type":"string","description":"Optional label for the recipient (name or reason).","example":"John"},"businessUnit":{"type":"string","description":"Business unit for this recipient (precedence lowest).","example":"sales"}}}},"components/schemas/Message":{"id":"components/schemas/Message","kind":"json-schema","title":"Message","data":{"type":"object","required":["messageText","recipients"],"properties":{"ctid":{"type":"string","description":"Client tracking id for this message. Use a GUID for reliable tracking.","example":"210420160916"},"messageText":{"type":"string","description":"The message body. GSM-7 unless the request is Unicode.","example":"Hello from eCommunicate"},"recipients":{"type":"array","items":{"$ref":"#/components/schemas/Recipient"}},"businessUnit":{"type":"string","description":"Business unit for this message (precedence above recipient).","example":"sales"},"scheduledSmsDate":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Schedule only this message ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"YYYY-MM-DDThh:mm:ssZ"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":")."},"children":[],"type":"text"}],"type":"paragraph"}],"example":"2026-05-22T09:36:26+02:00"}}}},"components/schemas/SendRequest":{"id":"components/schemas/SendRequest","kind":"json-schema","title":"SendRequest","data":{"type":"object","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Provide "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"either"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" a "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"messages"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" array (bulk) "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"or"},"children":[],"type":"text"}],"type":"strong"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" top-level "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ctid"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"/"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"recipients"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"/"},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"messageText"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" (same text to one or many). "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"settings"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" is optional and carries per-batch options."},"children":[],"type":"text"}],"type":"paragraph"}],"properties":{"settings":{"$ref":"#/components/schemas/Settings"},"priority":{"type":"string","enum":["true","false"],"description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"true"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" = transactional/premium routing; "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"false"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" = regular."},"children":[],"type":"text"}],"type":"paragraph"}],"default":"false","example":"false"},"otp":{"type":"string","enum":["true","false"],"description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"OTP flag. Pair with the "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"otpToken"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" header for priority delivery."},"children":[],"type":"text"}],"type":"paragraph"}],"example":"false"},"unicode":{"type":"string","enum":["true","false"],"description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Send as a Unicode (UCS-2) message. Legacy alias "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"isUnicode"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}],"example":"false"},"businessUnit":{"type":"string","description":"Batch-level business unit (highest precedence).","example":"sales"},"earliestSendTime":{"type":"string","description":"Do not send before this time of day.","example":"8:00am"},"latestSendTime":{"type":"string","description":"Do not send after this time of day.","example":"5:00pm"},"messages":{"type":"array","description":"Bulk format. Omit when using the top-level single form.","items":{"$ref":"#/components/schemas/Message"}},"ctid":{"type":"string","description":"Top-level client tracking id (single/same-text form).","example":"210420160911"},"recipients":{"type":"array","description":"Top-level recipients (same-text-to-many form).","items":{"$ref":"#/components/schemas/Recipient"}},"messageText":{"type":"string","description":"Top-level message text (single/same-text form).","example":"Hello everyone"}}}},"components/schemas/SendResponse":{"id":"components/schemas/SendResponse","kind":"json-schema","title":"SendResponse","data":{"type":"object","properties":{"statusCode":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Outcome code. "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"100"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" = accepted, "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"201"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" = scheduled, "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"137"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" = insufficient credit."},"children":[],"type":"text"}],"type":"paragraph"}],"example":"100"},"statusDescription":{"type":"string","example":"MESSAGE_ACCEPTED_FOR_PROCESSING"},"completionTime":{"type":"string","example":"2026-05-21T21:22:26+02:00"},"gstid":{"type":"string","description":"Global system tracking id (whole request).","example":"3e99e8d9-50bf-469d-9fd4-d6c10cf5b152"},"gctid":{"type":"string","description":"Global client tracking id, echoed if supplied.","example":"abcd"},"stid":{"type":"string","description":"System tracking id (single-message responses).","example":"eff47ce1-9a88-46b2-8fd8-1f9bedc2b4e1"},"ctid":{"type":"string","description":"Client tracking id, echoed if supplied.","example":"order-12345"},"eSTId":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Error system tracking id; present when validation fails, else "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"null"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"."},"children":[],"type":"text"}],"type":"paragraph"}],"example":"null"},"acceptedMessageCount":{"type":"string","description":"Number of messages accepted (resend/failure-recovery responses).","example":"1"}}}},"components/schemas/TrackingRequest":{"id":"components/schemas/TrackingRequest","kind":"json-schema","title":"TrackingRequest","data":{"type":"object","description":"Supply one selection filter.","properties":{"startDate":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Range start ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"yyyy-mm-dd hh:mm:ss"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":")."},"children":[],"type":"text"}],"type":"paragraph"}],"example":"2026-04-22 00:25:43"},"endDate":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Range end ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"yyyy-mm-dd hh:mm:ss"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":")."},"children":[],"type":"text"}],"type":"paragraph"}],"example":"2026-04-23 18:25:43"},"ctid":{"type":"string","example":"042220160238"},"stid":{"type":"string","example":"eff47ce1-9a88-46b2-8fd8-1f9bedc2b4e1"},"gctid":{"type":"string","example":"042220160236"},"gstid":{"type":"string","example":"700d7d5b-0205-43fb-b723-f451c2ebf776"},"sentDate":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Send date for id-based lookups ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"yyyy-mm-dd"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":")."},"children":[],"type":"text"}],"type":"paragraph"}],"example":"2026-04-22"},"destination":{"type":"string","example":"27821234567"},"showctid":{"type":"string","enum":["true","false"],"example":"true"},"showfinalstatus":{"type":"string","enum":["true","false"],"description":"Return only Delivered/Undelivered/Rejected states.","example":"true"},"isScheduledSms":{"type":"string","enum":["true","false"],"example":"false"}}}},"components/schemas/Receipt":{"id":"components/schemas/Receipt","kind":"json-schema","title":"Receipt","data":{"type":"object","properties":{"statusCode":{"type":"string","example":"500"},"statusDescription":{"type":"string","example":"Message Sent."},"destination":{"type":"string","example":"+27821234567"},"stid":{"type":"string","example":"dd26dc95-0205-43fb-b723-f451c2ebf776"},"ctid":{"type":"string","example":"order-12345"},"identifier":{"type":"string","example":"John"},"sentTime":{"type":"string","example":"2026-02-20T09:08:39.000+02:00"},"deliveredTime":{"type":"string","example":"2026-02-20T09:08:45.000+02:00"},"messageText":{"type":"string","example":"Hello from eCommunicate"},"msgcost":{"type":"string","example":"1"},"scheduledDate":{"type":"string","example":"2026-04-15 02:00:00.0"}}}},"components/schemas/TrackingResponse":{"id":"components/schemas/TrackingResponse","kind":"json-schema","title":"TrackingResponse","data":{"type":"object","properties":{"statusCode":{"type":"string","example":"224"},"statusDescription":{"type":"string","example":"REQUEST_COMPLETED"},"completionTime":{"type":"string","example":"2026-04-03T19:06:14.000+02:00"},"gstid":{"type":"string","example":"0a6a3de7-b974-42d0-af9e-9c23473b09b9"},"gctid":{"type":"string","example":"042220160236"},"receipts":{"type":"array","items":{"$ref":"#/components/schemas/Receipt"}}}}},"components/schemas/DeleteScheduledRequest":{"id":"components/schemas/DeleteScheduledRequest","kind":"json-schema","title":"DeleteScheduledRequest","data":{"type":"object","properties":{"stid":{"type":"string","example":"0a6a3de7-b974-42d0-af9e-9c23473b09b9"},"destination":{"type":"string","example":"27821234567"},"ctid":{"type":"string","example":"042220160337"},"ctids":{"type":"array","items":{"type":"string"},"example":["042220160337","042220160340"]},"startDate":{"type":"string","example":"2026-04-22T00:45:26+02:00"},"endDate":{"type":"string","example":"2026-04-22T23:45:26+02:00"},"deleteall":{"type":"string","enum":["true","false"],"example":"true"}}}},"components/schemas/ReplyRequest":{"id":"components/schemas/ReplyRequest","kind":"json-schema","title":"ReplyRequest","data":{"type":"object","properties":{"startdate":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Range start ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"yyyy-mm-dd hh:mm:ss"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":")."},"children":[],"type":"text"}],"type":"paragraph"}],"example":"2026-04-18 14:48:16"},"enddate":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Range end ("},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"yyyy-mm-dd hh:mm:ss"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":")."},"children":[],"type":"text"}],"type":"paragraph"}],"example":"2026-04-18 17:48:16"},"includeSentSms":{"type":"string","enum":["true","false"],"description":"Attach the last message sent to each replier.","default":"true","example":"true"}}}},"components/schemas/Reply":{"id":"components/schemas/Reply","kind":"json-schema","title":"Reply","data":{"type":"object","properties":{"number":{"type":"string","example":"27821234567"},"identifier":{"type":"string","example":"John"},"messageText":{"type":"string","example":"Hello testing"},"replyReceived":{"type":"string","example":"2026-05-21T21:22:26+02:00"},"lastSentMessage":{"type":"string","example":"Hello"},"timeMessageSent":{"type":"string","example":"2026-05-21T20:22:26+02:00"},"ctid":{"type":"string","example":"order-12345"},"replyId":{"type":"string","example":"1960522"}}}},"components/schemas/ReplyResponse":{"id":"components/schemas/ReplyResponse","kind":"json-schema","title":"ReplyResponse","data":{"type":"object","properties":{"replies":{"type":"array","items":{"$ref":"#/components/schemas/Reply"}},"statusCode":{"type":"string","example":"001"},"statusDescription":{"type":"string","example":"REQUEST_COMPLETED"},"completionTime":{"type":"string","example":"2026-05-21T21:22:26+02:00"}}}},"components/schemas/DateRangeRequest":{"id":"components/schemas/DateRangeRequest","kind":"json-schema","title":"DateRangeRequest","data":{"type":"object","properties":{"startDate":{"type":"string","example":"2026-04-01"},"endDate":{"type":"string","example":"2026-04-08"}}}},"components/schemas/BalanceResponse":{"id":"components/schemas/BalanceResponse","kind":"json-schema","title":"BalanceResponse","data":{"type":"object","properties":{"statusCode":{"type":"string","example":"001"},"statusDescription":{"type":"string","example":"Request Completed"},"currentBalance":{"type":"string","example":"210"},"testGateway":{"type":"string","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"Present and "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"true"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":" only for test accounts (messages are not really sent)."},"children":[],"type":"text"}],"type":"paragraph"}],"example":"true"}}}},"components/schemas/StatusResponse":{"id":"components/schemas/StatusResponse","kind":"json-schema","title":"StatusResponse","data":{"type":"object","properties":{"statusCode":{"type":"string","example":"001"},"statusDescription":{"type":"string","example":"Request Completed"},"completionTime":{"type":"string","example":"2026-05-21T21:22:26+02:00"},"eSTId":{"type":"string","example":"476f0674-b8ca-49ea-b971-0c92c784c026"}}}},"schema_0":{"kind":"json-schema","data":{"type":"string","example":"7C84AABBCCDDEEFF"},"id":"schema_0"},"schema_1":{"kind":"json-schema","data":{"type":"string","example":"27821234567"},"id":"schema_1"},"schema_2":{"kind":"json-schema","data":{"type":"string","example":"Hello%20from%20eCommunicate"},"id":"schema_2"},"schema_3":{"kind":"json-schema","data":{"type":"string","enum":["true","false"],"default":"false","example":"false"},"id":"schema_3"},"schema_4":{"kind":"json-schema","data":{"type":"string","example":"2026-03-01T00:46:19Z"},"id":"schema_4"},"schema_5":{"kind":"json-schema","data":{"type":"string","example":"2026-09-29T18:46:19Z"},"id":"schema_5"},"schema_6":{"kind":"json-schema","data":{"type":"object","additionalProperties":false},"id":"schema_6"},"schema_7":{"kind":"json-schema","data":{"type":"object","properties":{"unsubscribers":{"type":"array","items":{"type":"object","properties":{"number":{"type":"string","example":"27821234567"}}}},"status":{"type":"string","example":"Blacklisted List"}}},"id":"schema_7"},"schema_8":{"kind":"json-schema","data":{"type":"object","properties":{"statusCode":{"type":"string","example":"001"},"statusDescription":{"type":"string","example":"Request Completed"},"serverTime":{"type":"string","example":"2026-10-20T13:01:25.000+02:00"}}},"id":"schema_8"},"schema_9":{"kind":"json-schema","data":{"type":"string","example":"https%3A%2F%2Fyour-server.com%2Fsmsc-status"},"id":"schema_9"},"schema_10":{"kind":"json-schema","data":{"type":"string","example":"Callback URL set successfully"},"id":"schema_10"},"schema_11":{"kind":"json-schema","data":{"type":"object","properties":{"smsc":{"type":"string","example":"vtel-off"},"status":{"type":"string","example":"online 544618s"},"flag":{"type":"string","example":"1"}}},"id":"schema_11"},"schema_12":{"kind":"json-schema","data":{"type":"string","example":"7491d356-0205-43fb-b723-f451c2ebf776"},"id":"schema_12"},"schema_13":{"kind":"json-schema","data":{"type":"string","example":"+27821234567"},"id":"schema_13"},"schema_14":{"kind":"json-schema","data":{"type":"string","example":"d3f44eef-0205-43fb-b723-f451c2ebf776"},"id":"schema_14"},"schema_15":{"kind":"json-schema","data":{"type":"string","example":"order-12345"},"id":"schema_15"},"schema_16":{"kind":"json-schema","data":{"type":"string","example":"2a987d4e-0205-43fb-b723-f451c2ebf776"},"id":"schema_16"},"schema_17":{"kind":"json-schema","data":{"type":"string","example":"500"},"id":"schema_17"},"schema_18":{"kind":"json-schema","data":{"type":"string","example":"Message Sent."},"id":"schema_18"},"schema_19":{"kind":"json-schema","data":{"type":"string","example":"2026-10-20T10:42:08.000+02:00"},"id":"schema_19"},"schema_20":{"kind":"json-schema","data":{"type":"string","example":"2026-10-20T10:42:20.000+02:00"},"id":"schema_20"},"schema_21":{"kind":"json-schema","data":{"type":"object","properties":{"time":{"type":"string","example":"2026-04-22T23:45:26+02:00"},"from":{"type":"string","example":"27821234567"},"reply":{"type":"string","example":"Yes, confirm"}}},"id":"schema_21"},"schema_22":{"kind":"json-schema","data":{"type":"string","example":"SMSC1"},"id":"schema_22"},"schema_23":{"kind":"json-schema","data":{"type":"string","enum":["online","down"],"example":"down"},"id":"schema_23"},"schema_24":{"kind":"json-schema","data":{"type":"string","example":"0"},"id":"schema_24"},"schema_25":{"kind":"json-schema","data":{"type":"string","example":"1711286400"},"id":"schema_25"},"schema_26":{"kind":"json-schema","data":{"type":"string","example":"your-client-ref"},"id":"schema_26"}},"exampleStore":{"paths/~1sms~1json/post/requestBody/content/application~1json/examples/singleRecipient":{"value":{"messages":[{"ctid":"210420160916","recipients":[{"to":"27821234567","identifier":"John"}],"messageText":"Hello from eCommunicate"}]},"key":"singleRecipient","summary":"One message to one recipient","id":"paths/~1sms~1json/post/requestBody/content/application~1json/examples/singleRecipient"},"paths/~1sms~1json/post/requestBody/content/application~1json/examples/sameTextManyRecipients":{"value":{"ctid":"210420160911","recipients":[{"to":"27821234567","identifier":"abc"},{"to":"27821234568","identifier":"123"}],"messageText":"Hello everyone"},"key":"sameTextManyRecipients","summary":"Same text to many recipients","id":"paths/~1sms~1json/post/requestBody/content/application~1json/examples/sameTextManyRecipients"},"paths/~1sms~1json/post/requestBody/content/application~1json/examples/withCallbacks":{"value":{"settings":{"receiptCallBackURL":"https://your-server.com/receipts","replyCallBackURL":"https://your-server.com/replies"},"priority":"true","messages":[{"ctid":"2104201609161452","recipients":[{"to":"27821234567","identifier":"Andries"}],"messageText":"Your appointment is confirmed"}]},"key":"withCallbacks","summary":"With delivery-receipt and reply callbacks","id":"paths/~1sms~1json/post/requestBody/content/application~1json/examples/withCallbacks"},"paths/~1sms~1json/post/responses/200/content/application~1json/examples/accepted":{"value":{"gctid":"abcd","gstid":"3e99e8d9-50bf-469d-9fd4-d6c10cf5b152","statusCode":"100","statusDescription":"MESSAGE_ACCEPTED_FOR_PROCESSING","completionTime":"2026-05-21T21:22:26+02:00"},"key":"accepted","summary":"Accepted for processing","id":"paths/~1sms~1json/post/responses/200/content/application~1json/examples/accepted"},"paths/~1sms~1json/post/responses/200/content/application~1json/examples/insufficientCredit":{"value":{"statusCode":"137","statusDescription":"Insufficient Credit","completionTime":"2026-05-21T21:22:26+02:00","eSTId":"d0e1a9e5-1ace-4c33-b4bf-79b46bed412e"},"key":"insufficientCredit","summary":"Insufficient credit","id":"paths/~1sms~1json/post/responses/200/content/application~1json/examples/insufficientCredit"},"paths/~1sms~1json/post/responses/400/content/application~1json/example":{"value":{"statusCode":"022","statusDescription":"Invalid Parameters","completionTime":"2026-05-21T21:22:26+02:00","eSTId":"476f0674-b8ca-49ea-b971-0c92c784c026"},"id":"paths/~1sms~1json/post/responses/400/content/application~1json/example"},"paths/~1sms~1trackingMessageStatus/post/requestBody/content/application~1json/examples/byCtid":{"value":{"ctid":"042220160238","sentDate":"2026-04-22","showfinalstatus":"true"},"key":"byCtid","summary":"By client tracking id","id":"paths/~1sms~1trackingMessageStatus/post/requestBody/content/application~1json/examples/byCtid"},"paths/~1sms~1trackingMessageStatus/post/requestBody/content/application~1json/examples/byTimeRange":{"value":{"startDate":"2026-04-22 00:25:43","endDate":"2026-04-23 18:25:43"},"key":"byTimeRange","summary":"By time range","id":"paths/~1sms~1trackingMessageStatus/post/requestBody/content/application~1json/examples/byTimeRange"},"paths/~1sms~1trackingMessageStatus/post/responses/200/content/application~1json/example":{"value":{"gstid":"0a6a3de7-b974-42d0-af9e-9c23473b09b9","statusCode":"224","statusDescription":"REQUEST_COMPLETED","completionTime":"2026-04-03T19:06:14.000+02:00","receipts":[{"statusCode":"500","statusDescription":"Message Sent.","destination":"+27821234567","stid":"dd26dc95-0205-43fb-b723-f451c2ebf776","identifier":"John","sentTime":"2026-02-20T09:08:39.000+02:00"}]},"id":"paths/~1sms~1trackingMessageStatus/post/responses/200/content/application~1json/example"},"paths/~1sms~1getReply/post/requestBody/content/application~1json/example":{"value":{"startdate":"2026-04-18 14:48:16","enddate":"2026-04-18 17:48:16","includeSentSms":"true"},"id":"paths/~1sms~1getReply/post/requestBody/content/application~1json/example"},"paths/~1sms~1getReply/post/responses/200/content/application~1json/example":{"value":{"replies":[{"number":"27821234567","identifier":"John","messageText":"Hello testing","replyReceived":"2026-05-21T21:22:26+02:00","lastSentMessage":"Hello","timeMessageSent":"2026-05-21T20:22:26+02:00","ctid":"ccvae","replyId":"1960522"}],"statusCode":"001","statusDescription":"REQUEST_COMPLETED","completionTime":"2026-05-21T21:22:26+02:00"},"id":"paths/~1sms~1getReply/post/responses/200/content/application~1json/example"},"paths/~1sms~1deleteScheduledSMS/post/requestBody/content/application~1json/examples/byCtids":{"value":{"ctids":["042220160337","042220160340"]},"key":"byCtids","summary":"By a list of client tracking ids","id":"paths/~1sms~1deleteScheduledSMS/post/requestBody/content/application~1json/examples/byCtids"},"paths/~1sms~1deleteScheduledSMS/post/requestBody/content/application~1json/examples/all":{"value":{"deleteall":"true"},"key":"all","summary":"Delete all scheduled messages","id":"paths/~1sms~1deleteScheduledSMS/post/requestBody/content/application~1json/examples/all"},"paths/~1sms~1deleteScheduledSMS/post/responses/200/content/application~1json/example":{"value":{"statusCode":"508","statusDescription":"SCHEDULED_MESSAGES_DELETED","completionTime":"2026-04-22T13:41:17.000+02:00"},"id":"paths/~1sms~1deleteScheduledSMS/post/responses/200/content/application~1json/example"},"paths/~1sms~1getBalance/post/requestBody/content/application~1json/example":{"value":{},"id":"paths/~1sms~1getBalance/post/requestBody/content/application~1json/example"},"paths/~1sms~1getBalance/post/responses/200/content/application~1json/example":{"value":{"statusCode":"001","statusDescription":"Request Completed","currentBalance":"210"},"id":"paths/~1sms~1getBalance/post/responses/200/content/application~1json/example"},"paths/~1sms~1getUnsubscribelist/post/requestBody/content/application~1json/example":{"value":{"startDate":"2026-04-01","endDate":"2026-04-08"},"id":"paths/~1sms~1getUnsubscribelist/post/requestBody/content/application~1json/example"},"paths/~1sms~1getUnsubscribelist/post/responses/200/content/application~1json/example":{"value":{"unsubscribers":[{"number":"27821234567"}],"status":"Blacklisted List"},"id":"paths/~1sms~1getUnsubscribelist/post/responses/200/content/application~1json/example"}},"securitySchemeStore":{"ApiKeyAuth":{"id":"ApiKeyAuth","type":"apiKey","description":[{"$$mdtype":"Node","attributes":{},"children":[{"$$mdtype":"Node","inline":true,"attributes":{"content":"API key issued to a client or reseller, prefixed "},"children":[],"type":"text"},{"$$mdtype":"Node","inline":true,"attributes":{"content":"ecomm_"},"children":[],"type":"code"},{"$$mdtype":"Node","inline":true,"attributes":{"content":". Required on every request. Generate and revoke keys from the client portal."},"children":[],"type":"text"}],"type":"paragraph"}],"in":"header","paramName":"X-API-Key"}},"specVersion":"3.1.0","servers":[{"url":"/_mock/apis/sms","isMockServer":true,"description":"Mock server"},{"url":"https://api.payless4sms.co.za","description":"Production"},{"url":"https://api.ecommunicate.co.za","description":"Production (alternate host)"}],"specType":"openapi"},"options":{"hideReplay":false,"layout":"three-panel","schemasExpansionLevel":0,"jsonSamplesExpandLevel":0,"showExtensions":false,"mockServer":{"url":"/_mock/apis/sms","position":"first","description":"Mock server"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/apis/sms.json?download"},{"url":"/_bundle/apis/sms.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false,"asyncapi":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"SMS Gateway API","description":"The eCommunicate **SMS Gateway** (Payless4SMS) is a direct HTTP/JSON API for sending single and bulk SMS, tracking delivery, receiving replies and delivery receipts, scheduling messages, and managing your credit balance.\n\nIt is a standalone product, separate from the WhatsApp-centric [Omnichannel Integration API](./omnichannel.yaml). Use this API when you need plain SMS to any mobile network.\n\n## Authentication\n\nEvery request is authenticated with an **API key**: send an `X-API-Key: ecomm_...` header. Generate and revoke keys from the client portal (**API Keys**). Always use HTTPS so the key is never sent in the clear.\n\n## High-priority (OTP) traffic\n\nFor one-time-pin traffic that must deliver in 5–10 seconds, request an OTP token from support and send it as an `otpToken` header. Valid tokens are routed to a dedicated priority queue with automatic backup-gateway fallback. If the response `statusCode` is `502`, resend via your backup gateway until it returns to `100`.\n\n## Status codes\n\nResponses carry a string `statusCode` and `statusDescription`. Common values: `001` Request Completed · `021` Authentication Failed · `022` Invalid Parameters · `023` Missing Parameters · `100` Accepted For Processing · `126` Blacklisted Destination · `128` Invalid Destination · `129` Duplicate Destination · `136` Batch Size Exceeded (max 1000 recipients) · `137` Insufficient Credits · `201` Batch Scheduled · `500` Message Sent · `501` Queued At MNO · `600` Delivery Success · `620` Failed In Delivery. The gateway sometimes returns equivalent alternates (e.g. Invalid Destination `128`/`226`), so treat `statusCode` as an opaque string.","summary":"Direct bulk & transactional SMS over a simple HTTP JSON API."}},"baseSlug":"/apis/sms","routesMapping":{}}