Exchange Transactions
Update Transaction Status
As a buyer, use this endpoint to accept or reject a pending transaction.
Request
PUT /exchange/buyer/transaction/:id/status
Body
type Body = {
status: "completed" | "rejected";
};
Search Transactions
Request
POST /exchange/buyer/transaction/search
Body
type Body = {
/** The transaction IDs to search for */
_id?: string | string[];
/** The transaction statuses to search for */
status?: "pending" | "completed" | "rejected";
/** Offer IDs to search for */
offer_id?: string | string[];
/** The date the transaction was created. */
createdAt?: { $gte?: string; $lte?: string };
}
Example
{
"_id": "63f5d0e0d9e9d1a0f0a3d8e1",
"status": "completed",
"offer_id": "63f5d0e0d9e9d1a0f0a3d8e1",
"createdAt": { $gte: "2023-02-14T09:02:51.000Z" }
}