Return current pump information Deprecated
Returns the current pump status (free, inUse, readyToPay, outOfOrder) 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
-
Pump 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
-
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/2020-4/gas-stations/583ad807-6a08-4d5a-b3f6-8861b0e355df/pumps/a4373543-4083-4f0c-a4a9-4bc458b598fd \
-H "Authorization: Bearer $ACCESS_TOKEN"
{
"data": {
"id": "baca9c76-82bf-44e7-b8b0-8af44fa4998b",
"type": "pump",
"attributes": {
"VAT": {
"rate": 0.19,
"amount": 9.72
},
"status": "readyToPay",
"currency": "EUR",
"fuelType": "ron95e10",
"fuelAmount": 44.3,
"identifier": "3",
"productName": "Super E10",
"pricePerUnit": 1.379,
"transactionId": "93947b05-8486-44d0-822b-c02e1a1eeed7",
"fuelingProcess": "preAuth",
"priceWithoutVAT": 51.37,
"priceIncludingVAT": 61.09
}
}
}
{
"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": {}
}
]
}