Skip to content
For LLMsView as Markdown·

PayPal ​

Process payments, manage orders, and handle disputes via the PayPal REST API.

DetailValue
CategoryPayments
Base URLhttps://api-m.paypal.com
AuthenticationOAuth2 Client Credentials
Endpoints6
Connector keypaypal

Using PayPal in a workflow ​

  1. Go to Connections and click New Connection.
  2. Pick PayPal from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown. The full list is below.

Available endpoints ​

EndpointSummary
POST /checkout/ordersCreate an order
GET /checkout/orders/{order_id}Get order details
POST /checkout/orders/{order_id}/captureCapture payment for an order
POST /payments/captures/{capture_id}/refundRefund a captured payment
GET /payments/captures/{capture_id}Get capture details
POST /payments/authorizations/{authorization_id}/captureCapture an authorized payment

Each endpoint is documented in full below. Use the outline on the right to jump to one.

POST /checkout/orders ​

Create an order

DetailValue
Operation IDpayments.createOrder
MethodPOST
Path/checkout/orders

Parameters ​

No parameters.

Request Body ​

FieldType
intentstring
purchase_unitsarray

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your PayPal connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.createOrder.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PayPal API reference.

GET /checkout/orders/{order_id} ​

Get order details

DetailValue
Operation IDpayments.getOrder
MethodGET
Path/checkout/orders/{order_id}

Parameters ​

NameLocationTypeRequired
order_idpathstringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your PayPal connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.getOrder.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PayPal API reference.

POST /checkout/orders/{order_id}/capture ​

Capture payment for an order

DetailValue
Operation IDpayments.captureOrder
MethodPOST
Path/checkout/orders/{order_id}/capture

Parameters ​

NameLocationTypeRequired
order_idpathstringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your PayPal connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.captureOrder.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PayPal API reference.

POST /payments/captures/{capture_id}/refund ​

Refund a captured payment

DetailValue
Operation IDpayments.refundCapture
MethodPOST
Path/payments/captures/{capture_id}/refund

Parameters ​

NameLocationTypeRequired
capture_idpathstringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your PayPal connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.refundCapture.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PayPal API reference.

GET /payments/captures/{capture_id} ​

Get capture details

DetailValue
Operation IDpayments.getCapture
MethodGET
Path/payments/captures/{capture_id}

Parameters ​

NameLocationTypeRequired
capture_idpathstringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your PayPal connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.getCapture.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PayPal API reference.

POST /payments/authorizations/{authorization_id}/capture ​

Capture an authorized payment

DetailValue
Operation IDpayments.captureAuthorization
MethodPOST
Path/payments/authorizations/{authorization_id}/capture

Parameters ​

NameLocationTypeRequired
authorization_idpathstringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your PayPal connection from the Connection dropdown.
  3. In the Operation dropdown, select payments.captureAuthorization.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream PayPal API reference.