{
"opencollection": "1.0.0",
"info": {
"name": "Paypal Subscriptions Authorizations Invoices API",
"version": "1.6"
},
"items": [
{
"info": {
"name": "Invoices",
"type": "folder"
},
"items": [
{
"info": {
"name": "Paypal List invoices",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api-m.sandbox.paypal.com/v2/invoicing/invoices",
"params": [
{
"name": "page",
"value": "",
"type": "query",
"description": "The page number to be retrieved, for the list of templates. So, a combination of `page=1` and `page_size=20` returns the first 20 templates. A combination of `page=2` and `page_size=20` returns the next 20 templates."
},
{
"name": "page_size",
"value": "",
"type": "query",
"description": "The maximum number of templates to return in the response."
},
{
"name": "total_required",
"value": "",
"type": "query",
"description": "Indicates whether the to show total_pages and total_items in the response."
},
{
"name": "fields",
"value": "",
"type": "query",
"description": "The fields to return in the response. Value is `all` or `none`. To return only the template name, ID, and default attributes, specify `none`."
}
],
"auth": {
"type": "oauth2",
"flow": "client_credentials",
"accessTokenUrl": "/v1/oauth2/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"docs": "Lists invoices. To filter the invoices that appear in the response, you can specify one or more optional query parameters."
},
{
"info": {
"name": "Paypal Create draft invoice",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api-m.sandbox.paypal.com/v2/invoicing/invoices",
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "client_credentials",
"accessTokenUrl": "/v1/oauth2/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"docs": "Creates a draft invoice. To move the invoice from a draft to payable state, you must send the invoice.
In the JSON request body, include invoice details including merchant information. The invoice object must include an items array.
Note: The merchant that you specify in an invoice must have a PayPal account in good standing.." }, { "info": { "name": "Paypal Send invoice", "type": "http" }, "http": { "method": "POST", "url": "https://api-m.sandbox.paypal.com/v2/invoicing/invoices/:invoice_id/send", "params": [ { "name": "invoice_id", "value": "", "type": "path", "description": "The ID of the draft invoice to delete." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "/v1/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Sends or schedules an invoice, by ID, to be sent to a customer. The action depends on the invoice issue date:
send_to_rec"
},
{
"info": {
"name": "Paypal Send invoice reminder",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api-m.sandbox.paypal.com/v2/invoicing/invoices/:invoice_id/remind",
"params": [
{
"name": "invoice_id",
"value": "",
"type": "path",
"description": "The ID of the draft invoice to delete."
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "client_credentials",
"accessTokenUrl": "/v1/oauth2/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"docs": "Sends a reminder to the payer about an invoice, by ID. In the JSON request body, include a `notification` object that defines the subject of the reminder and other details."
},
{
"info": {
"name": "Paypal Cancel sent invoice",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api-m.sandbox.paypal.com/v2/invoicing/invoices/:invoice_id/cancel",
"params": [
{
"name": "invoice_id",
"value": "",
"type": "path",
"description": "The ID of the draft invoice to delete."
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "client_credentials",
"accessTokenUrl": "/v1/oauth2/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"docs": "Cancels a sent invoice, by ID, and, optionally, sends a notification about the cancellation to the payer, merchant, and CC: emails."
},
{
"info": {
"name": "Paypal Record payment for invoice",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api-m.sandbox.paypal.com/v2/invoicing/invoices/:invoice_id/payments",
"params": [
{
"name": "invoice_id",
"value": "",
"type": "path",
"description": "The ID of the draft invoice to delete."
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "client_credentials",
"accessTokenUrl": "/v1/oauth2/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"docs": "Records a payment for the invoice. If no payment is due, the invoice is marked as `PAID`. Otherwise, the invoice is marked as `PARTIALLY PAID`."
},
{
"info": {
"name": "Paypal Delete external payment",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://api-m.sandbox.paypal.com/v2/invoicing/invoices/:invoice_id/payments/:transaction_id",
"params": [
{
"name": "invoice_id",
"value": "",
"type": "path",
"description": "The ID of the draft invoice to delete."
},
{
"name": "transaction_id",
"value": "",
"type": "path",
"description": "The ID of the external refund transaction to delete."
}
],
"auth": {
"type": "oauth2",
"flow": "client_credentials",
"accessTokenUrl": "/v1/oauth2/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"docs": "Deletes an external payment, by invoice ID and transaction ID."
},
{
"info": {
"name": "Paypal Record refund for invoice",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api-m.sandbox.paypal.com/v2/invoicing/invoices/:invoice_id/refunds",
"params": [
{
"name": "invoice_id",
"value": "",
"type": "path",
"description": "The ID of the draft invoice to delete."
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "client_credentials",
"accessTokenUrl": "/v1/oauth2/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"docs": "Records a refund for the invoice. If all payments are refunded, the invoice is marked as `REFUNDED`. Otherwise, the invoice is marked as `PARTIALLY REFUNDED`."
},
{
"info": {
"name": "Paypal Delete external refund",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://api-m.sandbox.paypal.com/v2/invoicing/invoices/:invoice_id/refunds/:transaction_id",
"params": [
{
"name": "invoice_id",
"value": "",
"type": "path",
"description": "The ID of the draft invoice to delete."
},
{
"name": "transaction_id",
"value": "",
"type": "path",
"description": "The ID of the external refund transaction to delete."
}
],
"auth": {
"type": "oauth2",
"flow": "client_credentials",
"accessTokenUrl": "/v1/oauth2/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"docs": "Deletes an external refund, by invoice ID and transaction ID."
},
{
"info": {
"name": "Paypal Generate QR code",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api-m.sandbox.paypal.com/v2/invoicing/invoices/:invoice_id/generate-qr-code",
"params": [
{
"name": "invoice_id",
"value": "",
"type": "path",
"description": "The ID of the draft invoice to delete."
}
],
"body": {
"type": "json",
"data": "{}"
},
"auth": {
"type": "oauth2",
"flow": "client_credentials",
"accessTokenUrl": "/v1/oauth2/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"docs": "Generates a QR code for an invoice, by ID. The QR code is a PNG image in Base64-encoded format that corresponds to the invoice ID. You can generate a QR code for an invoice and add it to a paper or PDF invoice. When customers use their mobile devices to scan the QR code, they are redirected to the PayPal mobile payment flow where they can view the invoice and pay online with PayPal or a credit card. Before you get a QR code, you must cancel the invoice. After you delete a draft or scheduled invoice, you can no longer use it or show its details. However, you can reuse its invoice number."
}
]
}
],
"bundled": true
}