curl --request GET \
--url http://localhost:8080/api/v1/payments/{id}import requests
url = "http://localhost:8080/api/v1/payments/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8080/api/v1/payments/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/api/v1/payments/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/api/v1/payments/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/api/v1/payments/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v1/payments/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"amount": "1500.00",
"business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"fail_url": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"language": "<string>",
"satim_order_number": "<string>",
"status": "PENDING",
"success_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"action_code": "<string>",
"action_code_description": "<string>",
"approval_code": "<string>",
"card_brand": "<string>",
"customer_email": "<string>",
"customer_name": "<string>",
"customer_phone": "<string>",
"description": "<string>",
"form_url": "<string>",
"masked_pan": "<string>",
"order_ref": "<string>",
"paid_at": "2023-11-07T05:31:56Z",
"payment_link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resp_code": "<string>",
"resp_code_desc": "<string>",
"satim_error_code": "<string>",
"satim_order_id": "<string>",
"satim_order_status": 123
}Get Payment by ID
Get a payment owned by the authenticated business. If it is still pending, its status is refreshed from Satim before responding.
curl --request GET \
--url http://localhost:8080/api/v1/payments/{id}import requests
url = "http://localhost:8080/api/v1/payments/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:8080/api/v1/payments/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/api/v1/payments/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/api/v1/payments/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/api/v1/payments/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v1/payments/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"amount": "1500.00",
"business_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"fail_url": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"language": "<string>",
"satim_order_number": "<string>",
"status": "PENDING",
"success_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"action_code": "<string>",
"action_code_description": "<string>",
"approval_code": "<string>",
"card_brand": "<string>",
"customer_email": "<string>",
"customer_name": "<string>",
"customer_phone": "<string>",
"description": "<string>",
"form_url": "<string>",
"masked_pan": "<string>",
"order_ref": "<string>",
"paid_at": "2023-11-07T05:31:56Z",
"payment_link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resp_code": "<string>",
"resp_code_desc": "<string>",
"satim_error_code": "<string>",
"satim_order_id": "<string>",
"satim_order_status": 123
}Path Parameters
Payment UUID
Response
Payment details
"1500.00"
Lifecycle status of a payment.
PENDING, PAID, FAILED, REFUSED, CANCELED, REFUNDED, EXPIRED Authorization number from the SATIM authorization server.
Card network used: "CIB" or "EDAHABIA".
Captured on the hosted link page, when the link asks for them. Never populated for API-created payments — those carry the customer's details on the merchant's side.
Set when this payment was started from a payment link rather than by an
API call. None for every payment a merchant's own server created.
Issuer response code (respCode); "00" when accepted.
Human-readable respCode description — the SATIM IHM return page's
primary message for both accepted and rejected payments.