openapi: 3.0.3
info:
title: Paypal Subscriptions Authorizations Payouts-Item API
description: You can use billing plans and subscriptions to create subscriptions that process recurring PayPal payments for physical or digital goods, or services. A plan includes pricing and billing cycle information that defines the amount and frequency of charge for a subscription. You can also define a fixed plan, such as a $5 basic plan or a volume- or graduated-based plan with pricing tiers based on the quantity purchased. For more information, see Subscriptions Overview.
version: '1.6'
contact: {}
servers:
- url: https://api-m.sandbox.paypal.com
description: PayPal Sandbox Environment
- url: https://api-m.paypal.com
description: PayPal Live Environment
tags:
- name: Payouts-Item
description: Use the `/payouts-item` resource to show payout item details and cancel an unclaimed payout item.
paths:
/v1/payments/payouts-item/{payout_item_id}:
get:
summary: Paypal Show payout item details
description: Shows details for a payout item, by ID. A payout_item_id helps you identify denied payments. If a payment is denied, you can use the payout_item_id to identify the payment even if it lacks a transaction_id.
operationId: payouts-item.get
responses:
'200':
description: A successful request returns the HTTP 200 OK status code and a JSON response body with a payout_item_details object, which contains data about a payout item including the transaction status.
content:
application/json:
schema:
$ref: '#/components/schemas/payout_item-2'
'404':
description: Resource Not Found.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'500':
description: An internal server error has occurred.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
default:
description: The error response.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
parameters:
- $ref: '#/components/parameters/payout_item_id'
security:
- Oauth2:
- https://uri.paypal.com/payments/payouts
tags:
- Payouts-Item
/v1/payments/payouts-item/{payout_item_id}/cancel:
post:
summary: Paypal Cancel unclaimed payout item
description: Cancels an unclaimed payout item, by ID. If no one claims the unclaimed item within 30 days, the API automatically returns the funds to the sender. Use this call to cancel the unclaimed item before the automatic 30-day refund. You can cancel payout items with a transaction_status of UNCLAIMED.
operationId: payouts-item.cancel
responses:
'200':
description: A successful request returns the HTTP `200 OK` status code with a JSON response body that shows payout item details.
content:
application/json:
schema:
$ref: '#/components/schemas/payout_item-2'
'400':
description: Request is not well-formed, syntactically incorrect, or violates schema.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'404':
description: Resource Not Found.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'500':
description: An internal server error has occurred.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
default:
description: The error response.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
parameters:
- $ref: '#/components/parameters/payout_item_id'
security:
- Oauth2:
- https://uri.paypal.com/payments/payouts
tags:
- Payouts-Item
components:
schemas:
payout_item-2:
type: object
title: Payout Item
description: The payout item status and other details. A payout_item_id helps you identify denied payments. If a payment is denied, you can use the payout_item_id to identify the payment even if it lacks a transaction_id.
properties:
payout_item_id:
type: string
description: The ID for the payout item. Visible when you show details for a payout.
minLength: 0
maxLength: 30
pattern: ^.*$
transaction_id:
type: string
description: The PayPal-generated ID for the transaction.
minLength: 0
maxLength: 30
pattern: ^.*$
activity_id:
type: string
description: The unique PayPal-generated common ID that links the sender- and receiver-side transactions. Used for tracking.
minLength: 0
maxLength: 30
pattern: ^.*$
transaction_status:
$ref: '#/components/schemas/transaction_enum'
payout_item_fee:
description: The estimate for the payout fee. Initially, the fee is `0`. The fee is populated after the item moves to the `PENDING` state
$ref: '#/components/schemas/currency'
payout_batch_id:
type: string
description: The PayPal-generated ID for the payout batch.
minLength: 0
maxLength: 30
pattern: ^.*$
sender_batch_id:
type: string
description: A sender-specified ID. Tracks the payout in an accounting system. Should be unique within 30 days.
minLength: 0
maxLength: 256
pattern: ^.*$
payout_item:
description: The sender-provided information for the payout item.
$ref: '#/components/schemas/payout_item_detail'
currency_conversion:
description: The currency conversion applicable for this payout item.
$ref: '#/components/schemas/payout_currency_conversion'
time_processed:
type: string
format: date-time
description: The date and time when this item was last processed, in [Internet date and time format](https://tools.ietf.org/html/rfc3339#section-5.6).
minLength: 1
maxLength: 100
errors:
$ref: '#/components/schemas/error'
description: The error details.
links:
type: array
description: An array of request-related [HATEOAS links](/api/rest/responses/#hateoas-links).
readOnly: true
items:
$ref: '#/components/schemas/link_description'
minItems: 0
maxItems: 15000
required:
- payout_item_id
- payout_batch_id
- payout_item
purpose_enum:
type: string
title: Purpose
description: The purpose of the transaction.
minLength: 1
maxLength: 40
pattern: ^[A-Z0-9_]+$
enum:
- AWARDS
- PRIZES
- DONATIONS
- GOODS
- SERVICES
- REBATES
- CASHBACK
- DISCOUNTS
- NON_GOODS_OR_SERVICES
name:
type: object
title: Name
description: The name of the party.
properties:
prefix:
type: string
description: The prefix, or title, to the party's name.
maxLength: 140
given_name:
type: string
description: When the party is a person, the party's given, or first, name.
maxLength: 140
surname:
type: string
description: When the party is a person, the party's surname or family name. Also known as the last name. Required when the party is a person. Use also to store multiple surnames including the matronymic, or mother's, surname.
maxLength: 140
middle_name:
type: string
description: When the party is a person, the party's middle name. Use also to store multiple middle names including the patronymic, or father's, middle name.
maxLength: 140
suffix:
type: string
description: The suffix for the party's name.
maxLength: 140
alternate_full_name:
type: string
description: DEPRECATED. The party's alternate name. Can be a business name, nickname, or any other name that cannot be split into first, last name. Required when the party is a business.
maxLength: 300
full_name:
type: string
description: When the party is a person, the party's full name.
maxLength: 300
transaction_enum:
title: Transaction status
description: The item transaction status.
Note: Fortype: string minLength: 1 maxLength: 36 pattern: ^[0-9A-Z_]+$ enum: - SUCCESS - FAILED - PENDING - UNCLAIMED - RETURNED - ONHOLD - BLOCKED - REFUNDED - REVERSED error: type: object title: Error description: The error details. properties: name: type: string description: The human-readable, unique name of the error. message: type: string description: The message that describes the error. debug_id: type: string description: The PayPal internal ID. Used for correlation purposes. information_link: type: string description: The information link, or URI, that shows detailed information about this error for the developer. readOnly: true details: type: array description: An array of additional details about the error. items: $ref: '#/components/schemas/error_details-2' links: type: array description: An array of request-related [HATEOAS links](/docs/api/reference/api-responses/#hateoas-links). readOnly: true items: $ref: '#/components/schemas/link_description' readOnly: true required: - name - message - debug_id payout_item_detail: type: object title: Payout Item Detail description: The details for a sender-created payout to a single recipient. properties: recipient_type: $ref: '#/components/schemas/recipient_enum' amount: description: The currency and amount of payout item. Might be an integer for currencies like `JPY` that are not typically fractional or a decimal fraction for currencies like `TND` that are subdivided into thousandths. For the required number of decimal places for a currency code, see [Currency codes - ISO 4217](https://www.iso.org/iso-4217-currency-codes.html). $ref: '#/components/schemas/currency' note: type: string description: The sender-specified note for notifications. Supports up to 4000 ASCII characters and 1000 non-ASCII characters. minLength: 0 maxLength: 4000 pattern: ^.*$ receiver: type: string description: The receiver of the payment. Corresponds to the `recipient_type` value in the request. minLength: 0 maxLength: 127 pattern: ^.*$ sender_item_id: type: string description: A sender-specified ID number. Tracks the payout in an accounting system. minLength: 0 maxLength: 63 pattern: ^.*$ recipient_name: description: The name of the recipient where money is credited. For `UNCLAIMED` payments, the recipient name is populated after the payment is claimed. $ref: '#/components/schemas/name' recipient_wallet: description: The recipient wallet. $ref: '#/components/schemas/recipient_wallet_enum' purpose: description: The purpose of the transaction. $ref: '#/components/schemas/purpose_enum' required: - amount - receiver currency: type: object title: Currency description: The currency and amount for a financial transaction, such as a balance or payment due. properties: currency: type: string description: The [three-character ISO-4217 currency code](/docs/integration/direct/rest/currency-codes/). value: type: string description: The value, which might be:POST/v1/payments/payouts-item/{payout_item_id}/cancel, the only possibletransaction_statusvalue isRETURNED.