Consultar Depósito
Consultar status status de um depósito através do código de referência 'reference'.
Parâmetros de entrada
-
- Nome
-
reference * - Tipo
- uuid
- Descrição
- Referência do depósito a ser consultado.
GET
/api/v1/status/payment/{reference}
$client = new Client();
$headers = [
'Accept' => 'application/json',
'Content-Type' => 'application/json',
'x-client-id' => '20d80764-61aa-4ca1-ac32-3c91c4772a1e',
'x-client-secret' => 'MTIwZDgwNzY1LTY43GMtMGNj1S2hYuAyLThaOTNjNDc9M2EyZQ==',
];
$request = new Request('GET', 'https://api.grupay.app/v1/status/payment/29f96f13-87a4-45a5-b2a9-77725e47e82c', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
200
Sucesso
{
"success": true,
"message": "pending"
}
404
Depósito não encontrado
{
"success": false,
"message": "Order not found."
}