Skip to main content
POST
Report the payment execution outcome back to Prava. Always report after you attempt the charge with the credentials — it updates transaction records and relays the outcome to the card network. POST /v1/sessions/{sessionId}/report-status · Authenticated with your secret key.
Always report status after checkout execution. Report DECLINED if a payment token was used but checkout failed.

Path parameters

string
required
The session id from Create Session.

Body

string
required
The line-item reference from Get Payment Result.
string
required
APPROVED or DECLINED.
string
default:"PURCHASE"
Transaction type.
string
Authorization code from your processor, max 128 chars.
string
Processor response code, max 2 chars (e.g. "00" for approved).
string
Override the total paid, if different from the original.
object[]
Optional per-product status overrides; informational (the overall mandate status follows txn_status).

Response

string
Always "confirmed".
string
string
APPROVED or DECLINED.
string
SUCCESS or FAILURE.

Notes

  • A mandate is the spending permission created when the cardholder approved the payment. Reporting a one-time mandate charge as APPROVED consumes the mandate (it can’t be reused); a recurring mandate stays active for future charges. See Mandates.
  • product_statuses is optional and informational; the overall mandate status follows txn_status.

Error responses

Authorizations

Authorization
string
header
required

Your secret key: sk_test_* (sandbox) or sk_live_* (production).

Path Parameters

sessionId
string
required

The session ID returned from Create Session

Body

application/json
txn_ref_id
string
required

The transaction line item reference ID (from Get Payment Result)

txn_status
enum<string>
required

The payment outcome

Available options:
APPROVED,
DECLINED
txn_type
string
default:PURCHASE

Transaction type

authorization_code
string

Authorization code from the merchant's payment processor

Maximum string length: 128
response_code
string

Processor response code, e.g. "00" for approved

Maximum string length: 2
amount_paid
string

Override the total amount paid, if different from the original

product_statuses
(By merchant product ID · object | By Prava product reference · object)[]

Optional per-product status overrides

Response

Status confirmed

status
string

Always "confirmed"

txn_ref_id
string
txn_status
enum<string>
Available options:
APPROVED,
DECLINED
visa_confirmation
enum<string>
Available options:
SUCCESS,
FAILURE