Get payment by id
GET
/v4/payments/{paymentId}
const url = 'https://console.orangepill.cloud/v4/payments/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://console.orangepill.cloud/v4/payments/example \ --header 'Authorization: Bearer <token>'Fetch a payment record by identifier.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”paymentId
required
string
Payment identifier
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
payment
required
object
amount
required
correlation_id
string
currency
required
ISO 4217 currency code
string
customerName
string
customer_id
string
customer_name
string
description
string
direction
string
error_code
string
error_message
string
id
required
string
metadata
object
key
additional properties
order_id
string
payment_method
string
payment_method_key
string
project_id
string
provider
string
provider_instance_id
string
provider_payment_id
string
status
required
string
tenant_id
string
user_id
string
Example generated
{ "payment": { "amount": "example", "completed_at": "2026-04-15T12:00:00Z", "correlation_id": "example", "created_at": "2026-04-15T12:00:00Z", "currency": "example", "customerName": "example", "customer_id": "example", "customer_name": "example", "description": "example", "direction": "example", "error_code": "example", "error_message": "example", "id": "example", "metadata": { "additionalProperty": "example" }, "order_id": "example", "payment_method": "example", "payment_method_key": "example", "project_id": "example", "provider": "example", "provider_instance_id": "example", "provider_payment_id": "example", "status": "example", "tenant_id": "example", "updated_at": "2026-04-15T12:00:00Z", "user_id": "example" }}Default Response
Media typeapplication/json
object
error
required
Error message
string
message
string
Example generated
{ "error": "example", "message": "example"}Default Response
Media typeapplication/json
object
error
required
Error message
string
message
string
Example generated
{ "error": "example", "message": "example"}