---
title: "Create Paypal Token"
method: POST
path: "/carts/{cart_token}/payment_tokens"
tags: ["Carts"]
---

# Create Paypal Token

`POST /carts/{cart_token}/payment_tokens`

## Request

- Base URL: `https://api.vrio.app`
- URL: `https://api.vrio.app/carts/{cart_token}/payment_tokens`
- Auth: API key in header `X-Api-Key`

&nbsp;

## Request body

- object
  - `payment_method_id` integer, required: Use the value '6' for payment method ID to use a PayPal checkout.
  - `redirect_url` string, required: The URL to direct your customer to after they have validated payment information with PayPal. Once this is finished, you can complete the order with the token provided by PayPal.

## Response `200`

OK

- object
  - `payment_token_id` string
  - `post_data` string
  - `merchant_id` integer, nullable

## Other responses

- `400`: Error response
- `401`: Unauthorized response
- `403`: Forbidden response
- `500`: Error response

---

[API](https://skmtc.dev/vrio/apis/selling.md) - [All operations](https://skmtc.dev/vrio/apis/selling/llms.txt) - [OpenAPI document](https://skmtc.dev/vrio/apis/selling/revisions/83eca29c6745?raw)
