Get payment status
GET
/payment/status/{orderId}
const url = 'https://api.pipevest.com/v1/payment/status/clx0a1b2c3d4e5f6g7h8i9j0k';const options = { method: 'GET', headers: {Authorization: 'Bearer <token>', 'x-client-id': '<x-client-id>'}};
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://api.pipevest.com/v1/payment/status/clx0a1b2c3d4e5f6g7h8i9j0k \ --header 'Authorization: Bearer <token>' \ --header 'x-client-id: <x-client-id>'Returns the status of the collection (C2B, payment) and/or
disbursement (B2C, disbursement) for an order. Poll this endpoint to
learn a payment outcome — signed outbound webhooks are not available yet.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”orderId
required
string
Example
clx0a1b2c3d4e5f6g7h8i9j0kOrder identifier (CUID string).
Responses
Section titled “Responses”Transaction status
Media typeapplication/json
object
message
string
data
object
orderId
string
payment
object
id
string
type
INCOMING = C2B collection, OUTGOING = B2C disbursement.
string
amount
string
currency
string
status
string
provider
string
telcoTransactionId
string
telcoConversationId
string
confirmedAt
string format: date-time
failedAt
string format: date-time
failureReason
string
createdAt
string format: date-time
disbursement
object
id
string
type
INCOMING = C2B collection, OUTGOING = B2C disbursement.
string
amount
string
currency
string
status
string
provider
string
telcoTransactionId
string
telcoConversationId
string
confirmedAt
string format: date-time
failedAt
string format: date-time
failureReason
string
createdAt
string format: date-time
Example
{ "message": "Transaction status retrieved successfully", "data": { "orderId": "clx0a1b2c3d4e5f6g7h8i9j0k", "payment": { "id": "clpaya1b2c3d4e5f6g7h8i9j0", "type": "INCOMING", "amount": "150.00", "currency": "ZMW", "status": "PENDING", "provider": "ZAMTEL" }, "disbursement": { "id": "clpaya1b2c3d4e5f6g7h8i9j0", "type": "INCOMING", "amount": "150.00", "currency": "ZMW", "status": "PENDING", "provider": "ZAMTEL" } }}Authentication failed
Media typeapplication/json
object
error
string
message
string
Example
{ "error": "Unauthorized", "message": "Invalid organization authentication token"}No payment or disbursement found for the order
Media typeapplication/json
object
error
string
message
string
Example
{ "error": "Transaction not found", "message": "No payment or disbursement transaction found for order clx0a1b2c3d4e5f6g7h8i9j0k"}Server error
Media typeapplication/json
object
error
string
message
string
Example
{ "error": "Unauthorized", "message": "Invalid organization authentication token"}