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

Open
opened 2025-02-26 16:24:00 +01:00 by lash · 0 comments
Owner

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

> 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"
  }
}
Document on how to call the API to send out an SMS. ``` > 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" } } ```
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: grassrootseconomics/sarafu-vise#27
No description provided.