Skip to content

Get payment by id

GET
/v4/payments/{paymentId}
curl --request GET \
--url https://console.orangepill.cloud/v4/payments/example \
--header 'Authorization: Bearer <token>'

Fetch a payment record by identifier.

paymentId
required
string
>= 1 characters

Payment identifier

Default Response

Media typeapplication/json
object
payment
required
object
amount
required
Any of:

Decimal amount encoded as a string

string
/^[0-9]+(\.[0-9]{1,4})?$/
completed_at
Any of:

ISO 8601 timestamp

string format: date-time
correlation_id
string
nullable
created_at
Any of:

ISO 8601 timestamp

string format: date-time
currency
required

ISO 4217 currency code

string
>= 3 characters <= 3 characters
customerName
string
nullable
customer_id
string
nullable
customer_name
string
nullable
description
string
nullable
direction
string
nullable
error_code
string
nullable
error_message
string
nullable
id
required
string
metadata
object
key
additional properties
order_id
string
nullable
payment_method
string
nullable
payment_method_key
string
nullable
project_id
string
nullable
provider
string
nullable
provider_instance_id
string
nullable
provider_payment_id
string
nullable
status
required
string
tenant_id
string
nullable
updated_at
Any of:

ISO 8601 timestamp

string format: date-time
user_id
string
nullable

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"
}