post https://api.revolv3.com/api/Checkout
Create a URL for a checkout page to accept payments.
This URL can be seamlessly integrated into your payment flow, embedded into your payment page, or used to direct customers to a hosted payment page. The link will be deactivated once the customer opens the checkout page.
The required arguments for this endpoint are checkout line items. Optionally, you can provide a return URL to redirect the customer to a specific webpage after the payment is completed.
<h3>Description of request parameters</h3>
<dl>
<dt>returnUrl</dt>
<dd>
<b>Optional</b><br />
<p>If you want the last screen with payment results to have a "Go Back To Site" button leading to your site, you
need to specify the URL here.<br />
</p>
Validation rules:
<ul>
<li>The URL must be encoded once. For example: `https://mysite.com` - in request should be
`https%3A%2F%2Fmysite.com`.</li>
<li>The hostname in this URL must have been added to the allowed checkout hosts in the Revolv3 Portal.</li>
</ul>
</dd>
<dt>oneTimePayment</dt>
<dd>
<b>Required</b><br />
<p>Data for a checkout with one-time payment.</p>
No validation rules
</dd>
<dt>checkoutLineItems</dt>
<dd>
<b>Required</b><br />
<p>Individual elements of one-time payment billing.</p>
Validation rules:
<ul>
<li>Must contain at least one plan with standard type.</li>
<li>Should contain no more than 1 plan with price override type.</li>
<li>The total amount, considering the types of billing plans, must not be less than zero.</li>
</ul>
</dd>
<dt>name</dt>
<dd>
<b>Required</b><br />
<p>Name of the line item.</p>
Validation rules:
<ul>
<li>Maximum length 100 characters.</li>
</ul>
</dd>
<dt>description</dt>
<dd>
<b>Optional</b><br />
<p>Item description.</p>
Validation rules:
<ul>
<li>Maximum length 200 characters.</li>
</ul>
</dd>
<dt>value</dt>
<dd>
<b>Required</b><br />
<p>The value of line item.</p>
Validation rules:
<ul>
<li>Must be greater than or equal to 0.</li>
<li>In case the <b>valueType is DiscountPercentage</b>, the length must be between 0 and 100 characters.</li>
</ul>
</dd>
<dt>valueType</dt>
<dd>
<b>Optional. Default value: Standard.</b><br />
<p>A qualifier for how the value should be interpreted.</p>
Validation rules:
<ul>
<li>Possible values: Standard, Discount, DiscountPercentage, FinalDiscount, PriceOverride.</li>
</ul>
</dd>
</dl>