# Wait for a status change on a given pump **GET /gas-stations/{gasStationId}/pumps/{pumpId}/wait-for-status-change** Uses **long polling** to wait for a status change on a given pump. Returns as soon as the status has changed or after the number of seconds provided by the optional `timeout` query parameter (default timeout is 30 seconds). In case of timeout (408 status code) you're safe to start the request again. Instantaneously returns if `lastStatus` was given and already changed between request. If successful, it returns the same structure as the normal status call

Only use after approaching, otherwise returns `403 Forbidden`. ## Servers - Production server (stable release 2025-1): https://api.pace.cloud/fueling/2025-1 (Production server (stable release 2025-1)) ## Authentication methods - O auth2 - Oidc ## Parameters #### Path parameters - **gasStationId** (string(uuid)) Gas station ID - **pumpId** (string(uuid)) Pump ID #### Query parameters - **update** (string) Use **long polling** for status updates - **lastStatus** (string) Pump status - **timeout** (integer) Timeout in seconds ## Responses ### 200: OK #### Body Parameters: application/vnd.api+json (object) - **data** (object) ### 400: Bad request #### Body Parameters: application/vnd.api+json (object) - **errors** (array[object]) ### 401: 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" } ] } ``` #### Body Parameters: application/vnd.api+json (object) - **errors** (array[object]) ### 403: Forbidden #### Body Parameters: application/vnd.api+json (object) - **errors** (array[object]) ### 404: Resource not found #### Body Parameters: application/vnd.api+json (object) - **errors** (array[object]) ### 406: The specified accept header is invalid #### Body Parameters: application/vnd.api+json (object) - **errors** (array[object]) ### 408: Your request timed out #### Body Parameters: application/vnd.api+json (object) - **errors** (array[object]) ### 410: Resource is gone #### Body Parameters: application/vnd.api+json (object) - **errors** (array[object]) ### 500: Internal server error #### Body Parameters: application/vnd.api+json (object) - **errors** (array[object]) ### 502: Error occurred while communicating with PACE services #### Body Parameters: application/vnd.api+json (object) - **errors** (array[object]) [Powered by Bump.sh](https://bump.sh)