Upsell new user SMS via eth-custodial-notify API #275

Open
opened 2025-01-14 09:48:16 +01:00 by kamikazechaser · 1 comment

Document on how to call the API to send out an SMS.

Document on how to call the API to send out an SMS.
kamikazechaser added the
Priority
Medium
label 2025-01-14 09:48:16 +01:00
kamikazechaser self-assigned this 2025-01-14 09:48:16 +01:00
lash added the
Kind/Feature
ux
Activity
Hold
labels 2025-01-14 10:22:36 +01:00
Author
Owner
> POST http://localhost:5035/api/v1/external/upsell
> authorization: Bearer eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJwdWJsaWNLZXkiOiIweDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJzZXJ2aWNlIjp0cnVlLCJpc3MiOiJldGgtY3VzdG9kaWFsLWRldiIsInN1YiI6InNuLXByb2QiLCJleHAiOjE3Njk4NDIxNzksImlhdCI6MTczODMwNjE3OX0.FXTwZ8nQKCG66xO0wMbx4Mga8SqFZcm65pq7_iMKjXPMH_h0IBHmSV2DOKQVfNbI1W9BRUCuSUwbALFgDqLrBg
> content-type: application/json
> data {"inviterPhone":"+254750111111","inviteePhone":"+254711222222"}
< 200 OK
< content-type: application/json
< date: Fri, 31 Jan 2025 07:06:27 GMT
< content-length: 97
< connection: close
{
  "ok": true,
  "description": "External SMS request successful",
  "result": {
    "invitee": "+254711222222"
  }
}
```bash > POST http://localhost:5035/api/v1/external/upsell > authorization: Bearer eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJwdWJsaWNLZXkiOiIweDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJzZXJ2aWNlIjp0cnVlLCJpc3MiOiJldGgtY3VzdG9kaWFsLWRldiIsInN1YiI6InNuLXByb2QiLCJleHAiOjE3Njk4NDIxNzksImlhdCI6MTczODMwNjE3OX0.FXTwZ8nQKCG66xO0wMbx4Mga8SqFZcm65pq7_iMKjXPMH_h0IBHmSV2DOKQVfNbI1W9BRUCuSUwbALFgDqLrBg > content-type: application/json > data {"inviterPhone":"+254750111111","inviteePhone":"+254711222222"} < 200 OK < content-type: application/json < date: Fri, 31 Jan 2025 07:06:27 GMT < content-length: 97 < connection: close ``` ```json { "ok": true, "description": "External SMS request successful", "result": { "invitee": "+254711222222" } } ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: urdt/ussd#275
No description provided.