1.8 KiB
1.8 KiB
Common Workflow
Decision order
- Identify the provider.
- Load auth from the configured source.
- Read balance or profile.
- Resolve country, operator, and service codes.
- Order the number.
- Poll for SMS.
- Finish a successful order, cancel an unused order, or ban when the provider exposes that action and the workflow calls for it.
Shared fields
providerapi_keyor bearer tokencountryoperatorserviceorproductorder_idphonestatussms_codeexpirespricemax_price
Status mapping
waitingmaps toWAIT_CODE,PENDING, or provider-specific equivalent.code_receivedmaps toSTATUS_OK:CODE,RECEIVED, or an SMS payload that already contains the code.completedmaps toACCESS_ACTIVATION,FINISHED, or a successful finish response.canceledmaps toACCESS_CANCEL,CANCELED, or a cancel response.timeoutmaps toTIMEOUTor provider expiry.bannedmaps toBANNED.
Completion policy
- Finish after a valid code is received and accepted by the target workflow.
- Cancel only while the provider allows cancellation and before it becomes irreversible.
- Ban only when the provider exposes a ban endpoint and the number should not be reused.
- If unsure whether the external verification accepted the code, report the current order state instead of prematurely finishing.
Polling policy
- Use a short bounded loop.
- Back off between checks.
- Stop immediately when a terminal state arrives.
- Do not assume that a successful order means SMS will arrive.
Safety boundary
- Do not treat the partner/supply protocol of GrizzlySMS as part of the default activation workflow.
- Do not fabricate code tables or service mappings.
- Do not conflate activation APIs with unrelated account registration flows outside the documented endpoints.