Documentation Index Fetch the complete documentation index at: https://docs.payviox.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Returns comprehensive details about a payment, including the amount, fees, customer information, payment method, and transaction status. Use this endpoint for reconciliation, to verify payment status on-demand, or to retrieve data you may have missed from a webhook.
All monetary amounts are returned in cents (e.g., 10000 = $100.00).
Authentication
This endpoint requires your Secret API Key (server-side only). See Authentication for details.
Authorization: Bearer sk_live_xxxxxxxxxxxx
Never expose your Secret API Key in client-side code. This endpoint should only be called from your backend server.
Path Parameters
The session ID returned when you created the payment session.
Response Fields
Unique identifier for the payment session.
Current payment status: succeeded, failed, pending, processing, pending_review, declined, expired, or null if no payment attempt was made.
Gross amount in cents (what the customer pays).
Total fees in cents (Payviox + provider + addons). null if the payment has not been completed yet.
Net amount in cents (amount - fees). This is what your business receives. null if the payment has not been completed yet.
Three-letter ISO currency code (e.g., USD).
Your unique order identifier, as provided when creating the session.
Customer identifier, as provided when creating the session.
Payment description, as provided when creating the session.
Array of items from the original session.
Custom key-value pairs attached to this session.
Payment method identifier (e.g., stripe_credit, paypal, stripe_apple_pay).
Payment provider used (e.g., stripe, paypal, payssion).
ISO 8601 timestamp of when the session was created.
Customer billing information collected during payment. null if the payment has not been completed. Show Customer details properties
Customer’s email address.
Billing address with line1, line2, city, state, postal_code, and country fields.
Payment method details. null if the payment has not been completed. Show Payment details properties
Payment method type (e.g., card, bancontact, ideal).
Card details (only present when type is card): brand, last4, exp_month, exp_year, country.
End-user’s IP address at the time of payment.
Two-letter country code detected from the end-user’s IP address (e.g., FR, US).
Example Requests
cURL
Node.js
Python
PHP
Ruby
Go
curl https://api.payviox.com/payment/a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6 \
-H "Authorization: Bearer sk_live_xxxxxxxxxxxx"
Example Response
Success (200)
Payment Not Yet Completed (200)
Not Found (404)
Unauthorized (401)
{
"session_id" : "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6" ,
"status" : "succeeded" ,
"amount" : 10000 ,
"fees" : 250 ,
"net_amount" : 9750 ,
"currency" : "USD" ,
"order_id" : "order_12345" ,
"customer" : "customer_abc123" ,
"description" : "Premium subscription" ,
"items" : [
{
"name" : "Premium Plan" ,
"quantity" : 1 ,
"price" : 10000
}
],
"metadata" : {
"user_id" : "usr_123" ,
"plan" : "premium"
},
"payment_method" : "stripe_credit" ,
"provider" : "stripe" ,
"created_at" : "2026-05-04T10:30:00.000000Z" ,
"customer_details" : {
"name" : "John Doe" ,
"email" : "john@example.com" ,
"phone" : "+33612345678" ,
"address" : {
"line1" : "123 Main St" ,
"city" : "Paris" ,
"postal_code" : "75001" ,
"country" : "FR"
}
},
"payment_details" : {
"type" : "card" ,
"card" : {
"brand" : "visa" ,
"last4" : "4242" ,
"exp_month" : "12" ,
"exp_year" : "2028" ,
"country" : "FR"
}
},
"ip" : "203.0.113.42" ,
"country" : "FR"
}
Error Responses
Returned when the API key is missing or invalid. This endpoint requires your Secret API Key . How to resolve: Ensure you are sending a valid Secret API key in the Authorization: Bearer header. Public API keys are not accepted for this endpoint.{
"error" : "Unauthorized"
}
Returned when the session_id does not exist or does not belong to your business. How to resolve: Verify the session_id is correct. You can only retrieve payments created by your own business.{
"error" : "Payment not found"
}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The session ID returned when you created the payment session
Payment details retrieved successfully
Unique identifier for the payment session
Gross amount in cents (what the customer pays)
Total fees in cents (null if payment not completed)
Net amount in cents (amount - fees, null if payment not completed)
Three-letter ISO currency code
Your unique order identifier
Array of items from the original session
Custom key-value pairs attached to this session
Payment method identifier (e.g., stripe_credit, paypal)
Payment provider used (e.g., stripe, paypal)
ISO 8601 timestamp of session creation
Customer billing information (null if payment not completed)
Payment method details (null if payment not completed)
Two-letter country code from IP geolocation