Get payment status
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.
The lookup is scoped to the organization the access token belongs to: an
order owned by another tenant is reported exactly as a nonexistent one,
with the same 404 and an identical body.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
clx0a1b2c3d4e5f6g7h8i9j0kOrder identifier (CUID string). Rejected with 400 before the lookup
if it is not a plausible order reference.
Responses
Section titled “Responses”Transaction status
object
object
object
INCOMING = C2B collection, OUTGOING = B2C disbursement.
object
INCOMING = C2B collection, OUTGOING = B2C disbursement.
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" } }}The orderId is not a valid order reference
object
Example
{ "error": "Invalid request", "message": "Order ID is not a valid order reference"}Authentication failed
object
Example
{ "error": "Unauthorized", "message": "Invalid organization authentication token"}No payment or disbursement found for the order — including when the order belongs to another organization.
object
Example
{ "error": "Transaction not found", "message": "No payment or disbursement transaction found for order clx0a1b2c3d4e5f6g7h8i9j0k"}Unexpected server error. The body is the error label alone — never an
exception message, stack frame or database detail.
object
Example
{ "error": "Internal Server Error"}