Subscriptions
|
Name : | Subscriptions | |||
Base Path : | /undefined | |||
Server : | https://api-m.sandbox.paypal.com | |||
Version : | 1.6 | |||
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 <a href=\"/docs/subscriptions/\">Subscriptions Overview</a>." |
Name: Subscriptions
Server: https://api-m.sandbox.paypal.com
Version: 1.6
OperationID: | Path: | Verb: |
---|
Parameters |
Path | Ref |
---|
Parameter Name | IN | Required | LINK/TYPE |
---|
Request Body |
Path | Ref |
---|
Object Name | Field TYPE | PATTERN | ENUM | PARENT |
---|
Responses |
Path | Ref |
---|
Success Object | Field TYPE | PATTERN | ENUM | PARENT |
---|
No Payload Present
No Payload Present
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
Prefer | header | Active | false | Schema.type: string | |
PayPal-Request-Id | header | Active | false | Schema.type: string |
Description | Required | Content-Type | Schema | application/json |
---|
Status Code | Description | Content-Type | Schema |
---|---|---|---|
200: | A successful request returns the HTTP `200 OK` status code and a JSON response body that shows billing plan details. | application/json : | #/components/schemas/plan |
201: | A successful request returns the HTTP `201 Created` status code and a JSON response body that shows billing plan details. | application/json : | #/components/schemas/plan |
400: | Bad Request. Request is not well-formed, syntactically incorrect, or violates schema. | application/json : | [object Object],[object Object] |
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
422: | The requested action could not be performed, semantically incorrect, or failed business validation. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
Prefer | header | Active | false | Schema.type: string | |
product_id | query | Active | false | Schema.type: string | |
plan_ids | query | Active | false | Schema.type: string | |
page_size | query | Active | Schema.type: integer | ||
page | query | Active | Schema.type: integer | ||
total_required | query | Active | Schema.type: boolean |
Status Code | Description | Content-Type | Schema |
---|---|---|---|
200: | A successful request returns the HTTP `200 OK` status code and a JSON response body that lists billing plans. | application/json : | #/components/schemas/plan_collection |
400: | Request is not well-formed, syntactically incorrect, or violates schema. | application/json : | [object Object],[object Object] |
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
404: | The specified resource does not exist. | application/json : | #/components/schemas/error_404 |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
id | path | Active | true | Schema.type: string |
Status Code | Description | Content-Type | Schema |
---|---|---|---|
200: | A successful request returns the HTTP `200 OK` status code and a JSON response body that shows plan details. | application/json : | #/components/schemas/plan |
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
404: | The specified resource does not exist. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
id | path | Active | true | Schema.type: string |
Description | Required | Content-Type | Schema | #/components/requestBodies/patch_request |
---|
Status Code | Description | Content-Type | Schema |
---|---|---|---|
204: | A successful request returns the HTTP `204 No Content` status code with no JSON response body. | ||
400: | Request is not well-formed, syntactically incorrect, or violates schema. | application/json : | [object Object],[object Object] |
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
404: | The specified resource does not exist. | application/json : | [object Object],[object Object] |
422: | The requested action could not be performed, semantically incorrect, or failed business validation. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
id | path | Active | true | Schema.type: string |
Description | Required | Content-Type | Schema |
---|
Status Code | Description | Content-Type | Schema |
---|---|---|---|
204: | A successful request returns the HTTP `204 No Content` status code with no JSON response body. | ||
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
404: | The specified resource does not exist. | application/json : | [object Object],[object Object] |
422: | The requested action could not be performed, semantically incorrect, or failed business validation. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
id | path | Active | true | Schema.type: string |
Description | Required | Content-Type | Schema |
---|
Status Code | Description | Content-Type | Schema |
---|---|---|---|
204: | A successful request returns the HTTP `204 No Content` status code with no JSON response body. | ||
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
404: | The specified resource does not exist. | application/json : | [object Object],[object Object] |
422: | The requested action could not be performed, semantically incorrect, or failed business validation. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
id | path | Active | true | Schema.type: string |
Description | Required | Content-Type | Schema | application/json | #/components/schemas/update_pricing_schemes_list_request |
---|
Status Code | Description | Content-Type | Schema |
---|---|---|---|
204: | A successful request returns the HTTP `204 No Content` status code with no JSON response body. | ||
400: | Bad Request. Request is not well-formed, syntactically incorrect, or violates schema. | application/json : | [object Object],[object Object] |
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
404: | The specified resource does not exist. | application/json : | [object Object],[object Object] |
422: | The requested action could not be performed, semantically incorrect, or failed business validation. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
Prefer | header | Active | false | Schema.type: string | |
PayPal-Request-Id | header | Active | false | Schema.type: string |
Description | Required | Content-Type | Schema | application/json | #/components/schemas/subscription_request_post |
---|
Status Code | Description | Content-Type | Schema |
---|---|---|---|
200: | A successful request returns the HTTP `200 OK` status code and a JSON response body that shows subscription details. | application/json : | #/components/schemas/subscription |
201: | A successful request returns the HTTP `201 Created` status code and a JSON response body that shows subscription details. | application/json : | #/components/schemas/subscription |
400: | Bad Request. Request is not well-formed, syntactically incorrect, or violates schema. | application/json : | [object Object],[object Object] |
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
422: | The requested action could not be performed, semantically incorrect, or failed business validation. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
id | path | Active | true | Schema.type: string | |
fields | query | Active | Schema.type: string |
Status Code | Description | Content-Type | Schema |
---|---|---|---|
200: | A successful request returns the HTTP `200 OK` status code and a JSON response body that shows subscription details. | application/json : | #/components/schemas/subscription |
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
404: | The specified resource does not exist. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
id | path | Active | true | Schema.type: string |
Description | Required | Content-Type | Schema | #/components/requestBodies/patch_request |
---|
Status Code | Description | Content-Type | Schema |
---|---|---|---|
204: | A successful request returns the HTTP `204 No Content` status code with no JSON response body. | ||
400: | Request is not well-formed, syntactically incorrect, or violates schema. | application/json : | [object Object],[object Object] |
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
404: | The specified resource does not exist. | application/json : | [object Object],[object Object] |
422: | The requested action could not be performed, semantically incorrect, or failed business validation. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
id | path | Active | true | Schema.type: string |
Description | Required | Content-Type | Schema | application/json | #/components/schemas/subscription_revise_request |
---|
Status Code | Description | Content-Type | Schema |
---|---|---|---|
200: | A successful request returns the HTTP `200 OK` status code and a JSON response body that shows subscription details. | application/json : | #/components/schemas/subscription_revise_response |
400: | Bad Request. Request is not well-formed, syntactically incorrect, or violates schema. | application/json : | [object Object],[object Object] |
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
404: | The specified resource does not exist. | application/json : | [object Object],[object Object] |
422: | The requested action could not be performed, semantically incorrect, or failed business validation. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
id | path | Active | true | Schema.type: string |
Description | Required | Content-Type | Schema | application/json | #/components/schemas/subscription_suspend_request |
---|
Status Code | Description | Content-Type | Schema |
---|---|---|---|
204: | A successful request returns the HTTP `204 No Content` status code with no JSON response body. | ||
400: | Bad Request. Request is not well-formed, syntactically incorrect, or violates schema. | application/json : | [object Object],[object Object] |
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
404: | The specified resource does not exist. | application/json : | [object Object],[object Object] |
422: | The requested action could not be performed, semantically incorrect, or failed business validation. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
id | path | Active | true | Schema.type: string |
Description | Required | Content-Type | Schema | application/json | #/components/schemas/subscription_cancel_request |
---|
Status Code | Description | Content-Type | Schema |
---|---|---|---|
204: | A successful request returns the HTTP `204 No Content` status code with no JSON response body. | ||
400: | Bad Request. Request is not well-formed, syntactically incorrect, or violates schema. | application/json : | [object Object],[object Object] |
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
404: | The specified resource does not exist. | application/json : | [object Object],[object Object] |
422: | The requested action could not be performed, semantically incorrect, or failed business validation. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
id | path | Active | true | Schema.type: string |
Description | Required | Content-Type | Schema | application/json | #/components/schemas/subscription_activate_request |
---|
Status Code | Description | Content-Type | Schema |
---|---|---|---|
204: | A successful request returns the HTTP `204 No Content` status code with no JSON response body. | ||
400: | Bad Request. Request is not well-formed, syntactically incorrect, or violates schema. | application/json : | [object Object],[object Object] |
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
404: | The specified resource does not exist. | application/json : | [object Object],[object Object] |
422: | The requested action could not be performed, semantically incorrect, or failed business validation. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
PayPal-Request-Id | header | Active | false | Schema.type: string | |
id | path | Active | true | Schema.type: string |
Description | Required | Content-Type | Schema | application/json | #/components/schemas/subscription_capture_request |
---|
Status Code | Description | Content-Type | Schema |
---|---|---|---|
200: | A successful request returns the HTTP `200 OK` status code and a JSON response body that shows subscription details. | application/json : | #/components/schemas/transaction |
202: | Request Accepted. | ||
400: | Bad Request. Request is not well-formed, syntactically incorrect, or violates schema. | application/json : | [object Object],[object Object] |
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
404: | The specified resource does not exist. | application/json : | [object Object],[object Object] |
422: | The requested action could not be performed, semantically incorrect, or failed business validation. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |
Approval | Name | In | Required | Schema | |
---|---|---|---|---|---|
id | path | Active | true | Schema.type: string | |
start_time | query | Active | true | Schema.type: string | |
end_time | query | Active | true | Schema.type: string |
Status Code | Description | Content-Type | Schema |
---|---|---|---|
200: | A successful request returns the HTTP `200 OK` status code and a JSON response body that shows subscription details. | application/json : | #/components/schemas/transactions_list |
400: | Bad Request. Request is not well-formed, syntactically incorrect, or violates schema. | application/json : | [object Object],[object Object] |
401: | Authentication failed due to missing authorization header, or invalid authentication credentials. | application/json : | [object Object],[object Object] |
403: | Authorization failed due to insufficient permissions. | application/json : | [object Object],[object Object] |
404: | The specified resource does not exist. | application/json : | [object Object],[object Object] |
500: | An internal server error has occurred. | application/json : | #/components/schemas/error_500 |
default: | #/components/responses/default |