Easily Integrate
PayPal's Payment API using Konfig's TypeScript SDK
Growing API Companies trust Konfig's SDKs to onboard developers to their API.





First, instantiate the SDK
It only takes a few lines of code.
Then, send your first request
We made it really easy.
Enjoy a buttery smooth developer experience with 7 SDK methods
Parameter
The PayPal-generated ID for the authorized payment to void.
Response
The authorized payment transaction.
Authentication failed due to missing Authorization header, or invalid authentication credentials.
The request failed because an internal server error occurred.
The default error response.
Endpoint
Parameter
The PayPal-generated ID for the authorized payment to void.
The server stores keys for 45 days.
The preferred server response upon successful completion of the request. Value is:
return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes theid,statusand HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource.
Response
A captured payment.
Authentication failed due to missing Authorization header, or invalid authentication credentials.
The request failed because an internal server error occurred.
The default error response.
Endpoint
Parameter
The PayPal-generated ID for the authorized payment to void.
The server stores keys for 45 days.
The preferred server response upon successful completion of the request. Value is:
return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes theid,statusand HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource.
Response
The authorized payment transaction.
Authentication failed due to missing Authorization header, or invalid authentication credentials.
The request failed because an internal server error occurred.
The default error response.
Endpoint
Parameter
The PayPal-generated ID for the authorized payment to void.
An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see [PayPal-Auth-Assertion](/https://developer.paypal.com/.
Note:For three party transactions in which a partner is managing the API calls on behalf of a merchant, the partner must identify the merchant using either a PayPal-Auth-Assertion header or an access token with target_subject.
The preferred server response upon successful completion of the request. Value is:
return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes theid,statusand HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource.
Response
The authorized payment transaction.
A successful request returns the HTTP 204 No Content status code with no JSON response body. This response is returned when the Prefer header is set to return=minimal.
Request is not well-formed, syntactically incorrect, or violates schema.
The request failed because an internal server error occurred.
The default error response.
Endpoint
Parameter
The PayPal-generated ID for the captured payment to refund.
Response
A captured payment.
Authentication failed due to missing Authorization header, or invalid authentication credentials.
The request failed because an internal server error occurred.
The default error response.
Endpoint
Parameter
The PayPal-generated ID for the captured payment to refund.
The server stores keys for 45 days.
The preferred server response upon successful completion of the request. Value is:
return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes theid,statusand HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource.
An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see [PayPal-Auth-Assertion](/https://developer.paypal.com/.
Note:For three party transactions in which a partner is managing the API calls on behalf of a merchant, the partner must identify the merchant using either a PayPal-Auth-Assertion header or an access token with target_subject.
Response
The refund information.
The request failed because an internal server error occurred.
The default error response.
Endpoint
How Konfig Works
Konfig collects APIs and automatically generates SDKs so you can focus on building your application.
Konfig maintains the highest quality collection of OpenAPI Specifications on the internet in a GitHub repository
We pull OpenAPI Specifications from public sources, fix any errors, and make sure they pass our lint rules. We continually make sure the repository is up-to-date and collect up-time and response time metrics for every API.

Generates AI-Augmented SDKs from openapi-examples
Our SDK generator is trusted by growing API companies and goes through a rigorous testing process to ensure the generated SDKs are high-quality and easy to use.

Publishes to standard package managers
We publish to standard package managers like npm, PyPI, and Maven so you can easily integrate the SDK into your application.

About PayPal
We're championing possibilities for all by making money fast, easy, and more enjoyable. Our hope is unlock opportunities for people in their everyday lives and empower the millions of people and businesses around the world who trust, rely, and use PayPal every day. For support, visit the PayPal Help Center. https://payp.al/help For employment opportunities, check out our job openings in the 'Jobs' tab. We're an equal opportunity employer that welcomes diversity, and offer generous benefits to help you thrive at work and in your free time.
