Authorizations
Oauth 2.0 authentication
Headers
The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager. It is mandatory for all single-step create order calls (E.g. Create Order Request with payment source information like Card, PayPal.vault_id, PayPal.billing_agreement_id, etc).
1 - 108
The preferred server response upon successful completion of the request. Value is:<ul><li><code>return=minimal</code>. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the <code>id</code>, <code>status</code> and HATEOAS links.</li><li><code>return=representation</code>. The server returns a complete resource representation, including the current state of the resource.</li></ul>
1 - 25
1 - 36
An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see <a href="https://developer.paypal.com/api/rest/requests/#paypal-auth-assertion">PayPal-Auth-Assertion</a>.
Path Parameters
The ID of the order that the tracking information is associated with.
1 - 36
Body
Completes an capture payment for an order.
The payment source definition.
Response
A successful response to an idempotent request returns the HTTP 200 OK
status code with a JSON response body that shows captured payment details.
The order details. The date and time stamps that are common to authorized payment, captured payment, and refund transactions.
The date and time when the transaction occurred, in Internet date and time format.
20 - 64
The date and time when the transaction was last updated, in Internet date and time format.
20 - 64
The ID of the order.
The payment source used to fund the payment.
The intent to either capture payment immediately or authorize a payment for an order after order creation.
CAPTURE
, AUTHORIZE
DEPRECATED. The customer is also known as the payer. The Payer object was intended to only be used with the payment_source.paypal
object. In order to make this design more clear, the details in the payer
object are now available under payment_source.paypal
. Please use payment_source.paypal
.
The customer who approves and pays for the order. The customer is also known as the payer.
An array of purchase units. Each purchase unit establishes a contract between a customer and merchant. Each purchase unit represents either a full or partial order that the customer intends to purchase from the merchant.
1 - 10
elementsThe order status.
CREATED
, SAVED
, APPROVED
, VOIDED
, COMPLETED
, PAYER_ACTION_REQUIRED
An array of request-related HATEOAS links. To complete payer approval, use the approve
link to redirect the payer. The API caller has 6 hours (default setting, this which can be changed by your account manager to 24/48/72 hours to accommodate your use case) from the time the order is created, to redirect your payer. Once redirected, the API caller has 6 hours for the payer to approve the order and either authorize or capture the order. If you are not using the PayPal JavaScript SDK to initiate PayPal Checkout (in context) ensure that you include application_context.return_url
is specified or you will get "We're sorry, Things don't appear to be working at the moment" after the payer approves the payment.