Listing Transactions
Prerequisites
Following roles are needed to be able to perform steps described on this page:
TRANSACTION_ADMINISTRATOR
See Authorization for more details about roles
The registered transactions of the sales channel can be found by calling the GET /saleschannel-services/v1/transactions
endpoint:
List transactions
curl -X 'GET' "/saleschannel-services/v1/transactions" \
-H "Accept: application/json" \
-H "Authorization: Bearer $BEARER"
Example of a successful response:
Array
One of
id required | string The ID of the transaction request. |
type required | string Value: "TRADE" The type of this transaction. |
sellerId required | string The trader ID of the seller. |
status required | string Enum: "STARTED" "SUCCESS" "FAILED" "PENDING" "REJECTED" The new status of the transaction. |
createdAt required | string <date-time> The date and time when the transaction was created. |
completedAt required | string or null <date-time> The date and time when the transaction was completed. |
transactionId required | string or null The ID of the transaction in Puro registry. |
required | Array of objects (TransactionAssets) A list of transaction assets. |
buyerId required | string The trader ID of the buyer. |
currency required | string Enum: "EUR" "USD" The currency of the monetary value of this trade. |
[- {
- "id": "clcouzeuj0001ppxdc4lx7e5d",
- "type": "TRADE",
- "sellerId": "clcouyzxh0000ppxd5gct7d5c",
- "status": "PENDING",
- "createdAt": "2021-01-01T00:00:00.000Z",
- "completedAt": "2021-01-01T00:00:00.000Z",
- "transactionId": "c86f329c-858a-4530-a5ea-12eebef7e62e",
- "assets": [
- {
- "start": "6e0edefa8-cbde-4c19-896a-edafb7a8e030_43002406555908611000000000001",
- "end": "6e0edefa8-cbde-4c19-896a-edafb7a8e030_43002406555908611000000000001",
- "unitPrice": 100,
- "volume": 1
}
], - "buyerId": "clcouzle50002ppxd7sip8t0w",
- "currency": "EUR"
}
]