Path parameters

application/vnd.api+json

Body Required

  • data object
    Hide data attributes Show data attributes object
    • type string Required

      Value is paymentMethod.

    • id string(uuid)

      Payment method UUID

    • attributes object Required
      Hide attributes attribute Show attributes attribute object
      • poiID string

        Point of Interest ID

Responses

  • 200 application/vnd.api+json

    The Payment Method model was successfully fetched.

    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes object
  • Error while getting model of payment method

POST /payment-methods/{paymentMethodId}/model
curl \
 -X POST https://api.pace.cloud/pay/2024-2/payment-methods/93db55b6-a9ab-4597-a253-49a1718cea0a/model \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/vnd.api+json"
Request examples
{
  "data": {
    "type": "paymentMethod",
    "id": "d7101f72-a672-453c-9d36-d5809ef0ded6",
    "attributes": {
      "poiID": "c3f037ea-492e-4033-9b4b-4efc7beca16c"
    }
  }
}
Response examples (200)
{
  "data": {
    "type": "paymentMethod",
    "id": "c3f037ea-492e-4033-9b4b-4efc7beca16c",
    "attributes": {
      "paymentMethodModel": "broker"
    }
  }
}