Register a The Fuel Company Card as a payment method
By registering you allow the user to use a The Fuel Company Card as a payment method. The payment method ID is optional when posting data.
Responses
- 
      
      
        Created 
- 
      
      
        Already exists 
- 
      
      
        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" } ] }
- 
      
      
        The specified accept header is invalid 
- 
      
      
        Resource conflicts 
- 
      
      
        The specified content type header is invalid 
- 
      
      
        The request was well-formed but was unable to be followed due to semantic errors. The following codes may be seen: - provider:card-not-usable: The card is rejected by the payment provider, e.g., fuelcard deactivated
- provider:invalid-content: One or more fields of the payment method is not accepted by the payment provider.
- invalid-charset: The fields charset is not latin
- too-long: The fields content is too long
 
- 
      
      
        Internal server error 
curl \
 --request POST 'https://api.pace.cloud/pay/2025-1/payment-methods/tfc' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/vnd.api+json"{
  "data": {
    "id": "2a1319c3-c136-495d-b59a-47b3246d08af",
    "type": "paymentMethod",
    "attributes": {
      "kind": "tfc",
      "cardNumber": "625651136",
      "pin": "0000",
      "expiry": "2612",
      "managed": false
    }
  }
}{
  "data": {
    "id": "fc900b1f-97fc-4c9c-92de-e6d2f2dcc554",
    "type": "paymentMethod",
    "attributes": {
      "kind": "tfc",
      "identificationString": "The Fuel Company Card XX 123"
    }
  }
}{
  "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": {}
    }
  ]
}