Extra SMS features #39

Closed
opened 2025-03-25 08:20:52 +01:00 by kamikazechaser · 3 comments

The SMS API should be triggered on:

  • Pin reset for others
  • Accessing the "My address" menu
The SMS API should be triggered on: * Pin reset for others * Accessing the "My address" menu
kamikazechaser added the
Kind/Feature
Priority
High
labels 2025-03-25 08:21:03 +01:00
Author
Owner

http://localhost:5035/api/v1/external/pinreset

{
  "admin": "+254722000111",
  "phone": "+254723000111"
}

http://localhost:5035/api/v1/external/address

{
  "address": "0x0000000000000000000000000000000000000000",
  "originPhone": "+254711200111"
}
http://localhost:5035/api/v1/external/pinreset ```json { "admin": "+254722000111", "phone": "+254723000111" } ``` http://localhost:5035/api/v1/external/address ```json { "address": "0x0000000000000000000000000000000000000000", "originPhone": "+254711200111" } ```
Member

@kamikazechaser currently getting an error on the staging server, and production server

See this sample curl requests.

Kindly confirm if we're passing the correct details

pinreset

curl -X POST http://localhost:5035/api/v1/external/pinreset \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer XXX
" \
  -d '{
    "admin": "+254705136690",
    "phone": "+254724942097"
  }' \
  -i
HTTP/1.1 400 Bad Request
Content-Type: application/json
Date: Sat, 19 Apr 2025 10:06:38 GMT
Content-Length: 47

{"ok":false,"description":"Validation failed"}

address

curl -X POST http://localhost:5035/api/v1/external/address \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer XXX
" \
  -d '{
    "address": "0xD50163dCdAe2367751DEFb5C73DC9a0760f0dF04",
    "originPhone": "+254705136690"
  }' \
  -i
HTTP/1.1 400 Bad Request
Content-Type: application/json
Date: Sat, 19 Apr 2025 10:09:20 GMT
Content-Length: 47

{"ok":false,"description":"Validation failed"}
@kamikazechaser currently getting an error on the staging server, and production server See this sample curl requests. Kindly confirm if we're passing the correct details pinreset ``` curl -X POST http://localhost:5035/api/v1/external/pinreset \ -H "Content-Type: application/json" \ -H "Authorization: Bearer XXX " \ -d '{ "admin": "+254705136690", "phone": "+254724942097" }' \ -i HTTP/1.1 400 Bad Request Content-Type: application/json Date: Sat, 19 Apr 2025 10:06:38 GMT Content-Length: 47 {"ok":false,"description":"Validation failed"} ``` address ``` curl -X POST http://localhost:5035/api/v1/external/address \ -H "Content-Type: application/json" \ -H "Authorization: Bearer XXX " \ -d '{ "address": "0xD50163dCdAe2367751DEFb5C73DC9a0760f0dF04", "originPhone": "+254705136690" }' \ -i HTTP/1.1 400 Bad Request Content-Type: application/json Date: Sat, 19 Apr 2025 10:09:20 GMT Content-Length: 47 {"ok":false,"description":"Validation failed"} ```
Member

http://localhost:5035/api/v1/external/pinreset

{
  "admin": "+254722000111",
  "phone": "+254723000111"
}

http://localhost:5035/api/v1/external/address

{
  "address": "0x0000000000000000000000000000000000000000",
  "originPhone": "+254711200111"
}

Also, kindly share the expected responses for the two endpoints

> http://localhost:5035/api/v1/external/pinreset > > ```json > { > "admin": "+254722000111", > "phone": "+254723000111" > } > ``` > > http://localhost:5035/api/v1/external/address > > ```json > { > "address": "0x0000000000000000000000000000000000000000", > "originPhone": "+254711200111" > } > ``` Also, kindly share the expected responses for the two endpoints
kamikazechaser added the
Reviewed
Confirmed
label 2025-04-29 10:15:14 +02:00
kamikazechaser added this to the USSD project 2025-04-29 10:16:44 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#39
No description provided.