> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidoc-v1.maniscloud.com/llms.txt.
> For full documentation content, see https://apidoc-v1.maniscloud.com/llms-full.txt.

# Get Payout from PSP by manis id

GET https://api/v1/payouts/%7BtransactionId%7D/psp/%7BpspId%7D

Get the single payout by the Manis's transaction ID directly from PSP.

#### Response Body

| Field | Type | **Description** |
| --- | --- | --- |
| `manisTransactionId` | string | ID of payout transaction from Manis |
| `pspTransactionId` | string | ID of transaction from PSP |
| `customerId` | string | ID of the customer |
| `beneficiaryId` | string | ID of the beneficiary |
| `pspPayoutId` | string | ID of payout from PSP |
| `pspId` | string | ID of the PSP |
| `merchantId` | string | ID of the merchant |
| `paymentType` | string | PAYOUT |
| `status` | string | Status of payout  <br>PENDING  <br>COMPLETED  <br>FAILED  <br>EXPIRED  <br>REFUNDED  <br>CANCELLED |
| `currency` | string | Currency |
| `amount` | number | Amount of transaction |
| `createdAt` | date(yyyy-MM-dd'T'HH:mm:ss.SSS'Z') |  |
| `updatedAt` | date(yyyy-MM-dd'T'HH:mm:ss.SSS'Z') |  |

Reference: https://apidoc-v1.maniscloud.com/manis-unified-api-v-1-0/payout/get-payout-from-psp-by-manis-id

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/v1/payouts/%7BtransactionId%7D/psp/%7BpspId%7D:
    get:
      operationId: get-payout-from-psp-by-manis-id
      summary: Get Payout from PSP by manis id
      description: >-
        Get the single payout by the Manis's transaction ID directly from PSP.


        #### Response Body


        | Field | Type | **Description** |

        | --- | --- | --- |

        | `manisTransactionId` | string | ID of payout transaction from Manis |

        | `pspTransactionId` | string | ID of transaction from PSP |

        | `customerId` | string | ID of the customer |

        | `beneficiaryId` | string | ID of the beneficiary |

        | `pspPayoutId` | string | ID of payout from PSP |

        | `pspId` | string | ID of the PSP |

        | `merchantId` | string | ID of the merchant |

        | `paymentType` | string | PAYOUT |

        | `status` | string | Status of payout  <br>PENDING  <br>COMPLETED 
        <br>FAILED  <br>EXPIRED  <br>REFUNDED  <br>CANCELLED |

        | `currency` | string | Currency |

        | `amount` | number | Amount of transaction |

        | `createdAt` | date(yyyy-MM-dd'T'HH:mm:ss.SSS'Z') |  |

        | `updatedAt` | date(yyyy-MM-dd'T'HH:mm:ss.SSS'Z') |  |
      tags:
        - subpackage_payout
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Payout_Get Payout from PSP by manis
                  id_Response_200
servers:
  - url: https:/
components:
  schemas:
    Payout_Get Payout from PSP by manis id_Response_200:
      type: object
      properties:
        pspId:
          type: string
        amount:
          type: integer
        status:
          type: string
        currency:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        customerId:
          type: string
        merchantId:
          type: string
          format: uuid
        paymentType:
          type: string
        pspPayoutId:
          type: string
        beneficiaryId:
          type: string
        manisTransactionId:
          type: string
      required:
        - pspId
        - amount
        - status
        - currency
        - createdAt
        - updatedAt
        - customerId
        - merchantId
        - paymentType
        - pspPayoutId
        - beneficiaryId
        - manisTransactionId
      title: Payout_Get Payout from PSP by manis id_Response_200

```

## SDK Code Examples

```python Payout_Get Payout from PSP by manis id_example
import requests

url = "https://https/api/v1/payouts/%7BtransactionId%7D/psp/%7BpspId%7D"

response = requests.get(url)

print(response.json())
```

```javascript Payout_Get Payout from PSP by manis id_example
const url = 'https://https/api/v1/payouts/%7BtransactionId%7D/psp/%7BpspId%7D';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Payout_Get Payout from PSP by manis id_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://https/api/v1/payouts/%7BtransactionId%7D/psp/%7BpspId%7D"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Payout_Get Payout from PSP by manis id_example
require 'uri'
require 'net/http'

url = URI("https://https/api/v1/payouts/%7BtransactionId%7D/psp/%7BpspId%7D")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java Payout_Get Payout from PSP by manis id_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://https/api/v1/payouts/%7BtransactionId%7D/psp/%7BpspId%7D")
  .asString();
```

```php Payout_Get Payout from PSP by manis id_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://https/api/v1/payouts/%7BtransactionId%7D/psp/%7BpspId%7D');

echo $response->getBody();
```

```csharp Payout_Get Payout from PSP by manis id_example
using RestSharp;

var client = new RestClient("https://https/api/v1/payouts/%7BtransactionId%7D/psp/%7BpspId%7D");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift Payout_Get Payout from PSP by manis id_example
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://https/api/v1/payouts/%7BtransactionId%7D/psp/%7BpspId%7D")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```