Return pump information on all pumps of the gas station
Returns the current pump status (free, inUse, readyToPay, outOfOrder, locked) and identifier. If the status is readyToPay, the result also contains fuelType, productName, fuelAmount, VAT (amount & rate), priceWithoutVAT, priceIncludingVAT, currency.
Only use after approaching, otherwise returns 403 Forbidden
.
Path parameters
-
Gas station ID
Responses
-
200 application/vnd.api+json
OK
-
401 application/vnd.api+json
OAuth token missing or invalid or a linked identity is missing.
Linked identity missing is a special case where you need to make sure that the user has additionally logged in / authorized with a third-party.
This is not relevant for most use-cases.
The specific error code that identifies a missing linked identity is
missing-linked-identity
Example:
{ "errors": [ { "id": "cbgmhslmp1o9or9kh1p0", "title": "Missing linked identity for authorized access", "detail": "Linked identity is needed to access this resource, please check why the user does not have a linked identity", "status": "401", "code": "missing-linked-identity" } ] }
-
403 application/vnd.api+json
Forbidden
-
404 application/vnd.api+json
Resource not found
-
406 application/vnd.api+json
The specified accept header is invalid
-
410 application/vnd.api+json
Resource is gone
-
500 application/vnd.api+json
Internal server error
-
502 application/vnd.api+json
Error occurred while communicating with PACE services
curl \
-X GET https://api.pace.cloud/fueling/2024-2/gas-stations/583ad807-6a08-4d5a-b3f6-8861b0e355df/pumps \
-H "Authorization: Bearer $ACCESS_TOKEN"
{
"data": {
"type": "getPumps",
"id": "c3f037ea-492e-4033-9b4b-4efc7beca16c",
"relationships": {
"pumps": {
"data": [
{
"type": "pump",
"id": "a166d498-a8d6-49f0-83ef-50a42dcf7748"
}
]
}
}
},
"included": [
{
"type": "pump",
"id": "a166d498-a8d6-49f0-83ef-50a42dcf7748",
"attributes": {
"identifier": "2",
"fuelingProcess": "postPay",
"status": "free",
"fuelType": "ron95e10",
"productName": "Super E10",
"fuelAmount": 44.3,
"pricePerUnit": 1.359,
"unit": "liter",
"VAT": {
"amount": 9.72,
"rate": 0.19
},
"purposePRNs": [
"prn:poi:gas-stations:93db55b6-a9ab-4597-a253-49a1718cea0a",
"prn:cms:fuels:ron95e5"
],
"priceWithoutVAT": 51.37,
"priceIncludingVAT": 61.09,
"currency": "EUR",
"transactionId": "e809fcfc-5fdd-4fba-9d3c-2b56c22d643c",
"transaction": {
"type": "transaction",
"id": "88b40caf-9add-47fc-a2f6-388de89a2b3a",
"attributes": {
"status": "announced",
"authorizedAmount": 70,
"PumpUUID": "44b3812b-c03b-414f-8b6b-1a80fcbdc28c",
"VAT": {
"amount": 11.07,
"rate": 0.19
},
"priceWithoutVAT": 58.27,
"priceIncludingVAT": 69.34,
"currency": "EUR",
"pricePerUnit": 1.309,
"unit": "liter",
"fuelType": "ron95e5",
"fuelAmount": 52.97,
"productName": "Super E5",
"paymentToken": "12c52345c1x34",
"paymentTokenRestrictions": [
"prn:cms:fuels:diesel",
"prn:poi:gas-stations:93db55b6-a9ab-4597-a253-49a1718cea0a"
]
}
},
"availableProducts": [
{
"type": "ron95e5",
"name": "Euro 95"
}
]
}
}
]
}
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}
{
"errors": [
{
"id": "string",
"links": {
"about": "string"
},
"status": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}