paypal_get_order

Pack: paypal · Endpoint: https://gateway.pipeworx.io/paypal/mcp

Get full details of a PayPal order by ID (e.g., “3JU84394D694620H”). Returns buyer info, items, amounts, and fulfillment status.

Parameters

NameTypeRequiredDescription
_clientIdstringyesPayPal app Client ID
_clientSecretstringyesPayPal app Client Secret
_sandboxbooleannoUse sandbox environment (default: false)
order_idstringyesPayPal order ID

Example call

Arguments

{
  "_clientId": "your-paypal-client-id",
  "_clientSecret": "your-paypal-client-secret",
  "order_id": "3JU84394D694620H"
}

curl

curl -X POST https://gateway.pipeworx.io/paypal/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"paypal_get_order","arguments":{"_clientId":"your-paypal-client-id","_clientSecret":"your-paypal-client-secret","order_id":"3JU84394D694620H"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('paypal_get_order', {
  "_clientId": "your-paypal-client-id",
  "_clientSecret": "your-paypal-client-secret",
  "order_id": "3JU84394D694620H"
});

Response shape

FieldTypeDescription
idstringOrder ID
statusstringOrder status (e.g., CREATED, APPROVED, VOIDED, COMPLETED)
payerobjectPayer information
purchase_unitsarrayItems and amounts in the order
create_timestringOrder creation timestamp
update_timestringOrder last update timestamp
linksarray
Full JSON Schema
{
  "type": "object",
  "description": "Full details of a PayPal order",
  "properties": {
    "id": {
      "type": "string",
      "description": "Order ID"
    },
    "status": {
      "type": "string",
      "description": "Order status (e.g., CREATED, APPROVED, VOIDED, COMPLETED)"
    },
    "payer": {
      "type": "object",
      "description": "Payer information",
      "properties": {
        "name": {
          "type": "object",
          "properties": {
            "given_name": {
              "type": "string",
              "description": "First name"
            },
            "surname": {
              "type": "string",
              "description": "Last name"
            }
          }
        },
        "email_address": {
          "type": "string",
          "description": "Payer email"
        },
        "address": {
          "type": "object",
          "properties": {
            "address_line_1": {
              "type": "string",
              "description": "Street address"
            },
            "admin_area_2": {
              "type": "string",
              "description": "City"
            },
            "admin_area_1": {
              "type": "string",
              "description": "State"
            },
            "postal_code": {
              "type": "string",
              "description": "Postal code"
            },
            "country_code": {
              "type": "string",
              "description": "Country code"
            }
          }
        }
      }
    },
    "purchase_units": {
      "type": "array",
      "description": "Items and amounts in the order",
      "items": {
        "type": "object",
        "properties": {
          "reference_id": {
            "type": "string",
            "description": "Reference ID"
          },
          "amount": {
            "type": "object",
            "properties": {
              "currency_code": {
                "type": "string",
                "description": "Currency code"
              },
              "value": {
                "type": "string",
                "description": "Total amount"
              },
              "breakdown": {
                "type": "object",
                "properties": {
                  "item_total": {
                    "type": "object",
                    "properties": {
                      "currency_code": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    }
                  },
                  "shipping": {
                    "type": "object",
                    "properties": {
                      "currency_code": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    }
                  },
                  "tax_total": {
                    "type": "object",
                    "properties": {
                      "currency_code": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Item name"
                },
                "unit_amount": {
                  "type": "object",
                  "properties": {
                    "currency_code": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  }
                },
                "quantity": {
                  "type": "string",
                  "description": "Item quantity"
                }
              }
            }
          },
          "shipping": {
            "type": "object",
            "properties": {
              "address": {
                "type": "object",
                "properties": {
                  "address_line_1": {
                    "type": "string"
                  },
                  "admin_area_2": {
                    "type": "string"
                  },
                  "admin_area_1": {
                    "type": "string"
                  },
                  "postal_code": {
                    "type": "string"
                  },
                  "country_code": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "create_time": {
      "type": "string",
      "description": "Order creation timestamp"
    },
    "update_time": {
      "type": "string",
      "description": "Order last update timestamp"
    },
    "links": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "href": {
            "type": "string",
            "description": "URL link"
          },
          "rel": {
            "type": "string",
            "description": "Link relation (e.g., self, approve)"
          },
          "method": {
            "type": "string",
            "description": "HTTP method"
          }
        }
      }
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "paypal": {
      "url": "https://gateway.pipeworx.io/paypal/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026