The Moneroo platform's API offers an endpoint that allows you to fetch the detailed information of a specific payout transaction based on its unique transaction ID.
This guide will walk you through the process of retrieving a payout transaction using Moneroo's API.
The response from this API endpoint will be in the standard Moneroo API response format.
You'll get a response that looks like this:
{"success":true,"message":"Payout transaction fetched successfully","data": {// Details of the payout transaction }}
Successful Response:
Upon successful retrieval, the endpoint returns a HTTP status code of 200, and the details of the payout transaction in the response body.
Error Responses:
If there's an issue with your request, the API will return an error response. The type of error response depends on the nature of the issue. Check out our response format page for more information.
Security Considerations
This endpoint requires an API key for authentication. Include the bearer token in the Authorization header of your request. Ensure the token is kept secure and not shared or exposed inappropriately.
Please replace 'payoutId' with the actual payout transaction Id and 'your_token' with your valid authorization token in the code snippets above.
Response example
You'll get a response that looks like this:
{"message":"Payout transaction fetched successfully","data": {"id":"abc123","status":"success","is_processed":true,"processed_at":"2023-05-21T12:00:00Z","amount":100.0,"currency":"USD","amount_formatted":"$100.00","description":"Purchase of goods","return_url":"https://example.com/return","environment":"production","initiated_at":"2023-05-21T11:00:00Z","payout_phone_number":"+1234567890","app": {"id":"app1","name":"Example App","icon_url":"https://example.com/icon.png" },"customer": {"id":"cust1","first_name":"John","last_name":"Doe","email":"john.doe@example.com","phone":"+1234567890","address":"123 Main St","city":"Springfield","state":"IL","country_code":"US","country":"United States","zip_code":"62701","environment":"production","created_at":"2023-01-01T00:00:00Z","updated_at":"2023-05-21T00:00:00Z" },"method": {"name":"Credit Card","code":"cc","icon_url":"https://example.com/cc.png","environment":"production" },"gateway": {"name":"Stripe","account_name":"Acme Corp","code":"stripe","icon_url":"https://example.com/stripe.png","environment":"production" },"metadata": {"custom_field1":"custom_value1","custom_field2":"custom_value2" },"context": {"ip":"192.0.2.0", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (HTML, like Gecko) Chrome/58.0.3029.110 Safari/537",
"country":"US","local":"en-US" } }}
The data field will contain the transaction details. The specific structure and content of this field depend on the details of the individual transaction.
payoutId
String
Yes
The unique ID of the payout transaction to retrieve.