{"method":"POST","path":"https://api.revcent.com/v2/paypal_accounts","summary":"Create A PayPal Account","description":"Create a PayPal Account, which will issue a unique PayPal Account ID. View markdown documentation at https://revcent.com/documentation/markdown/mcp/operation/CreatePayPalAccount.md for an in-depth overview of this operation.","operationId":"CreatePayPalAccount","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"name":{"type":"string","description":"The PayPal Account name. Must be unique from other PayPal Account names."},"description":{"type":"string","description":"The PayPal Account description."},"enabled":{"type":"boolean","description":"Whether the PayPal Account is enabled."},"paypal_account_email":{"description":"The PayPal account email. The email associated with the PayPal account within PayPal.","type":"string"},"campaign":{"type":"string","additionalProperties":false,"description":"A 20 character campaign ID. The campaign associated with the PayPal account. This will apply the same campaign to PayPal transactions associated with this account.","minLength":20,"maxLength":20},"third_party_shop":{"type":"array","description":"An array of third party shops which are associated with the PayPal account. Each object in the array should contain the ID of the third party shop you wish to link to the PayPal account. By associating a third party shop(s) to the PayPal account, it will ensure PayPal transactions from third party shop(s) are correctly linked to the appropriate PayPal account in RevCent.","items":{"type":"string","description":"A 20 character user shop ID.","minLength":20,"maxLength":20}},"transaction_confirmation":{"type":"boolean","description":"Whether to require transaction confirmation for PayPal transactions before marking the sale as paid in RevCent. Recommended set to false. If false, RevCent will create a sale and mark as paid immediately upon PayPal purchase (recommended). If true, it will take between 2 to 4 hours for RevCent to confirm the PayPal transaction due to a lag within the PayPal API, and not RevCent."},"add_tracking":{"type":"boolean","description":"Whether you want RevCent to add the shipment tracking information to respective PayPal transactions when shipments are shipped. Recommended set to true."},"fields":{"type":"object","description":"The PayPal account credentials required for RevCent to access the PayPal account. The credentials are generated by logging into PayPal developers at https://developer.paypal.com/developer/applications then going to 'App & Credentials' > REST API Apps and click the Create App button. Make sure it is a Live app, not a Sandbox app.","additionalProperties":false,"properties":{"client_id":{"type":"string","description":"The client ID for the PayPal REST API app created."},"secret":{"type":"string","description":"The secret for the PayPal REST API app created."}},"required":["client_id","secret"]}},"required":["name","paypal_account_email","campaign"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"description":"","properties":{"api_call_id":{"type":"string","description":"A 20 character API call ID.","minLength":20,"maxLength":20},"api_call_unix":{"description":"Unix timestamp of when the API call was initiated.","type":"integer","format":"unix-time"},"code":{"description":"API call response code.","type":"integer","format":"int32","enum":[1]},"paypal_account_id":{"type":"string","description":"A 20 character PayPal account ID.","minLength":20,"maxLength":20},"result":{"type":"string"}},"type":"object","additionalProperties":false}}},"description":"Successful response."},"default":{"content":{"application/json":{"schema":{"description":"","properties":{"api_call_id":{"type":"string","description":"A 20 character API call ID.","minLength":20,"maxLength":20},"api_call_unix":{"description":"Unix timestamp of when the API call was initiated.","type":"integer","format":"unix-time"},"code":{"description":"This value indicates that there is an error. Will always be 0.","type":"integer","enum":[0]},"error_code":{"description":"The specific error code.","type":"string"},"message":{"description":"A human readable description of the error.","type":"string"},"result":{"description":"A description of the API call result.","type":"string"}},"title":"APIStandardErrors","type":"object","additionalProperties":false}}},"description":"Error response."}}}