Reputation: 8722
Lets say I have 2 mobile phone numbers: X for Agent, Y for Merchant.
I want to be able to have a system where an SMS is sent from X to Y, and this triggers an API request in the Merchant's server, for example a POST request with data that looks something like this:
{
"mobile_number": X,
"type": "agent",
"amount": "240.00"
}
Hopefully you get the idea. How can I do this? Are there any readily available SaaS services that offer these things? Thanks.
Upvotes: 0
Views: 1036
Reputation: 21
If Y is going to be the receiving number that triggers the API request you could:
{"mobile_number": X,"type": "agent","amount": "240.00" }
Or whatever else you want, I'm assuming it will be different depending on what's sent in the SMS
Upvotes: 1