Skip to main content
POST
/
v1
/
payments
/
payouts-item
/
{payout_item_id}
/
cancel
Cancel unclaimed payout item
curl --request POST \
  --url https://api-m.sandbox.paypal.com/v1/payments/payouts-item/{payout_item_id}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "payout_item_id": "<string>",
  "transaction_id": "<string>",
  "activity_id": "<string>",
  "transaction_status": "SUCCESS",
  "payout_item_fee": {
    "currency": "<string>",
    "value": "<string>"
  },
  "payout_batch_id": "<string>",
  "sender_batch_id": "<string>",
  "payout_item": {
    "recipient_type": "EMAIL",
    "amount": {
      "currency": "<string>",
      "value": "<string>"
    },
    "note": "<string>",
    "receiver": "<string>",
    "sender_item_id": "<string>",
    "recipient_name": {
      "prefix": "<string>",
      "given_name": "<string>",
      "surname": "<string>",
      "middle_name": "<string>",
      "suffix": "<string>",
      "alternate_full_name": "<string>",
      "full_name": "<string>"
    },
    "recipient_wallet": "PAYPAL",
    "purpose": "AWARDS"
  },
  "currency_conversion": {
    "from_amount": {
      "currency": "<string>",
      "value": "<string>"
    },
    "to_amount": {
      "currency": "<string>",
      "value": "<string>"
    },
    "exchange_rate": "<string>"
  },
  "time_processed": "2023-11-07T05:31:56Z",
  "errors": {
    "name": "<string>",
    "message": "<string>",
    "debug_id": "<string>",
    "information_link": "<string>",
    "details": [
      {
        "field": "<string>",
        "value": "<string>",
        "location": "body",
        "issue": "<string>",
        "description": "<string>"
      }
    ],
    "links": [
      {
        "href": "<string>",
        "rel": "<string>",
        "method": "GET"
      }
    ]
  },
  "links": [
    {
      "href": "<string>",
      "rel": "<string>",
      "method": "GET"
    }
  ]
}

Authorizations

Authorization
string
header
required

Oauth 2.0 authentication

Path Parameters

payout_item_id
string
required

The ID of the payout item to cancel.

Required string length: 1 - 32

Response

A successful request returns the HTTP 200 OK status code with a JSON response body that shows payout item details.

The payout item status and other details. A <code>payout_item_id</code> helps you identify denied payments. If a payment is denied, you can use the <code>payout_item_id</code> to identify the payment even if it lacks a <code>transaction_id</code>.

payout_item_id
string
required

The ID for the payout item. Visible when you show details for a payout.

Maximum length: 30
payout_batch_id
string
required

The PayPal-generated ID for the payout batch.

Maximum length: 30
payout_item
object
required

The sender-provided information for the payout item.

transaction_id
string

The PayPal-generated ID for the transaction.

Maximum length: 30
activity_id
string

The unique PayPal-generated common ID that links the sender- and receiver-side transactions. Used for tracking.

Maximum length: 30
transaction_status
enum<string>

The item transaction status.<blockquote><strong>Note:</strong> For <code>POST/v1/payments/payouts-item/{payout_item_id}/cancel</code>, the only possible <code>transaction_status</code> value is <code>RETURNED</code>.</blockquote>

Available options:
SUCCESS,
FAILED,
PENDING,
UNCLAIMED,
RETURNED,
ONHOLD,
BLOCKED,
REFUNDED,
REVERSED
payout_item_fee
object

The estimate for the payout fee. Initially, the fee is 0. The fee is populated after the item moves to the PENDING state

sender_batch_id
string

A sender-specified ID. Tracks the payout in an accounting system. Should be unique within 30 days.

Maximum length: 256
currency_conversion
object

The currency conversion applicable for this payout item.

time_processed
string<date-time>

The date and time when this item was last processed, in Internet date and time format.

Required string length: 1 - 100
errors
object

The error details.

An array of request-related HATEOAS links.

Maximum length: 15000
I