PayPal
API actions for the PayPal integration.
PayPal
Accept payments, manage catalog products, and automate billing with PayPal.
Capture a PayPal order
Capture payment for an approved PayPal order.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | string | Yes | Order ID to capture |
Response
{}Create a PayPal order
Create a PayPal checkout order ready for buyer approval.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | Order amount |
currency | string | Yes | Currency code (e.g. USD) |
description | string | No | Order description |
Response
{}Create a PayPal billing plan
Create a recurring billing plan for a PayPal product.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
product_id | string | Yes | Associated product ID |
name | string | Yes | Plan name |
interval_unit | string | Yes | Billing interval unit |
interval_count | number | Yes | Billing interval count |
currency | string | Yes | Billing currency |
amount | number | Yes | Recurring charge amount |
Response
{}Create a PayPal product
Create a catalog product to attach to billing plans.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Product name |
description | string | No | Product description |
category | string | No | Product category |
Response
{}Get PayPal order details
Retrieve the latest state for a PayPal order.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | string | Yes | Order ID to fetch |
Response
{}Refund a PayPal capture
Issue a partial or full refund for a completed capture.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
capture_id | string | Yes | Capture ID to refund |
amount | number | No | Amount to refund |
currency | string | No | Currency for refund |
Response
{}