PPylon Developers
ApiPayments

Initiate payment

Initiates payment with the selected payment method (card, PayPal, MB Way, Multibanco).

POST
/api/v1/payments/intents/{id}/initiate
AuthorizationBearer <token>

Enter your bearer token from the Pylon Auth API.

In: header

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://loading/api/v1/payments/intents/497f6eca-6276-4993-bfeb-53cbbbba6f08/initiate" \  -H "Content-Type: application/json" \  -d '{    "paymentMethodType": "string"  }'
{
  "intentId": "9b966aba-7d18-4a93-b6a8-43845b096776",
  "clientSecret": null,
  "status": "string",
  "requiresAction": true,
  "actionUrl": null,
  "multibancoEntity": null,
  "multibancoReference": null
}
{
  "code": "string",
  "message": "string"
}