List the payment records of an order
const url = 'https://acme.mykreezalid.com/front_api/v1/orders/4242/transactions';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://acme.mykreezalid.com/front_api/v1/orders/4242/transactions \ --header 'Authorization: Bearer <token>'Returns the payment records of an order, as a bare array. The signed-in member must be the customer or the vendor of the order. An order without any record answers 403 with the message transactions not found, not an empty array.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Identifier of the order.
Example
4242Responses
Section titled “Responses”The payment records of the order.
A payment record attached to an order (payment, refund, payout…), with the request and response exchanged with the payment provider.
object
Identifier of the order.
Identifier of the member the record belongs to.
Payment provider.
Identifier of the payment provider configuration of the marketplace.
Identifier of the member at the payment provider.
Identifier of the transaction at the payment provider.
Kind of record.
Free-text details.
Request sent to the payment provider.
Response of the payment provider.
Example
[ { "id": 4242, "ref_id": 4243, "customer_id": 4244, "total": 129.9, "currency": "EUR" }]No signed-in member; the order does not exist or the signed-in member is neither its customer nor its vendor (message order not found); or the order has no payment record (message transactions not found).
Error body returned by the Front API when it refuses a request.
object
HTTP status code, repeated in the body.
Human-readable reason.
Example
{ "code": 403, "status": "error", "message": "Token not found in request"}