API reference PayPal
Save PayPal
POST/v1/paypal/wallet
Exchanges the setup token the user approved for a payment token and saves it as the user's PayPal for holds, in place of any saved before.
Headers
Content-Typeapplication/jsonRequiredidempotency-keystringRequiredIdempotency-KeystringRequired- 1 to 255 characters. A retry with the same key returns the first answer.
Request body
application/json
setupTokenstringRequired
Responses
- 201Saved
- 401Not signed in
- 404No such setup token of this user
- 422PayPal refused
- 503PayPal is unavailable
201 response
emailstringRequired- The PayPal account, as PayPal names it.
createdAtstringRequired