Gather information when approaching at the forecourt
          
    Deprecated
 
        
        
        This request will:
- Return a list of paymentMethods of the user which can be used at the gas station. 
- Return up-to-date price information (price structure) at the gas station. 
- Return a list of pumps available at the gas station together with the current status (free, inUse, readyToPay, outOfOrder). No pumps might be returned if the list of payment methods is empty. 
- Create payment tokens for the paymentMethods of the user that are also supported at the gas station and pre-authorize the calculated maximum amount of money (background task). 
The approaching is a necessary first api call for connected fueling. Without a valid approaching the get pump and wait for status change calls may be answered with a 403 Forbidden status code. An approaching is valid for one fueling only and can't be reused. If a long (not further disclosed time) has passed, the approaching is also invalidated. So if the client is receiving a 403 Forbidden on the above mentioned calls, a new approaching has to be issued, this can be done transparent to the user.
Query parameters
- 
    
  Reduces the opening hours rules. After compilation, only rules with the action open will remain in the response. Values are trueorfalse.
Responses
- 
      
      
        Created 
- 
      
      
        Bad request 
- 
      
      
        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-identityExample: { "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" } ] }
- 
      
      
        Resource not found 
- 
      
      
        The specified accept header is invalid 
- 
      
      
        The specified content type header is invalid 
- 
      
      
        Internal server error 
- 
      
      
        Error occurred while communicating with PACE services 
- 
      
      
        Error occurred while communicating with gas station network 
curl \
 --request POST 'https://api.pace.cloud/fueling/2020-4/gas-stations/93db55b6-a9ab-4597-a253-49a1718cea0a/approaching' \
 --header "Authorization: Bearer $ACCESS_TOKEN"{
  "data": {
    "id": "c3f037ea-492e-4033-9b4b-4efc7beca16c",
    "type": "approaching",
    "relationships": {
      "gasStation": {
        "data": {
          "id": "93db55b6-a9ab-4597-a253-49a1718cea0a",
          "type": "gasStation"
        }
      },
      "paymentMethods": {
        "data": [
          {
            "id": "6e30ccd1-0f76-4208-bd3d-a804f810cba8",
            "type": "paymentMethod"
          }
        ]
      },
      "unsupportedPaymentMethods": {
        "data": [
          {
            "id": "38ce6b10-c515-4316-9c40-64e1382b07b3",
            "type": "paymentMethod"
          }
        ]
      },
      "supportedPaymentMethodKinds": {
        "data": [
          {
            "id": "sepa",
            "type": "paymentMethodKind"
          }
        ]
      }
    }
  },
  "included": [
    {
      "id": "93db55b6-a9ab-4597-a253-49a1718cea0a",
      "type": "gasStation",
      "attributes": {
        "address": {
          "city": "Karlsruhe",
          "street": "Haid-und-Neu-Str.",
          "houseNo": "18",
          "postalCode": "76131",
          "countryCode": "DE"
        },
        "latitude": 49.013,
        "amenities": [
          "restaurant",
          "wifi",
          "toilets"
        ],
        "longitude": 8.425,
        "stationName": "PACE Station",
        "openingHours": {
          "rules": [
            {
              "days": [
                "monday",
                "tuesday",
                "wednesday",
                "thursday",
                "friday"
              ],
              "timespans": [
                {
                  "to": "23:00",
                  "from": "06:00"
                }
              ]
            },
            {
              "days": [
                "saturday"
              ],
              "timespans": [
                {
                  "to": "23:00",
                  "from": "07:00"
                }
              ]
            },
            {
              "days": [
                "sunday"
              ],
              "timespans": [
                {
                  "to": "22:00",
                  "from": "07:00"
                }
              ]
            }
          ],
          "timezone": "+01:00"
        },
        "paymentMethods": [
          "sepa"
        ]
      },
      "relationships": {
        "pumps": {
          "data": [
            {
              "id": "cc6eb485-3f23-48bb-aa79-f995ba35b824",
              "type": "pump"
            },
            {
              "id": "689631b2-cd75-4f01-a36e-72f77cd4f007",
              "type": "pump"
            }
          ]
        },
        "fuelPrices": {
          "data": [
            {
              "id": "6b5bff6f-74e1-40a1-9da0-72305292d939",
              "type": "fuelPrice"
            },
            {
              "id": "f563e0ee-ba9a-4869-8fe7-42639fcf375d",
              "type": "fuelPrice"
            },
            {
              "id": "cb1afd35-f531-4606-abc8-e1cfbc1f96f5",
              "type": "fuelPrice"
            }
          ]
        }
      }
    },
    {
      "id": "6b5bff6f-74e1-40a1-9da0-72305292d939",
      "type": "fuelPrice",
      "attributes": {
        "price": 1.399,
        "currency": "EUR",
        "fuelType": "ron95e5",
        "productName": "Super E5"
      }
    },
    {
      "id": "f563e0ee-ba9a-4869-8fe7-42639fcf375d",
      "type": "fuelPrice",
      "attributes": {
        "price": 1.379,
        "currency": "EUR",
        "fuelType": "ron95e10",
        "productName": "Super E10"
      }
    },
    {
      "id": "cb1afd35-f531-4606-abc8-e1cfbc1f96f5",
      "type": "fuelPrice",
      "attributes": {
        "price": 1.239,
        "currency": "EUR",
        "fuelType": "diesel",
        "productName": "Diesel"
      }
    },
    {
      "id": "cc6eb485-3f23-48bb-aa79-f995ba35b824",
      "type": "pump",
      "attributes": {
        "status": "free",
        "identifier": "1"
      }
    },
    {
      "id": "689631b2-cd75-4f01-a36e-72f77cd4f007",
      "type": "pump",
      "attributes": {
        "status": "inUse",
        "identifier": "2"
      }
    },
    {
      "id": "6e30ccd1-0f76-4208-bd3d-a804f810cba8",
      "meta": {
        "merchantName": "PACE"
      },
      "type": "paymentMethod",
      "attributes": {
        "kind": "sepa",
        "twoFactor": true,
        "vendorPRN": "prn:cms:payment-method-vendors:3af4b4a7-33fc-4930-9c2d-6eea7e488398",
        "identificationString": "DEUTSCHEBANK XX 3000"
      }
    },
    {
      "id": "38ce6b10-c515-4316-9c40-64e1382b07b3",
      "type": "paymentMethod",
      "attributes": {
        "kind": "sepa",
        "identificationString": "ING-DiBa XX 1337"
      }
    },
    {
      "id": "sepa",
      "type": "paymentMethodKind",
      "attributes": {}
    }
  ]
}{
  "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": {}
    }
  ]
}{
  "errors": [
    {
      "id": "string",
      "links": {
        "about": "string"
      },
      "status": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      },
      "meta": {}
    }
  ]
}