openapi: 3.0.3 info: title: Paypal Subscriptions Authorizations Disputes-Actions 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: Disputes-Actions description: Use the `/disputes` resource with a dispute ID and an action to:
WAITING_FOR_SELLER_RESPONSE status while customers can provide evidence for disputes with the WAITING_FOR_BUYER_RESPONSE status. Evidence can be a proof of delivery or proof of refund document or notes, which can include logs. A proof of delivery document includes a tracking number while a proof of refund document includes a refund ID. For other evidence type, notes and documents can be given. Evidences requested from you can be found by checking the type of evidence for the corresponding source under the evidence section of the show dispute details response. The source will be REQUESTED_FROM_SELLER for evidences requested from the merchant while it will be REQUESTED_FROM_BUYER for evidences requested from the customer. For constraints and rules regarding documents, see documents.provide-evidence link in the HATEOAS links of the show dispute details response. In case the link is not present in the response, you can't provide evidence for the dispute. For information about dispute reasons, see dispute reasons.
operationId: disputes.provide-evidence
responses:
'200':
description: A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.
content:
application/json:
schema:
$ref: '#/components/schemas/subsequent_action'
'400':
description: The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.
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/id'
requestBody:
$ref: '#/components/requestBodies/evidences'
security:
- Oauth2:
- https://uri.paypal.com/services/disputes/update-seller
- Oauth2:
- https://uri.paypal.com/services/disputes/update-buyer
- Oauth2:
- https://uri.paypal.com/services/disputes/update-partner
tags:
- Disputes-Actions
/v1/customer/disputes/{id}/appeal:
post:
summary: Paypal Appeal dispute
description: Appeals a dispute, by ID. To appeal a dispute, use the appeal link in the HATEOAS links from the show dispute details response. If this link does not appear, you cannot appeal the dispute. Submit new evidence as a document or notes in the JSON request body. For constraints and rules regarding documents, see documents.Important: This method is for sandbox use only.Settles a dispute in either the customer's or merchant's favor. Merchants can make this call in the sandbox to complete end-to-end dispute resolution testing, which mimics the dispute resolution that PayPal agents normally complete. To make this call, the dispute
status must be UNDER_REVIEW and adjudicate link should be available in the HATEOAS links of the show dispute details response.
operationId: disputes.adjudicate
responses:
'200':
description: A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.
content:
application/json:
schema:
$ref: '#/components/schemas/subsequent_action'
'400':
description: The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'422':
description: The requested action could not be completed. The request returns the HTTP `422 Unprocessable Entity` status code.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'500':
description: An internal server error occurred. The request returns the HTTP `500 Internal Server Error` status code.
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/id'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/adjudicate'
examples:
adjudicate:
value:
adjudication_outcome: BUYER_FAVOR
multipart/related:
schema:
$ref: '#/components/schemas/adjudicate'
multipart/form-data:
schema:
$ref: '#/components/schemas/adjudicate'
multipart/mixed:
schema:
$ref: '#/components/schemas/adjudicate'
security:
- Oauth2:
- https://uri.paypal.com/services/disputes/update-seller
- Oauth2:
- https://uri.paypal.com/services/disputes/update-buyer
tags:
- Disputes-Actions
/v1/customer/disputes/{id}/require-evidence:
post:
summary: Paypal Update dispute status
description: Important: This method is for sandbox use only.Updates the status of a dispute, by ID, from
UNDER_REVIEW to either:WAITING_FOR_BUYER_RESPONSEWAITING_FOR_SELLER_RESPONSEstatus must be UNDER_REVIEW and require-evidence link should be available in the HATEOAS links of the show dispute details response. Specify an action value in the JSON request body to indicate whether the status change enables the customer or merchant to submit evidence:If action is | The status updates to |
|---|---|
BUYER_EVIDENCE | WAITING_FOR_BUYER_RESPONSE |
SELLER_EVIDENCE | WAITING_FOR_SELLER_RESPONSE |
send-message link in the HATEOAS links of the show dispute details response and specify the message in the JSON request body. In case the link is not present in the response you can't send a message on the dispute.
operationId: disputes.send-message
responses:
'200':
description: A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.
content:
application/json:
schema:
$ref: '#/components/schemas/subsequent_action'
'400':
description: The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'422':
description: The requested action could not be completed. The request returns the HTTP `422 Unprocessable Entity` status code.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'500':
description: An internal server error occurred. The request returns the HTTP `500 Internal Server Error` status code.
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/id'
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
message_document:
description: A file that contains any additional info about the message posted.
type: string
format: binary
security:
- Oauth2:
- https://uri.paypal.com/services/disputes/update-seller
- Oauth2:
- https://uri.paypal.com/services/disputes/update-buyer
tags:
- Disputes-Actions
/v1/customer/disputes/{id}/make-offer:
post:
summary: Paypal Make offer to resolve dispute
description: Makes an offer to the other party to resolve a dispute, by ID. To make this call, the stage in the dispute lifecycle must be `INQUIRY`. If the customer accepts the offer, PayPal automatically makes a refund. Allowed offer_type values for the request is available in dispute details allowed response options object.
operationId: disputes.make-offer
responses:
'200':
description: A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.
content:
application/json:
schema:
$ref: '#/components/schemas/subsequent_action'
'400':
description: The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'422':
description: The requested action could not be completed. The request returns the HTTP `422 Unprocessable Entity` status code.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'500':
description: An internal server error occurred. The request returns the HTTP `500 Internal Server Error` status code.
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/id'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/make_offer'
examples:
make_offer:
value:
note: Offer refund with replacement item.
offer_amount:
currency_code: USD
value: '23'
offer_type: REFUND_WITH_REPLACEMENT
multipart/related:
schema:
$ref: '#/components/schemas/make_offer'
multipart/form-data:
schema:
$ref: '#/components/schemas/make_offer'
multipart/mixed:
schema:
$ref: '#/components/schemas/make_offer'
security:
- Oauth2:
- https://uri.paypal.com/services/disputes/update-seller
- Oauth2:
- https://uri.paypal.com/services/disputes/update-buyer
tags:
- Disputes-Actions
/v1/customer/disputes/{id}/accept-offer:
post:
summary: Paypal Accept offer to resolve dispute
description: The customer accepts the offer from merchant to resolve a dispute, by ID. PayPal automatically refunds the amount proposed by merchant to the customer.
operationId: disputes.accept-offer
responses:
'200':
description: A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.
content:
application/json:
schema:
$ref: '#/components/schemas/subsequent_action'
'202':
description: A successfully accepted request returns the HTTP `202 Accepted` status code and a JSON response body that includes a [HATEOAS link](/docs/api/reference/api-responses/#hateoas-links) to the ID of the request. The request returns `202 Accepted` status in case money movement for the offer is delayed due to some internal reasons.
content:
application/json:
schema:
$ref: '#/components/schemas/subsequent_action'
'400':
description: The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'422':
description: The requested action could not be completed. The request returns the HTTP `422 Unprocessable Entity` status code.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'500':
description: An internal server error occurred. The request returns the HTTP `500 Internal Server Error` status code.
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/id'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/accept_offer'
examples:
accept_offer:
value:
note: I am ok with the refund offered.
multipart/related:
schema:
$ref: '#/components/schemas/accept_offer'
multipart/form-data:
schema:
$ref: '#/components/schemas/accept_offer'
multipart/mixed:
schema:
$ref: '#/components/schemas/accept_offer'
security:
- Oauth2:
- https://uri.paypal.com/services/disputes/update-buyer
tags:
- Disputes-Actions
/v1/customer/disputes/{id}/deny-offer:
post:
summary: Paypal Deny offer to resolve dispute
description: Denies an offer that the merchant proposes for a dispute, by ID.
operationId: disputes.deny-offer
responses:
'200':
description: A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.
content:
application/json:
schema:
$ref: '#/components/schemas/subsequent_action'
'400':
description: The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'422':
description: The requested action could not be completed. The request returns the HTTP `422 Unprocessable Entity` status code.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'500':
description: An internal server error occurred. The request returns the HTTP `500 Internal Server Error` status code.
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/id'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/deny_offer'
examples:
deny_offer:
value:
note: refund offer is very low.
multipart/related:
schema:
$ref: '#/components/schemas/deny_offer'
multipart/form-data:
schema:
$ref: '#/components/schemas/deny_offer'
multipart/mixed:
schema:
$ref: '#/components/schemas/deny_offer'
security:
- Oauth2:
- https://uri.paypal.com/services/disputes/update-buyer
tags:
- Disputes-Actions
/v1/customer/disputes/{id}/acknowledge-return-item:
post:
summary: Paypal Acknowledge returned item
description: Acknowledges that the customer returned an item for a dispute, by ID. A merchant can make this request for disputes with the `MERCHANDISE_OR_SERVICE_NOT_AS_DESCRIBED` reason. Allowed acknowledgement_type values for the request is available in dispute details allowed response options object. For constraints and rules regarding documents, see documents.
operationId: disputes.acknowledge-return-item
responses:
'200':
description: A successful request returns the HTTP `200 OK` status code and a JSON response body that includes a link to the dispute.
content:
application/json:
schema:
$ref: '#/components/schemas/subsequent_action'
'400':
description: The request failed due to a validation error. The request returns the HTTP `400 Bad Request` status code.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'422':
description: The requested action could not be completed. The request returns the HTTP `422 Unprocessable Entity` status code.
content:
application/json:
schema:
$ref: '#/components/schemas/error'
'500':
description: An internal server error occurred. The request returns the HTTP `500 Internal Server Error` status code.
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/id'
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
acknowledgement_document:
description: A file with evidence.
type: string
format: binary
security:
- Oauth2:
- https://uri.paypal.com/services/disputes/update-seller
tags:
- Disputes-Actions
/v1/customer/disputes/{id}/provide-supporting-info:
post:
summary: Paypal Provide supporting information for dispute
description: Provides supporting information for a dispute, by ID. A merchant or buyer can make this request for disputes if they find the `provide-supporting-info` link in the HATEOAS links in the list disputes response. The party can provide the supporting information to PayPal to defend themselves only when the `dispute_life_cycle_stage` is `CHARGEBACK`, `PRE_ARBITRATION`, or `ARBITRATION`. They can provide a note that describes their part with details or upload any supporting documents to support their side. For constraints and rules regarding documents, see documents.Craven House.
maxLength: 100
sub_building:
type: string
description: The first-order entity below a named building or location that represents the sub-premises. Usually a single building within a collection of buildings with a common name. Can be a flat, story, floor, room, or apartment.
maxLength: 100
required:
- country_code
country_code:
type: string
description: The [two-character ISO 3166-1 code](/docs/api/reference/country-codes/) that identifies the country or region.Note: The country code for Great Britain isformat: ppaas_common_country_code_v2 maxLength: 2 minLength: 2 pattern: ^([A-Z]{2}|C2)$ adjudicate: type: object title: Settle Request description: A request to settle a dispute in either the customer's or merchant's favor. properties: adjudication_outcome: type: string minLength: 1 maxLength: 255 pattern: ^[0-9A-Z_]+$ description: The outcome of the adjudication. enum: - BUYER_FAVOR - SELLER_FAVOR required: - adjudication_outcome 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 make_offer: type: object title: Make Offer Request description: A merchant request to make an offer to resolve a dispute. properties: note: type: string minLength: 1 maxLength: 2000 description: The merchant's notes about the offer. offer_amount: description: The amount proposed to resolve the dispute. $ref: '#/components/schemas/money' return_shipping_address: description: The return address for the item. Required when the customer must return an item to the merchant for theGBand notUKas used in the top-level domain names for that country. Use the `C2` country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions.
MERCHANDISE_OR_SERVICE_NOT_AS_DESCRIBED dispute reason, especially if the refund amount is less than the dispute amount.
$ref: '#/components/schemas/address_portable'
invoice_id:
type: string
minLength: 1
maxLength: 127
description: The merchant-provided ID of the invoice for the refund. This optional value maps the refund to an invoice ID in the merchant's system.
pattern: ^[A-Za-z0-9:\-|]+$
offer_type:
$ref: '#/components/schemas/offer_type'
required:
- note
- offer_type
subsequent_action:
title: Subsequent Action
type: object
description: The subsequent action.
properties:
links:
type: array
minItems: 1
maxItems: 10
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
link_description:
type: object
title: Link Description
description: The request-related [HATEOAS link](/docs/api/reference/api-responses/#hateoas-links) information.
required:
- href
- rel
properties:
href:
type: string
description: The complete target URL. To make the related call, combine the method with this [URI Template-formatted](https://tools.ietf.org/html/rfc6570) link. For pre-processing, include the `$`, `(`, and `)` characters. The `href` is the key HATEOAS component that links a completed call with a subsequent call.
rel:
type: string
description: The [link relation type](https://tools.ietf.org/html/rfc5988#section-4), which serves as an ID for a link that unambiguously describes the semantics of the link. See [Link Relations](https://www.iana.org/assignments/link-relations/link-relations.xhtml).
method:
type: string
description: The HTTP method required to make the related call.
enum:
- GET
- POST
- PUT
- DELETE
- HEAD
- CONNECT
- OPTIONS
- PATCH
require_evidence:
type: object
title: Require Evidence Request
description: Sandbox only. Updates the state of a dispute, by ID, to either WAITING_FOR_BUYER_RESPONSE or WAITING_FOR_SELLER_RESPONSE. This state change enables either the customer or merchant to submit evidence for the dispute. Specify an action value in the JSON request body to indicate whether the state change enables the customer or merchant to submit evidence.
properties:
action:
type: string
minLength: 1
maxLength: 255
pattern: ^[0-9A-Z_]+$
description: The action. Indicates whether the state change enables the customer or merchant to submit evidence.
enum:
- BUYER_EVIDENCE
- SELLER_EVIDENCE
required:
- action
currency_code:
description: The [three-character ISO-4217 currency code](/docs/api/reference/currency-codes/) that identifies the currency.
type: string
format: ppaas_common_currency_code_v2
minLength: 3
maxLength: 3
deny_offer:
type: object
title: Deny Offer Request
description: A customer request to deny the offer made by the merchant.
properties:
note:
type: string
minLength: 1
maxLength: 2000
description: The customer notes about the denial of offer. PayPal can but the merchant cannot view these notes.
required:
- note
money:
type: object
title: Money
description: The currency and amount for a financial transaction, such as a balance or payment due.
properties:
currency_code:
$ref: '#/components/schemas/currency_code'
value:
type: string
description: The value, which might be: