<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.barion.com/index.php?action=history&amp;feed=atom&amp;title=Draft%3APayment-Start-v2</id>
	<title>Draft:Payment-Start-v2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.barion.com/index.php?action=history&amp;feed=atom&amp;title=Draft%3APayment-Start-v2"/>
	<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Draft:Payment-Start-v2&amp;action=history"/>
	<updated>2026-11-25T16:36:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://docs.barion.com/index.php?title=Draft:Payment-Start-v2&amp;diff=4608&amp;oldid=prev</id>
		<title>Bujnab@barion.dev: /* Request body parameters */</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Draft:Payment-Start-v2&amp;diff=4608&amp;oldid=prev"/>
		<updated>2024-09-02T12:36:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Request body parameters&lt;/span&gt;&lt;/p&gt;
&lt;a href=&quot;https://docs.barion.com/index.php?title=Draft:Payment-Start-v2&amp;amp;diff=4608&amp;amp;oldid=4607&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Bujnab@barion.dev</name></author>
	</entry>
	<entry>
		<id>https://docs.barion.com/index.php?title=Draft:Payment-Start-v2&amp;diff=4607&amp;oldid=prev</id>
		<title>Bujnab@barion.dev: created draft page</title>
		<link rel="alternate" type="text/html" href="https://docs.barion.com/index.php?title=Draft:Payment-Start-v2&amp;diff=4607&amp;oldid=prev"/>
		<updated>2024-09-02T11:05:05Z</updated>

		<summary type="html">&lt;p&gt;created draft page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PageTitle|title=Barion API: Initialize a new payment}}&lt;br /&gt;
&lt;br /&gt;
{{TableOfContents}}&lt;br /&gt;
&lt;br /&gt;
{{api_callmethod&lt;br /&gt;
|method=POST&lt;br /&gt;
|uri=/{API_version}/Payment/Start&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
POST /{API_version}/Payment/Start sets up a new payment in the Barion Smart Gateway.&amp;lt;span id=&amp;quot;api-version&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
== API Version ==&lt;br /&gt;
&lt;br /&gt;
v2&amp;lt;span id=&amp;quot;authentication&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
== Authentication ==&lt;br /&gt;
&lt;br /&gt;
The endpoint requires Barion shop authentication: pass the call to the endpoint your Barion shop’s POS key as the &amp;lt;code&amp;gt;x-pos-key&amp;lt;/code&amp;gt; header parameter.&lt;br /&gt;
&lt;br /&gt;
An invalid POS key generates an &amp;lt;code&amp;gt;AuthenticationFailed&amp;lt;/code&amp;gt; error.&lt;br /&gt;
== Request ==&lt;br /&gt;
=== Required headers ===&lt;br /&gt;
&lt;br /&gt;
Your Barion shop’s POS key as the &amp;lt;code&amp;gt;x-pos-key&amp;lt;/code&amp;gt; header parameter&lt;br /&gt;
&lt;br /&gt;
=== Request body parameters ===&lt;br /&gt;
&lt;br /&gt;
==== POSKey ====&lt;br /&gt;
guid&lt;br /&gt;
&lt;br /&gt;
required&lt;br /&gt;
&lt;br /&gt;
The secret guid that authenticates the Barion shop that’s preparing the payment.&lt;br /&gt;
&lt;br /&gt;
==== PaymentType ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
required&lt;br /&gt;
&lt;br /&gt;
Determines whether the payer’s selected payment method is expected to be charged immediately, or whether the payments funds are only reserved, and the actual payment is completed within a preset time window. One of the following strings: “Immediate”, “Reservation”, or “Delayed capture”.&lt;br /&gt;
&lt;br /&gt;
==== GuestCheckout ====&lt;br /&gt;
Boolean&lt;br /&gt;
&lt;br /&gt;
required&lt;br /&gt;
&lt;br /&gt;
Determines whether the payer needs an active Barion Wallet to complete the payment.&lt;br /&gt;
&lt;br /&gt;
A Boolean value; integer evaluation isn’t supported.&lt;br /&gt;
&lt;br /&gt;
Defaults to &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;For reasons of fraud control, payers must supply a valid email address even if guest checkout is allowed.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== FundingSources ====&lt;br /&gt;
array&lt;br /&gt;
&lt;br /&gt;
required&lt;br /&gt;
&lt;br /&gt;
The list of payment methods that the Barion Smart Gateway will display to the payer.&lt;br /&gt;
&lt;br /&gt;
An array of one or more strings from the [[FundingSources]] enumeration.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Intended to help book-keeping: this parameter is included in the shop owner’s (monthly or daily) Barion Wallet statement, as well as their transaction history.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== PaymentRequestId ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
required&lt;br /&gt;
&lt;br /&gt;
The Barion shop’s unique string identifier for the payment.&lt;br /&gt;
&lt;br /&gt;
==== RedirectUrl ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
required&lt;br /&gt;
&lt;br /&gt;
The URL string where the payer will be redirected after completing the payment.&lt;br /&gt;
&lt;br /&gt;
Required but if not passed explicitly, defaults to the URL of the Barion shop whose &amp;lt;code&amp;gt;POSkey&amp;lt;/code&amp;gt; was passed.&lt;br /&gt;
&lt;br /&gt;
==== CallbackUrl ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
required&lt;br /&gt;
&lt;br /&gt;
The URL string where the Barion server will send a request whenever there’s a change in the payment’s state.&lt;br /&gt;
&lt;br /&gt;
Defaults to the URL of the Barion shop whose &amp;lt;code&amp;gt;POSkey&amp;lt;/code&amp;gt; was passed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The payment’s &amp;lt;code&amp;gt;paymentId&amp;lt;/code&amp;gt; will be included in the request as a query string to specifically identify the payment.&lt;br /&gt;
&lt;br /&gt;
Read more about how callbacks work [[Callback mechanism|in the dedicated guide]].&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Transactions ====&lt;br /&gt;
array&lt;br /&gt;
&lt;br /&gt;
required&lt;br /&gt;
&lt;br /&gt;
The list of payment transactions included in the payment: one or more [[PaymentTransaction]] objects.&lt;br /&gt;
&lt;br /&gt;
==== Locale ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
required&lt;br /&gt;
&lt;br /&gt;
The language that the Barion Smart Gateway will be displayed in.&lt;br /&gt;
&lt;br /&gt;
One of the following strings:&lt;br /&gt;
&lt;br /&gt;
* “cs-CZ” (Czech)&lt;br /&gt;
* “de-DE” (German)&lt;br /&gt;
* “en-US” (English)&lt;br /&gt;
* “es-ES” (Spanish)&lt;br /&gt;
* “fr-FR” (French)&lt;br /&gt;
* “hu-HU” (Hungarian)&lt;br /&gt;
* “sk-SK” (Slovak)&lt;br /&gt;
* “sl-SI” (Slovenian)&lt;br /&gt;
&lt;br /&gt;
==== Currency ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
required&lt;br /&gt;
&lt;br /&gt;
The currency that the transactions in the payment are made in.&lt;br /&gt;
&lt;br /&gt;
One of the following [https://en.wikipedia.org/wiki/ISO_4217 ISO 4217 currency code] strings:&lt;br /&gt;
&lt;br /&gt;
* “CZK” (Czech crown)&lt;br /&gt;
* “EUR” (Euro)&lt;br /&gt;
* “HUF” (Hungarian forint)&lt;br /&gt;
* “USD” (US dollar)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Only one currency is accepted per payment, for all transactions included in the payment.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
==== OrderNumber ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
optional&lt;br /&gt;
&lt;br /&gt;
A string of up to 100 characters that identifies of the order that the payment settles, generated by the Barion shop operator.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Intended to help book-keeping: this parameter is included in the shop owner’s (monthly or daily) Barion Wallet statement, as well as their transaction history.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== ReservationPeriod ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
required when calling the endpoint as part of [[Reservation payment|a reservation payment scenario]]&lt;br /&gt;
&lt;br /&gt;
The time window allowed for a Barion shop to finalize (finish) a reserved payment: A timespan between 1 minute and 1 year, inclusive, in the d.hh:mm:ss format.&lt;br /&gt;
&lt;br /&gt;
Defaults to 0.00:30:00 (30 minutes).&lt;br /&gt;
&lt;br /&gt;
Required only for payments where the &amp;lt;code&amp;gt;PaymentType&amp;lt;/code&amp;gt; is “Reservation”.&lt;br /&gt;
&lt;br /&gt;
Reserved payments not finished within the configured &amp;lt;code&amp;gt;ReservationPeriod&amp;lt;/code&amp;gt; the payer is refunded the reserved amount.&lt;br /&gt;
&lt;br /&gt;
For details about reserved payments, [[Reservation payment|see the dedicated guide]].&lt;br /&gt;
&lt;br /&gt;
==== DelayedCapturePeriod ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
required when calling the endpoint as part of [[Delayed Capture|a delayed capture scenario]].&lt;br /&gt;
&lt;br /&gt;
The time window allowed for a Barion shop to finalize (complete) a delayed capture payment: A timespan between 1 minute and 7 days, inclusive, in the d.hh:mm:ss format.&lt;br /&gt;
&lt;br /&gt;
The allowed maximum value is 21 days for Barion shops registered to a business in Hungary.&lt;br /&gt;
&lt;br /&gt;
Defaults to 7.00:00:00 (7 days).&lt;br /&gt;
&lt;br /&gt;
Required only for payments where the &amp;lt;code&amp;gt;PaymentType&amp;lt;/code&amp;gt; is “DelayedCapture”.&lt;br /&gt;
&lt;br /&gt;
If the transactions in a delayed capture payment isn’t completed within the configured time window, the authorization on the payer’s payment instrument for the payment amount is canceled.&lt;br /&gt;
&lt;br /&gt;
For details about delayed capture payments, [[Delayed Capture|see the dedicated guide]].&lt;br /&gt;
&lt;br /&gt;
==== InitiateRecurrence ====&lt;br /&gt;
Boolean&lt;br /&gt;
&lt;br /&gt;
required when the payer’s payment instrument is tokenized for later reuse: [[One-click payments: saving your customer&amp;#039;s card|one-click payment]], [[Subscriptions: set up recurring billing|subscription]], or MIT&lt;br /&gt;
&lt;br /&gt;
A Boolean that indicates whether the Barion shop is authorized to store tokenized details of the payer’s payment instrument so future payments don’t involve the Barion Smart Gateway.&lt;br /&gt;
&lt;br /&gt;
Only required for token payment scenarios.&lt;br /&gt;
&lt;br /&gt;
Read more in the guides about [[One-click payments: saving your customer&amp;#039;s card|one-click payments]] and [[Subscriptions: set up recurring billing|subscriptions]].&lt;br /&gt;
&lt;br /&gt;
==== RecurrenceId ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
required when the payer’s payment instrument is tokenized for later reuse: [[One-click payments: saving your customer&amp;#039;s card|one-click payment]], [[Subscriptions: set up recurring billing|subscription]], or MIT&lt;br /&gt;
&lt;br /&gt;
Unique string identifier of up to 100 characters identifying the payer generated by the Barion shop operator for a token payment whose function depends on the value of &amp;lt;code&amp;gt;InitiateRecurrence&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
* if &amp;lt;code&amp;gt;InitiateRecurrence: true&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; is the new unique identifier that the Barion shop operator assigns to the token payment&lt;br /&gt;
* if &amp;lt;code&amp;gt;InitiateRecurrence: false&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; is the existing identifier that was assigned to the token payment during the initial payment in the scenario&lt;br /&gt;
&lt;br /&gt;
Only required for token payment scenarios.&lt;br /&gt;
&lt;br /&gt;
Read more in the guides about [[One-click payments: saving your customer&amp;#039;s card|one-click payments]] and [[Subscriptions: set up recurring billing|subscriptions]].&lt;br /&gt;
&lt;br /&gt;
==== RecurrenceType ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
required when the payer’s payment instrument is tokenized for later reuse: [[One-click payments: saving your customer&amp;#039;s card|one-click payment]], [[Subscriptions: set up recurring billing|subscription]], or MIT&lt;br /&gt;
&lt;br /&gt;
Indicates the type of token payment scenario that the payment is a part of: one of the strings in the [[RecurrenceType]] enumeration.&lt;br /&gt;
&lt;br /&gt;
Required to comply with the 3-D Secure authentication protocol if the payment is part of a token payment scenario. For more details, see [[3DSecure|the dedicated guide]].&lt;br /&gt;
&lt;br /&gt;
==== TraceId ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
required when the payer’s payment instrument is tokenized for later reuse: [[One-click payments: saving your customer&amp;#039;s card|one-click payment]], [[Subscriptions: set up recurring billing|subscription]], or MIT&lt;br /&gt;
&lt;br /&gt;
A string of up to 100 characters that identifies both the payer’s payment instrument, and the type of token payment scenario it is used in.&lt;br /&gt;
&lt;br /&gt;
Only required for subsequent payments in token payment scenarios (one-click payments and subscriptions)&lt;br /&gt;
&lt;br /&gt;
Required to comply with the 3-D Secure authentication protocol if the payment is part of a token payment scenario. For more details, see [[3DSecure|the dedicated guide]].&lt;br /&gt;
&lt;br /&gt;
==== ShippingAddress ====&lt;br /&gt;
a [[ShippingAddress]] object&lt;br /&gt;
&lt;br /&gt;
optional, but contributes to the payer not being challenged to authenticate themselves during the payment&lt;br /&gt;
&lt;br /&gt;
The shipping address associated with the payment, if applicable.&lt;br /&gt;
&lt;br /&gt;
Providing this parameter helps the anti-fraid analysis get more accurate results.&lt;br /&gt;
&lt;br /&gt;
For more details, see [[3DSecure|the dedicated guide]].&lt;br /&gt;
&lt;br /&gt;
==== BillingAddress ====&lt;br /&gt;
a [[BillingAddress]] object&lt;br /&gt;
&lt;br /&gt;
optional, but contributes to the payer not being challenged to authenticate themselves during the payment&lt;br /&gt;
&lt;br /&gt;
The billing address associated with the payment, if different from the shipping address.&lt;br /&gt;
&lt;br /&gt;
For more details, see [[3DSecure|the dedicated guide]].&lt;br /&gt;
&lt;br /&gt;
==== PayerHint ====&lt;br /&gt;
a valid email-format string of up to 256 characters&lt;br /&gt;
&lt;br /&gt;
optional, but contributes to the payer not being challenged to authenticate themselves during the payment&lt;br /&gt;
&lt;br /&gt;
A placeholder email address used to pre-populate the Barion Wallet login when the payer is redirected to the Barion Smart Gateway.&lt;br /&gt;
&lt;br /&gt;
For more details, see [[3DSecure|the dedicated guide]].&lt;br /&gt;
&lt;br /&gt;
==== CardHolderNameHint ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
optional, but contributes to the payer not being challenged to authenticate themselves during the payment&lt;br /&gt;
&lt;br /&gt;
A placeholder string between 2 and 45 characters, used to pre-populate the cardholder name field when the payer is redirected to the Barion Smart Gateway.&lt;br /&gt;
&lt;br /&gt;
For more details, see [[3DSecure|the dedicated guide]].&lt;br /&gt;
&lt;br /&gt;
==== PayerPhoneNumber ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
optional, but contributes to the payer not being challenged to authenticate themselves during the payment&lt;br /&gt;
&lt;br /&gt;
The payer’s phone number. A string of up to 30 numeric characters in the following format: ”&amp;lt;two-digit country code&amp;gt;123456789”, with no leading zeros.&lt;br /&gt;
&lt;br /&gt;
For more details, see [[3DSecure|the dedicated guide]].&lt;br /&gt;
&lt;br /&gt;
==== PayerWorkPhoneNumber ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
optional, but contributes to the payer not being challenged to authenticate themselves during the payment&lt;br /&gt;
&lt;br /&gt;
The payer’s work phone number. A string of up to 30 numeric characters in the following format: ”&amp;lt;two-digit country code&amp;gt;123456789”, with no leading zeros.&lt;br /&gt;
&lt;br /&gt;
For more details, see [[3DSecure|the dedicated guide]].&lt;br /&gt;
&lt;br /&gt;
==== PayerHomeNumber ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
optional, but contributes to the payer not being challenged to authenticate themselves during the payment&lt;br /&gt;
&lt;br /&gt;
The payer’s home phone number. A string of up to 30 numeric characters in the following format: ”&amp;lt;two-digit country code&amp;gt;123456789”, with no leading zeros.&lt;br /&gt;
&lt;br /&gt;
For more details, see [[3DSecure|the dedicated guide]].&lt;br /&gt;
&lt;br /&gt;
==== PayerAccountInformation ====&lt;br /&gt;
a [[PayerAccountInformation]] object&lt;br /&gt;
&lt;br /&gt;
optional, but contributes to the payer not being challenged to authenticate themselves during the payment&lt;br /&gt;
&lt;br /&gt;
Details about the payer’s account in the Barion shop operator’s system.&lt;br /&gt;
&lt;br /&gt;
For more details, see [[3DSecure|the dedicated guide]].&lt;br /&gt;
&lt;br /&gt;
==== PurchaseInformation ====&lt;br /&gt;
a [[PurchaseInformation]] object&lt;br /&gt;
&lt;br /&gt;
optional, but contributes to the payer not being challenged to authenticate themselves during the payment&lt;br /&gt;
&lt;br /&gt;
Details about the purchase associated with the payment.&lt;br /&gt;
&lt;br /&gt;
For more details, see [[3DSecure|the dedicated guide]].&lt;br /&gt;
&lt;br /&gt;
==== ChallengePreference ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
optional, but contributes to the payer not being challenged to authenticate themselves during the payment&lt;br /&gt;
&lt;br /&gt;
The Barion shop’s preference for whether they’d like to raise or lower the chances of the payer being authenticated during the purchase using the 3-D Secure authentication protocol.&lt;br /&gt;
&lt;br /&gt;
One of the strings in the [[ChallengePreference]] enumeration.&lt;br /&gt;
&lt;br /&gt;
For more details, see [[3DSecure|the dedicated guide]].&lt;br /&gt;
&lt;br /&gt;
==== PaymentWindow ====&lt;br /&gt;
string&lt;br /&gt;
&lt;br /&gt;
optional&lt;br /&gt;
&lt;br /&gt;
The time window for the payer to make the payment, after which the payment can no longer be completed: A timespan between 1 minute and 7 days, inclusive, in the d.hh:mm:ss format.&lt;br /&gt;
&lt;br /&gt;
Defaults to 0.00:30:00 (30 minutes).&lt;br /&gt;
=== Example request ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;{&lt;br /&gt;
  &amp;quot;PosKey&amp;quot;: &amp;quot;[YOUR_SECRET_POSKEY]&amp;quot;,&lt;br /&gt;
  &amp;quot;PaymentType&amp;quot;: &amp;quot;Immediate&amp;quot;,&lt;br /&gt;
  &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;[THE_ID_YOU_GENERATE_FOR_THE_PAYMENT]&amp;quot;,&lt;br /&gt;
  &amp;quot;GuestCheckOut&amp;quot;: true,&lt;br /&gt;
  &amp;quot;FundingSources&amp;quot;: [ &amp;quot;ALL&amp;quot; ],&lt;br /&gt;
  &amp;quot;Currency&amp;quot;: &amp;quot;EUR&amp;quot;,&lt;br /&gt;
  &amp;quot;RedirectUrl&amp;quot;: &amp;quot;[WWW:EXAMPLE:COM]&amp;quot;,&lt;br /&gt;
  &amp;quot;CallbackUrl&amp;quot;: &amp;quot;[YOUR_WEBHOOK_LISTENER_ENDPOINT]&amp;quot;,&lt;br /&gt;
  &amp;quot;Locale&amp;quot;: &amp;quot;ab-AB&amp;quot;,&lt;br /&gt;
  &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
    {&lt;br /&gt;
      &amp;quot;POSTransactionId&amp;quot;: &amp;quot;[THE_ID_YOU_GENERATE_FOR_THE_TRANSACTION]&amp;quot;,&lt;br /&gt;
      &amp;quot;Payee&amp;quot;: &amp;quot;[YOUR_BARION_WALLET_EMAIL]&amp;quot;,&lt;br /&gt;
      &amp;quot;Total&amp;quot;: [THE_PURCHASE_AMOUNT_1000_IN_THIS_EXAMPLE],&lt;br /&gt;
      &amp;quot;Items&amp;quot;: [&lt;br /&gt;
        {&lt;br /&gt;
          &amp;quot;Name&amp;quot;: &amp;quot;[NAME_OF_PURCHASED_ITEM]&amp;quot;,&lt;br /&gt;
          &amp;quot;Description&amp;quot;: &amp;quot;placeholder&amp;quot;,&lt;br /&gt;
          &amp;quot;Quantity&amp;quot;: 1,&lt;br /&gt;
          &amp;quot;Unit&amp;quot;: &amp;quot;piece&amp;quot;,&lt;br /&gt;
          &amp;quot;UnitPrice&amp;quot;: 1000,&lt;br /&gt;
          &amp;quot;ItemTotal&amp;quot;: 1000        }&lt;br /&gt;
      ]&lt;br /&gt;
    }&lt;br /&gt;
  ]&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Response ==&lt;br /&gt;
&lt;br /&gt;
The /{API_version}/Payment/Start endpoint returns a JSON object with the following properties.&amp;lt;span id=&amp;quot;paymentid&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== PaymentId ===&lt;br /&gt;
&lt;br /&gt;
The Barion server generated guid for the payment that the request initialized.&amp;lt;span id=&amp;quot;paymentrequestid-1&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== PaymentRequestId ===&lt;br /&gt;
&lt;br /&gt;
The Barion shop’s unique string identifier for the payment that was passed as &amp;lt;code&amp;gt;PaymentRequestId&amp;lt;/code&amp;gt; in the request.&amp;lt;span id=&amp;quot;status&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== Status ===&lt;br /&gt;
&lt;br /&gt;
The payment’s current status within Barion: one of the string values in the [[PaymentStatus]] enumeration.&amp;lt;span id=&amp;quot;qrurl&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== QRUrl ===&lt;br /&gt;
&lt;br /&gt;
A URL to a QR code that represents the payment.&lt;br /&gt;
=== RecurrenceResult ===&lt;br /&gt;
&lt;br /&gt;
String status of the tokenization or the subsequent charge to a tokenized payment instrument: “None”, “Failed”, “Successful”, “NotFound”, or “ThreeDSAuthenticationRequired”.&lt;br /&gt;
&lt;br /&gt;
For details, see [[#how-to-interpret-recurrenceresult|the dedicated section]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Always returned, but only applies to payments that are part of a tokenized payment scenario&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&amp;lt;span id=&amp;quot;transactions-1&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==== How to interpret &amp;lt;code&amp;gt;RecurrenceResult&amp;lt;/code&amp;gt; ====&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!width=&amp;quot;50%&amp;quot;| Value&lt;br /&gt;
!width=&amp;quot;50%&amp;quot;| Description&lt;br /&gt;
|-&lt;br /&gt;
| None&lt;br /&gt;
| Either the payment isn’t part of a token payment scenario, or, if &amp;lt;code&amp;gt;InitiateRecurrence: true&amp;lt;/code&amp;gt; (and no &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt;) was passed in the request, the tokenization was successful, but no attempt has been made to use the token.&lt;br /&gt;
|-&lt;br /&gt;
| Successful&lt;br /&gt;
| &amp;lt;code&amp;gt;InitiateRecurrence: false&amp;lt;/code&amp;gt; and a &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; was passed in the request, and the previously tokenized payment instrument has been successfully used to complete the payment.&lt;br /&gt;
|-&lt;br /&gt;
| Failed&lt;br /&gt;
| &amp;lt;code&amp;gt;InitiateRecurrence: false&amp;lt;/code&amp;gt; and a &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; was passed in the request, but the previously tokenized payment instrument couldn’t be charge to complete the payment.&lt;br /&gt;
|-&lt;br /&gt;
| NotFound&lt;br /&gt;
| The &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; passed in the request is invalid, or the previous tokenization had been unsuccessful.&lt;br /&gt;
|-&lt;br /&gt;
| ThreeDSAuthenticationRequired&lt;br /&gt;
| &amp;lt;code&amp;gt;InitiateRecurrence: false&amp;lt;/code&amp;gt; and a &amp;lt;code&amp;gt;RecurrenceId&amp;lt;/code&amp;gt; was passed in the request, but the payment didn’t go through because The holder of the card whose token you registered is challenged to perform 3-D Secure authentication. &amp;lt;/br&amp;gt;Perform [[01-payments/03-payment-scenarios/02-save-card#integrate-barions-offsite-authentication|off-site 3-DS authentication]], or [[Subscriptions: set up recurring billing#Troubleshoot subsequent payments|pass the &amp;lt;code&amp;gt;TraceId&amp;lt;/code&amp;gt; associated with the payment instrument in the request]].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Transactions ===&lt;br /&gt;
&lt;br /&gt;
All the transactions associated with the payment: an array of [[ProcessedTransaction]] object&lt;br /&gt;
&lt;br /&gt;
Includes all applicable Barion-deducted fees.&amp;lt;span id=&amp;quot;gatewayurl&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== GatewayUrl ===&lt;br /&gt;
&lt;br /&gt;
The URL of the Barion Smart Gateway where the payer needs to be redirected for payment.&lt;br /&gt;
&lt;br /&gt;
Includes the &amp;lt;code&amp;gt;PaymentId&amp;lt;/code&amp;gt; as a query string.&amp;lt;span id=&amp;quot;callbackurl-1&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== CallbackUrl ===&lt;br /&gt;
&lt;br /&gt;
The URL where the Barion server sends a request each time there is a change in the payment’s status.&lt;br /&gt;
&lt;br /&gt;
Includes the &amp;lt;code&amp;gt;PaymentId&amp;lt;/code&amp;gt; as a query string.&lt;br /&gt;
&lt;br /&gt;
If no &amp;lt;code&amp;gt;CallbackURL&amp;lt;/code&amp;gt; was passed in the request, this property defaults to the URL of the Barion shop whose &amp;lt;code&amp;gt;POSkey&amp;lt;/code&amp;gt; was passed.&amp;lt;span id=&amp;quot;redirecturl-1&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== RedirectUrl ===&lt;br /&gt;
&lt;br /&gt;
The URL where the payer is redirected once they complete the payment. Includes the &amp;lt;code&amp;gt;PaymentId&amp;lt;/code&amp;gt; as a query string.&lt;br /&gt;
&lt;br /&gt;
If no &amp;lt;code&amp;gt;RedirectURL&amp;lt;/code&amp;gt; was passed in the request, this property defaults to the URL of the Barion shop whose &amp;lt;code&amp;gt;POSkey&amp;lt;/code&amp;gt; was passed.&lt;br /&gt;
=== ThreeDSAuthClientData ===&lt;br /&gt;
&lt;br /&gt;
Encrypted client authentication data, as a string, required for 3-D Secure processing.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;[[One-click payments: saving your customer&amp;#039;s card#Integrate Barion’s off-site authentication|Pass this data to the off-site authentication library]] if a token payment was rejected because of missing authentication.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
=== TraceId ===&lt;br /&gt;
&lt;br /&gt;
A unique string identifier generated by the card issuer to represent and track the payment instrument in token payment scenarios that require 3-D Secure authentication.&lt;br /&gt;
&lt;br /&gt;
=== Example response ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;{&lt;br /&gt;
  &amp;quot;PaymentId&amp;quot;: &amp;quot;ebded28e481fef118c08001dd8b71cc5&amp;quot;,&lt;br /&gt;
  &amp;quot;PaymentRequestId&amp;quot;: &amp;quot;ALMA-BARACK-03&amp;quot;,&lt;br /&gt;
  &amp;quot;Status&amp;quot;: &amp;quot;Prepared&amp;quot;,&lt;br /&gt;
  &amp;quot;QRUrl&amp;quot;: &amp;quot;https://api.test.barion.com/qr/generate?paymentId=ebded28e-481f-ef11-8c08-001dd8b71cc5&amp;amp;size=Large&amp;quot;,&lt;br /&gt;
  &amp;quot;Transactions&amp;quot;: [&lt;br /&gt;
    {&lt;br /&gt;
      &amp;quot;POSTransactionId&amp;quot;: &amp;quot;ALMA-BARACK-CEKLA-01&amp;quot;,&lt;br /&gt;
      &amp;quot;TransactionId&amp;quot;: &amp;quot;ecded28e481fef118c08001dd8b71cc5&amp;quot;,&lt;br /&gt;
      &amp;quot;Status&amp;quot;: &amp;quot;Prepared&amp;quot;,&lt;br /&gt;
      &amp;quot;Currency&amp;quot;: &amp;quot;HUF&amp;quot;,&lt;br /&gt;
      &amp;quot;TransactionTime&amp;quot;: &amp;quot;0001-01-01T00:00:00&amp;quot;,&lt;br /&gt;
      &amp;quot;RelatedId&amp;quot;: null&lt;br /&gt;
    },&lt;br /&gt;
    {&lt;br /&gt;
      &amp;quot;POSTransactionId&amp;quot;: null,&lt;br /&gt;
      &amp;quot;TransactionId&amp;quot;: &amp;quot;edded28e481fef118c08001dd8b71cc5&amp;quot;,&lt;br /&gt;
      &amp;quot;Status&amp;quot;: &amp;quot;Reserved&amp;quot;,&lt;br /&gt;
      &amp;quot;Currency&amp;quot;: &amp;quot;HUF&amp;quot;,&lt;br /&gt;
      &amp;quot;TransactionTime&amp;quot;: &amp;quot;2024-05-31T12:23:17.868&amp;quot;,&lt;br /&gt;
      &amp;quot;RelatedId&amp;quot;: null&lt;br /&gt;
    }&lt;br /&gt;
  ],&lt;br /&gt;
  &amp;quot;RecurrenceResult&amp;quot;: &amp;quot;None&amp;quot;,&lt;br /&gt;
  &amp;quot;ThreeDSAuthClientData&amp;quot;: null,&lt;br /&gt;
  &amp;quot;GatewayUrl&amp;quot;: &amp;quot;https://secure.test.barion.com/Pay?Id=ebded28e481fef118c08001dd8b71cc5&amp;quot;,&lt;br /&gt;
  &amp;quot;RedirectUrl&amp;quot;: &amp;quot;https://example.com/?paymentId=ebded28e481fef118c08001dd8b71cc5&amp;quot;,&lt;br /&gt;
  &amp;quot;CallbackUrl&amp;quot;: &amp;quot;https://webhook.site/3209de0d-d3fe-4256-aa01-d9c1cd04772c?paymentId=ebded28e481fef118c08001dd8b71cc5&amp;quot;,&lt;br /&gt;
  &amp;quot;TraceId&amp;quot;: null,&lt;br /&gt;
  &amp;quot;Errors&amp;quot;: []&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
== Integrating the endpoint ==&lt;br /&gt;
&lt;br /&gt;
/{API_version}/Payment/Start relates to the point in the sales funnel when the customer confirms a purchase.&lt;br /&gt;
&lt;br /&gt;
When implementing Full Barion Pixel, make sure that your webshop triggers [[InitiatePurchase|the &amp;lt;code&amp;gt;InitiatePurchase&amp;lt;/code&amp;gt; Barion Pixel event]] when this endpoint request returns.&lt;/div&gt;</summary>
		<author><name>Bujnab@barion.dev</name></author>
	</entry>
</feed>