Fix advertising SMS shortcode to 5000990009.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
4a1d60dbef
commit
07f3304c07
+2
-2
@@ -30,8 +30,8 @@ SMS_GAMA_BASE_URL=https://sms.igama.ir/api/v1
|
||||
SMS_GAMA_USERNAME=
|
||||
SMS_GAMA_PASSWORD=
|
||||
SMS_GAMA_SOURCE_SERVICE=5000110005
|
||||
# Optional: advertising / unverified-template shortcode (default 9000590009)
|
||||
SMS_GAMA_SOURCE_ADVERTISE=9000590009
|
||||
# Optional: advertising / unverified-template shortcode (default 5000990009)
|
||||
SMS_GAMA_SOURCE_ADVERTISE=5000990009
|
||||
# Partner gateway: domain:apiKey pairs, comma-separated (www. is stripped)
|
||||
# Example: SMS_PARTNERS=baloutpastry.com:replace-with-long-random-secret
|
||||
SMS_PARTNERS=
|
||||
|
||||
@@ -453,7 +453,7 @@ Each resource typically has: `read`, `create`, `update`, `delete` (+ `publish` f
|
||||
- Dashboard SSO: `POST /auth/handoff` (JWT) stores a one-time Redis ticket (`sso:handoff:{ticket}`, 60s). Business dashboard calls `POST /auth/handoff/consume` and receives tokens.
|
||||
- JWT payload: `sub`, `cellNumber`, `roles`, `dashboard`, `type`
|
||||
- SMS provider: Gama (`sms.igama.ir`) SendQuick via service shortcode (`SMS_GAMA_*`)
|
||||
- Partner gateway (external sites like Balout): `POST /api/v1/public/sms/send` with `X-Api-Key` + body `{ domain, to, message, source? }`; default sender advertising `9000590009`; partners configured in `SMS_PARTNERS` (`domain:apiKey` pairs). Rate limits: 30/partner/min and 5/destination/min. Not part of storefront website-api docs.
|
||||
- Partner gateway (external sites like Balout): `POST /api/v1/public/sms/send` with `X-Api-Key` + body `{ domain, to, message, source? }`; default sender advertising `5000990009`; partners configured in `SMS_PARTNERS` (`domain:apiKey` pairs). Rate limits: 30/partner/min and 5/destination/min. Not part of storefront website-api docs.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ X-Api-Key: <partner-secret>
|
||||
| `domain` | yes | Allowlisted partner apex, e.g. `baloutpastry.com` (`www.` is stripped) |
|
||||
| `to` | yes | Mobile: `09…`, `9…`, `+989…`, or `989…` |
|
||||
| `message` | yes | Free text, max 700 characters |
|
||||
| `source` | no | Gama shortcode override (8–16 digits). Default: advertising `9000590009` |
|
||||
| `source` | no | Gama shortcode override (8–16 digits). Default: advertising `5000990009` |
|
||||
|
||||
### Example (Balout)
|
||||
|
||||
@@ -73,7 +73,7 @@ First allowlisted partner: **baloutpastry.com**.
|
||||
|
||||
## Sender line (v1)
|
||||
|
||||
Default sender is the **advertising** shortcode (`9000590009` / `SMS_GAMA_SOURCE_ADVERTISE`).
|
||||
Default sender is the **advertising** shortcode (`5000990009` / `SMS_GAMA_SOURCE_ADVERTISE`).
|
||||
Pass `source` to override (e.g. a business-owned shortcode). OTP/login on Meshkee dashboards uses the **service** shortcode (`5000110005`) via `/auth/send-otp`, not this partner endpoint.
|
||||
|
||||
---
|
||||
|
||||
@@ -21,7 +21,7 @@ export type SmsSendOptions = {
|
||||
};
|
||||
|
||||
/** Default Meshkee advertising shortcode when a business has no own SMS number. */
|
||||
export const DEFAULT_ADVERTISING_SMS_SOURCE = '9000590009';
|
||||
export const DEFAULT_ADVERTISING_SMS_SOURCE = '5000990009';
|
||||
|
||||
/** Gama batch size limit is undocumented; keep chunks conservative. */
|
||||
const GAMA_BULK_CHUNK_SIZE = 100;
|
||||
|
||||
@@ -24,7 +24,7 @@ X-Api-Key: <partner-secret>
|
||||
| `domain` | yes | Allowlisted partner apex, e.g. `baloutpastry.com` (`www.` is stripped) |
|
||||
| `to` | yes | Mobile: `09…`, `9…`, `+989…`, or `989…` |
|
||||
| `message` | yes | Free text, max 700 characters |
|
||||
| `source` | no | Gama shortcode override (8–16 digits). Default: advertising `9000590009` |
|
||||
| `source` | no | Gama shortcode override (8–16 digits). Default: advertising `5000990009` |
|
||||
|
||||
### Example (Balout)
|
||||
|
||||
@@ -73,7 +73,7 @@ First allowlisted partner: **baloutpastry.com**.
|
||||
|
||||
## Sender line (v1)
|
||||
|
||||
Default sender is the **advertising** shortcode (`9000590009` / `SMS_GAMA_SOURCE_ADVERTISE`).
|
||||
Default sender is the **advertising** shortcode (`5000990009` / `SMS_GAMA_SOURCE_ADVERTISE`).
|
||||
Pass `source` to override (e.g. a business-owned shortcode). OTP/login on Meshkee dashboards uses the **service** shortcode (`5000110005`) via `/auth/send-otp`, not this partner endpoint.
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user