Partner - Transaction API
List transactions.
Returns a list of all transactions.
Endpoint
GET - https://api.travisroadservices.com/partners/v1/transactions
Copy
Header params
| Parameter | Type | Description |
|---|---|---|
location
|
string | Location ID of the requesting location. |
Query params
| Parameter | Type | Description |
|---|---|---|
page
|
string | The collection page number |
itemsPerPage
|
string | The number of items per page |
Request body
No request bodyResponse body
Response 200
TransactionResource collection
Fields
| Field | Type | Description |
|---|---|---|
id
|
integer | Unique identifier of the transaction. |
service
|
string | Service for which the transaction is created. Possible values: parking, repair. |
price
|
object | Total price of the transaction. |
amount
|
number | Price amount in the specified currency. |
currency
|
string | ISO 4217 currency code. |
payout
|
object | Payout amount applicable to the transaction. |
amount
|
number | Price amount in the specified currency. |
currency
|
string | ISO 4217 currency code. |
customerDiscount
|
object | Customer discount applied to the transaction. |
amount
|
number | Price amount in the specified currency. |
currency
|
string | ISO 4217 currency code. |
status
|
object | Current status of the transaction. |
createdAt
|
string (date-time) | Date and time the transaction was created. |
cancelledAt
|
string (date-time) | Date and time the transaction was cancelled, if applicable. |
creditTransactionId
|
integer | Identifier of the related credit transaction. Only present when the transaction has been credited. |
priceParts
|
object | Price of parts. Required and applicable to the repair service only. |
amount
|
number | Price amount in the specified currency. |
currency
|
string | ISO 4217 currency code. |
priceLabour
|
object | Price of labour. Required and applicable to the repair service only. |
amount
|
number | Price amount in the specified currency. |
currency
|
string | ISO 4217 currency code. |
Example