riverty logo

Docs

Get Started Login

Authorize Payment

More information can be found in our Documentation.

Path

POST /api/v3/checkout/authorize

Request Body

application/json

merchantUrl
string
URL to redirect the customer to after the payment process
checkoutId
string
Unique identifier of checkout process in UUID format. Required only in the Two-Step Authorize use-case.
merchantId
string
Max length: 50
Merchant ID within the Riverty system, part of the credentials used for Riverty Netherlands and Belgium. If you were not provided these credentials by your Account Manager, leave empty.
required
object
Payment information
object
The person initiating the checkout, typically the buyer who places the order. May also receive the order.
object
The recipient of the order, potentially different from the buyer. Specifies the delivery address and contact details.
object
Order object
parentTransactionReference
string
Max length: 128
A unique reference provided to Riverty by a third party (merchant or Payment Service Provider). Identifies an entire order.
object
Additional data
yourReference
string
Max length: 20
Can be used by purchasing company if they would like to provide internal reference
ourReference
string
Max length: 128
Can be used by selling company if they would like to provide specific reference for purchasing company. This field is limited to 128 characters, longer values will be truncated to fit within the specified limit.
object
e-invoice references information
nonce
string
Unique string provided by Riverty if the merchant is using Hosted Fields. Contact your Key Account Manager for more details.
object

Responses

Successful RequestSuccessful Request, SCAUnsuccessful Request, Failed Risk CheckSuccessful Request, Direct Debit

Request Example

    
        {
 "merchantUrl": "https://www.example.com",
 "payment": {
  "type": "Invoice"
 },
 "customer": {
  "identificationNumber": "800119-3989",
  "address": {
   "street": "Gütersloher Straße",
   "streetNumber": "123",
   "postalCode": "33415",
   "postalPlace": "Berlin",
   "countryCode": "DE"
  },
  "salutation": "Mrs",
  "firstName": "Astrid",
  "lastName": "Svensson",
  "email": "astrid.svensson@example.com",
  "mobilePhone": "12345678900",
  "birthDate": "1999-01-02",
  "customerCategory": "Person",
  "conversationLanguage": "EN"
 },
 "order": {
  "number": "riverty1",
  "totalGrossAmount": 185,
  "totalNetAmount": 155.41,
  "currency": "EUR",
  "items": [
   {
    "productId": "4534-BLK-M",
    "description": "Leather jacket, Black, size M",
    "grossUnitPrice": 100,
    "netUnitPrice": 84,
    "quantity": 1,
    "vatPercent": 19,
    "vatAmount": 16,
    "imageUrl": "https://developer-sandbox.riverty.com/images/black_leather_jacket.jpg"
   },
   {
    "productId": "5745-GRY-M",
    "description": "Socks, Grey, Size M",
    "grossUnitPrice": 10,
    "netUnitPrice": 8.4,
    "quantity": 5,
    "vatPercent": 19,
    "vatAmount": 1.6,
    "imageUrl": "https://developer-sandbox.riverty.com/images/grey_socks.jpg"
   },
   {
    "productId": "3323-BRN-M",
    "description": "Woolen hat, brown, Size M",
    "grossUnitPrice": 30,
    "netUnitPrice": 25.21,
    "quantity": 1,
    "vatPercent": 19,
    "vatAmount": 4.79,
    "imageUrl": "https://developer-sandbox.riverty.com/images/brown_wool_hat.jpg"
   },
   {
    "productId": "SHIP",
    "description": "Shipping",
    "type": "ShippingFee",
    "grossUnitPrice": 5,
    "netUnitPrice": 4.2,
    "quantity": 1,
    "vatPercent": 19,
    "vatAmount": 0.8
   }
  ]
 }
}
    

Response Example

    
        {
 "outcome": "Accepted",
 "customerNumber": "AP000100888",
 "reservationId": "f0d7e939-6e43-4fe6-93e5-79b6aba984cf",
 "checkoutId": "e907c794-de5a-436e-9676-904ee0c55360",
 "expirationDate": "2023-10-22"
}