Send Money Status
How to obtain send money payment status.

Handling send money status

post
https://sandbox.intasend.com
/api/v1/send-money/status/
Get send money status

Code examples

Python
PHP
Go
Ruby
1
import requests
2
3
url = "https://sandbox.intasend.com/api/v1/send-money/status/"
4
5
payload = "{\"tracking_id\": \"6138a6b7-51f6-42e2-86d0-8ca31c286dd8\"}"
6
headers = {
7
'Authorization': 'Bearer LfqRDqvfvwv77BhxuDsdXN04NyUx97',
8
'Content-Type': 'application/json'
9
}
10
11
response = requests.request("POST", url, headers=headers, data = payload)
12
13
print(response.text.encode('utf8'))
14
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => "https://sandbox.intasend.com/api/v1/send-money/status/",
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => "",
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => "POST",
14
CURLOPT_POSTFIELDS =>"{\"tracking_id\": \"6138a6b7-51f6-42e2-86d0-8ca31c286dd8\"}",
15
CURLOPT_HTTPHEADER => array(
16
"Authorization: Bearer LfqRDqvfvwv77BhxuDsdXN04NyUx97",
17
"Content-Type: application/json"
18
),
19
));
20
21
$response = curl_exec($curl);
22
23
curl_close($curl);
24
echo $response;
25
Copied!
1
package main
2
3
import (
4
"fmt"
5
"strings"
6
"net/http"
7
"io/ioutil"
8
)
9
10
func main() {
11
12
url := "https://sandbox.intasend.com/api/v1/send-money/status/"
13
method := "POST"
14
15
payload := strings.NewReader("{\"tracking_id\": \"6138a6b7-51f6-42e2-86d0-8ca31c286dd8\"}")
16
17
client := &http.Client {
18
}
19
req, err := http.NewRequest(method, url, payload)
20
21
if err != nil {
22
fmt.Println(err)
23
}
24
req.Header.Add("Authorization", "Bearer LfqRDqvfvwv77BhxuDsdXN04NyUx97")
25
req.Header.Add("Content-Type", "application/json")
26
27
res, err := client.Do(req)
28
defer res.Body.Close()
29
body, err := ioutil.ReadAll(res.Body)
30
31
fmt.Println(string(body))
32
}
Copied!
1
require "uri"
2
require "net/http"
3
4
url = URI("https://sandbox.intasend.com/api/v1/send-money/status/")
5
6
https = Net::HTTP.new(url.host, url.port);
7
https.use_ssl = true
8
9
request = Net::HTTP::Post.new(url)
10
request["Authorization"] = "Bearer LfqRDqvfvwv77BhxuDsdXN04NyUx97"
11
request["Content-Type"] = "application/json"
12
request.body = "{\"tracking_id\": \"6138a6b7-51f6-42e2-86d0-8ca31c286dd8\"}"
13
14
response = https.request(request)
15
puts response.read_body
16
Copied!
Last modified 2d ago