Oney integration

Logo 3X 4X Oney

Introduction

Oney is an interest-free 3x or 4x payment method, for orders amounting between 150 and 2000€.

It involves redirecting the cardholder to Oney to finalize its transaction.

info

Upon receipt of EXECCODE = 0002 in the synchronous response, you must redirect the cardholder to the Oney form by displaying the content of the REDIRECTHTML parameter. (Base64 encoded)

After validating the payment on Oney, the cardholder is redirected to the REDIRECT_URL.

The result of the transaction will also be transmitted by HTTP notification. (See the specifics of the notification)

When successful, an authorization is created and it would have up to 7 days to be captured.

warning

Only two authorization statuses can be observed: 0000 (success) or 0003 (waiting for approval). Without update of 0003 status within 6 days, authorization should be considered as expired (failed).

Compatible operations and options

Server to server integration

In this mode, you have to send a POST request containing your order’s parameters over HTTPS to the Dalenys platform.

Authorization

Example

Here is a server to server request example:

$> curl --request POST --url "https://secure-test.be2bill.com/front/service/rest/process" \
--data "method=authorization" \
--data "params[OPERATIONTYPE]=authorization" \
--data "params[PAYMENTOPTION]=facilypay-3x" \
--data "params[IDENTIFIER]=YOUR_IDENTIFIER" \
--data "params[AMOUNT]=60000" \
--data "params[DESCRIPTION]=Knows nothing" \
--data "params[CLIENTUSERAGENT]=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0" \
--data "params[CLIENTIP]=10.1.1.1" \
--data "params[ORDERID]=1234" \
--data "params[CLIENTIDENT]=john.snow" \
--data "params[CLIENTEMAIL]=john.snow@example.com" \
--data "params[BILLINGTITLE]=mr" \
--data "params[BILLINGFIRSTNAME]=John" \
--data "params[BILLINGLASTNAME]=Doe" \
--data "params[BILLINGADDRESS]=285 Fulton Street" \
--data "params[BILLINGPOSTALCODE]=75001" \
--data "params[BILLINGCITY]=Paris" \
--data "params[BILLINGCOUNTRY]=FR" \
--data "params[BILLINGPHONE]=33111111111" \
--data "params[BILLINGMOBILEPHONE]=33666666666" \
--data "params[SHIPTOCOMPANYNAME]=MyShop.com" \
--data "params[SHIPTOTITLE]=mr" \
--data "params[SHIPTOFIRSTNAME]=John" \
--data "params[SHIPTOLASTNAME]=Doe" \
--data "params[SHIPTOADDRESS]=55 rue de la liberté" \
--data "params[SHIPTOPOSTALCODE]=75001" \
--data "params[SHIPTOCITY]=Paris" \
--data "params[SHIPTOCOUNTRY]=FR" \
--data "params[SHIPTOPHONE]=33111111111" \
--data "params[SHIPTOMOBILEPHONE]=33666666666" \
--data "params[CART][0][MERCHANTITEMID]=REF-123456" \
--data "params[CART][0][NAME]=Laser printer" \
--data "params[CART][0][PRICE]=20000" \
--data "params[CART][0][QUANTITY]=3" \
--data "params[CART][0][CATEGORY]=electronics" \
--data "params[CART][0][BRAND]=Micropple" \
--data "params[CART][0][DELIVERYTYPE]=storepickup" \
--data "params[CART][0][DELIVERYLABEL]=Micropple store" \
--data "params[CART][0][DELIVERYSPEED]=express" \
--data "params[CART][0][DELIVERYEXPECTEDDATE]=2017-06-20" \
--data "params[CART][0][DELIVERYEXPECTEDDELAY]=2" \
--data "params[CART][0][TOTALAMOUNT]=60000" \
--data "params[HASH]=15477dcb8687adf90fa51e418f3c1a2d025f40b177a978c2734514734633b3c4" \
--data "params[VERSION]=3.0" \

Parameters

  • OPERATIONTYPE authorization

    The action you want to process.

    Example: payment

  • PAYMENTOPTION facilypay-3x, facilypay-3xsansfrais, facilypay-4x, facilypay-4xsansfrais

    Specific options for certain payment methods.

    Example: facilypay-3x

  • IDENTIFIER string(1-32)

    Your processing account technical identifier.

    Example: YOUR_IDENTIFIER

  • AMOUNT integer

    The transaction amount in the smallest money decimal (e.g. cents for euro).

    Example: 1000

  • DESCRIPTION string(1-510)

    A short description of the operation, can be used to trigger fraud actions. Don’t hesitate to ask your Payment Manager for some advice on this topic.

    Example: Knows nothing

  • CLIENTUSERAGENT string(1-255)

    The HTTP user agent.

    Example: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0

  • CLIENTIP ipv4

    The user’s public IP address.

    Example: 10.1.1.1

  • ORDERID string(1-40)

    Unique ID associated to an order in the merchant’s database (as specified in your initial POST request)

    Example: 1234

  • CLIENTIDENT string(1-128)

    Unique identifier of the user in your application (e.g. a login or a primary key).

    Example: john.snow

  • CLIENTEMAIL string(1-100)

    The user’s email (character « + » is not allowed).

    Example: john.snow@example.com

  • BILLINGTITLE mr, miss, mrs

    The title used for the billing address name.

    Example: mr

  • BILLINGFIRSTNAME string(1-15)

    The first name part of the billing address.

    Example: John

  • BILLINGLASTNAME string(1-15)

    The last name part of the billing address.

    Example: Doe

  • BILLINGADDRESS string(1-38)

    The billing address. Be careful not to integrate any line breaks.

    Example: 285 Fulton Street

  • BILLINGPOSTALCODE string(1-9)

    The billing postal code.

    Example: 10007

  • BILLINGCITY string(1-32)

    The billing city.

    Example: New York

  • BILLINGCOUNTRY string(2)

    The country code (ISO_3166-1_alpha-2).

    Example: US

  • BILLINGPHONE string(1-15)

    Billing phone number in international format (Example +33XXXXXXXXX).

    Example: 33111111111

  • BILLINGMOBILEPHONE string(1-15)

    Billing mobile phone number in international format (Example +33XXXXXXXXX).

    Example: 33666666666

  • SHIPTOCOMPANYNAME string(1-50)

    Name of the company.

    Example: MyShop.com

  • SHIPTOTITLE mr, miss, mrs

    Holder’s title in the shipping address.

    Example: mr

  • SHIPTOFIRSTNAME string(1-15)

    Holder’s first name in the shipping address.

    Example: John

  • SHIPTOLASTNAME string(1-30)

    Holder’s last name in the shipping address.

    Example: Doe

  • SHIPTOADDRESS string(1-38)

    The shipping address.

    Example: 55 rue de la liberté

  • SHIPTOPOSTALCODE string(1-9)

    The shipping postal code.

    Example: 10007

  • SHIPTOCITY string(1-32)

    The shipping city.

    Example: New York

  • SHIPTOCOUNTRY string(2)

    The country code (ISO_3166-1_alpha-2 format)

    Example: US

  • SHIPTOPHONE string(1-15)

    Shipping phone number in international format (Example +33XXXXXXXXX).

    Example: 33111111111

  • SHIPTOMOBILEPHONE string(1-15)

    Shipping mobile phone number in international format (Example +33XXXXXXXXX).

    Example: 33666666666

  • CART[X][MERCHANTITEMID] string(1-256)

    Item ID in the merchant system.

    Example: REF-123456

  • CART[X][NAME] string(1-256)

    Item name.

    Example: Laser printer

  • CART[X][PRICE] int

    Unit price in cents, including potential taxes and discounts.

    Example: 20000

  • CART[X][QUANTITY] number(3)

    Quantity of this item.

    Example: 3

  • CART[X][CATEGORY] computersandsoftware, electronics, appliances, homeandgarden, fashion, healthandbeauty, jewellery, sport, leisureandhobbies, carsandmotorbikes, furniture, / kidsandbaby, videogamesandconsoles, toysandgames, pets, foodanddrink, giftandflowers, entertainment, travel, auctionsandgroupbuying, servicesforindividuals, servicesforprofessionals

    Article category.

    Example: electronics

  • CART[X][BRAND] string(1-100)

    Article brand.

    Example: Micropple

  • CART[X][DELIVERYLABEL] string(1-100)

    Delivery method name or description.

    Example: Micropple store

  • CART[X][DELIVERYSPEED] standard,express

    Speed of the delivery method. (Specify EXPRESS if under 48h).

    Example: express

  • CART[X][DELIVERYTYPE] storepickup, networkpickup, travelpickup, carrier, edelivery

    Delivery method:

    storepickup: collection of the goods in the merchant store
    networkpickup: collection in a third party point (like ups, alveol, etc.)
    travelpickup: collection in an airport, train station or travel agency
    carrier: carrier such as La Poste, Colissimo, UPS, DHL…or any private carrier
    edelivery: electronic ticket issuance, download, etc.

    Example: storepickup

  • CART[X][DELIVERYEXPECTEDDATE] date(YYYY-MM-DD)

    Delivery Date.

    Example: 2017-06-20

  • CART[X][DELIVERYEXPECTEDDELAY] int (1-3)

    Number of days for delivery; must be greater than 0.

    Example: 2

  • CART[X][TOTALAMOUNT] integer

    Total amount based on PRICE and QUANTITY.

    Example: 60000

  • HASH string(64)

    The transaction’s hash as described in the dedicated section.

    Example: 15477dcb8687adf90fa51e418f3c1a2d025f40b177a978c2734514734633b3c4

  • VERSION 3.0

    The API protocol version.

    Example: 3.0

  • APIKEYID string (36)

    ID used to authenticate a transaction using APIKEY.

    Example: a688b3a1-d227-4cdd-9454-5d7cfcc74ef9

  • CART[X][DISCOUNT] float

    Applied discount in percentage. The decimal separator is the dot symbol.

    Example: 10.5

  • CART[X][SUBMERCHANTEXTERNALID] string

    Submerchant account identifier in the marketplace. This field allow a special value “OPERATOR” when the item is sold by the marketplace itself (and not a sub-merchant).

    Example: shop1.com

  • CART[X][TAX] float

    Applied taxes in percentage. The decimal separator is the dot symbol.

    Example: 19.5

  • EXTRADATA string(1-255)

    Free field (Dalenys will send you back the content of the EXTRADATA you specified ahead).

    Example: referrer=myshop.com;order=premium

  • METADATA string(1-255)

    Additional transactional data. Contact your account manager for more informations.

    Example: @METADATA-MYWEBSITE

Request result

Here is the request result from the platform:

  • OPERATIONTYPE authorization

    The action you want to process.

    Example: payment

  • EXECCODE string(4)

    The operation result code. (See the complete list of execution code)

    Example: 0000

  • MESSAGE string(no length limit)

    The operation result description linked to EXECCODE.

    Example: The transaction has been accepted

  • DESCRIPTOR string

    The transaction label sent to the bank network. The transaction will display with this label on the user’s bank statement.

    Example: myshop.com

  • TRANSACTIONID string(1-32)

    Unique Dalenys transaction ID. Make sure to store this ID in your database.

    Example: A1123456

  • REDIRECTHTML string(no length limit)

    HTML content to display to the user to continue the processing. The string is base64 encoded.

    Example:

Notification result parameters

Please see the dedicated section about notification and redirection

Here is the request result from the platform:

  • IDENTIFIER string(1-32)

    Your processing account technical identifier.

    Example: YOUR_IDENTIFIER

  • OPERATIONTYPE authorization

    The action you want to process.

    Example: payment

  • TRANSACTIONID string(1-32)

    Unique Dalenys transaction ID. Make sure to store this ID in your database.

    Example: A1123456

  • CLIENTIDENT string(1-255)

    Unique identifier of the user in your application (e.g. a login or a primary key).

    Example: john.snow

  • CLIENTEMAIL email(5-255)

    The user’s email.

    Example: john.snow@example.com

  • ORDERID string(1-40)

    Unique ID associated to an order in the merchant’s database (as specified in your initial POST request)

    Example: 1234

  • AMOUNT integer

    The transaction amount in the smallest money decimal (e.g. cents for euro).

    Example: 1000

  • VERSION 3.0

    The API protocol version.

    Example: 3.0

  • LANGUAGE fr, en, de, es, it, nl, zh, ru, pt, cs

    Configure the hosted form display language.

    Example: en

  • CURRENCY string(3)

    Currency code (ISO 4217 format).

    Example: EUR

  • EXECCODE string(4)

    The operation result code. (See the complete list of execution code)

    Example: 0000

  • MESSAGE string(no length limit)

    The operation result description linked to EXECCODE.

    Example: The transaction has been accepted

  • DESCRIPTOR string

    The transaction label sent to the bank network. The transaction will display with this label on the user’s bank statement.

    Example: myshop.com

  • HASH string(64)

    The transaction’s hash as described in the dedicated section.

    Example: 15477dcb8687adf90fa51e418f3c1a2d025f40b177a978c2734514734633b3c4

  • EXTRADATA string(1-255)

    Free field (Dalenys will send you back the content of the EXTRADATA you specified ahead).

    Example: referrer=myshop.com;order=premium

Capture

Authorizations have to be captured by a server to server request.

info

You can only capture a succeeded authorization transaction and an authorization can only be captured once.

warning

A capture must be triggered within 7 days of an authorization, otherwise capture success is no longer guaranteed.

Example

Here is a server to server request example:

$> curl --request POST --url "https://secure-test.be2bill.com/front/service/rest/process" \
--data "method=capture" \
--data "params[IDENTIFIER]=YOUR_IDENTIFIER" \
--data "params[OPERATIONTYPE]=capture" \
--data "params[TRANSACTIONID]=A1123456" \
--data "params[ORDERID]=1234" \
--data "params[DESCRIPTION]=Knows nothing" \
--data "params[VERSION]=3.0" \
--data "params[HASH]=15477dcb8687adf90fa51e418f3c1a2d025f40b177a978c2734514734633b3c4" \

Parameters

  • IDENTIFIER string(1-32)

    Your processing account technical identifier.

    Example: YOUR_IDENTIFIER

  • OPERATIONTYPE capture

    The action you want to process.

    Example: payment

  • TRANSACTIONID string(1-32)

    The authorization’s TRANSACTIONID you want to capture.

    Example: A1123456

  • ORDERID string(1-40)

    Unique ID associated to an order in the merchant’s database (as specified in your initial POST request)

    Example: 1234

  • DESCRIPTION string(1-510)

    A short description of the operation, can be used to trigger fraud actions. Don’t hesitate to ask your Payment Manager for some advice on this topic.

    Example: Knows nothing

  • VERSION 3.0

    The API protocol version.

    Example: 3.0

  • HASH string(64)

    The transaction’s hash as described in the dedicated section.

    Example: 15477dcb8687adf90fa51e418f3c1a2d025f40b177a978c2734514734633b3c4

  • EXTRADATA string(1-255)

    Free field (Dalenys will send you back the content of the EXTRADATA you specified ahead).

    Example: referrer=myshop.com;order=premium

Request result

Here is the request result from the platform:

  • OPERATIONTYPE capture

    The action you want to process.

    Example: payment

  • EXECCODE string(4)

    The operation result code. (See the complete list of execution code)

    Example: 0000

  • MESSAGE string(no length limit)

    The operation result description linked to EXECCODE.

    Example: The transaction has been accepted

  • DESCRIPTOR string

    The transaction label sent to the bank network. The transaction will display with this label on the user’s bank statement.

    Example: myshop.com

  • TRANSACTIONID string(1-32)

    Unique Dalenys transaction ID. Make sure to store this ID in your database.

    Example: A1123456

Notification result parameters

Here is the request result from the platform:

  • IDENTIFIER string(1-32)

    Your processing account technical identifier.

    Example: YOUR_IDENTIFIER

  • OPERATIONTYPE capture

    The action you want to process.

    Example: payment

  • TRANSACTIONID string(1-32)

    Unique Dalenys transaction ID. Make sure to store this ID in your database.

    Example: A1123456

  • CLIENTIDENT string(1-255)

    Unique identifier of the user in your application (e.g. a login or a primary key).

    Example: john.snow

  • CLIENTEMAIL email(5-255)

    The user’s email.

    Example: john.snow@example.com

  • ORDERID string(1-40)

    Unique ID associated to an order in the merchant’s database (as specified in your initial POST request)

    Example: 1234

  • AMOUNT integer

    The transaction amount in the smallest money decimal (e.g. cents for euro).

    Example: 1000

  • VERSION 3.0

    The API protocol version.

    Example: 3.0

  • LANGUAGE fr, en, de, es, it, nl, zh, ru, pt, cs

    Configure the hosted form display language.

    Example: en

  • CURRENCY string(3)

    Currency code (ISO 4217 format).

    Example: EUR

  • EXECCODE string(4)

    The operation result code. (See the complete list of execution code)

    Example: 0000

  • MESSAGE string(no length limit)

    The operation result description linked to EXECCODE.

    Example: The transaction has been accepted

  • DESCRIPTOR string

    The transaction label sent to the bank network. The transaction will display with this label on the user’s bank statement.

    Example: myshop.com

  • HASH string(64)

    The transaction’s hash as described in the dedicated section.

    Example: 15477dcb8687adf90fa51e418f3c1a2d025f40b177a978c2734514734633b3c4

  • EXTRADATA string(1-255)

    Free field (Dalenys will send you back the content of the EXTRADATA you specified ahead).

    Example: referrer=myshop.com;order=premium

Refund

Refunds can either be processed through server-to-server request or Dalenys Extranet.

Example

Here is a server to server request example:

$> curl --request POST --url "https://secure-test.be2bill.com/front/service/rest/process" \
--data "method=refund" \
--data "params[IDENTIFIER]=YOUR_IDENTIFIER" \
--data "params[OPERATIONTYPE]=refund" \
--data "params[TRANSACTIONID]=A1123456" \
--data "params[ORDERID]=1234" \
--data "params[DESCRIPTION]=Knows nothing" \
--data "params[VERSION]=3.0" \
--data "params[HASH]=15477dcb8687adf90fa51e418f3c1a2d025f40b177a978c2734514734633b3c4" \

Parameters

  • IDENTIFIER string(1-32)

    Your processing account technical identifier.

    Example: YOUR_IDENTIFIER

  • OPERATIONTYPE refund

    The action you want to process.

    Example: payment

  • TRANSACTIONID string(1-32)

    The capture’s TRANSACTIONID you want to refund.

    Example: A1123456

  • ORDERID string(1-40)

    Unique ID associated to an order in the merchant’s database (as specified in your initial POST request)

    Example: 1234

  • DESCRIPTION string(1-510)

    A short description of the operation, can be used to trigger fraud actions. Don’t hesitate to ask your Payment Manager for some advice on this topic.

    Example: Knows nothing

  • VERSION 3.0

    The API protocol version.

    Example: 3.0

  • HASH string(64)

    The transaction’s hash as described in the dedicated section.

    Example: 15477dcb8687adf90fa51e418f3c1a2d025f40b177a978c2734514734633b3c4

  • AMOUNT integer

    The amount to refund. When not specified, refund 100% of the initial transaction resting amount. Could not be higher than the resting amount.

    Example: 1000

  • EXTRADATA string(1-255)

    Free field (Dalenys will send you back the content of the EXTRADATA you specified ahead).

    Example: referrer=myshop.com;order=premium

Request result

Here is the request result from the platform:

  • OPERATIONTYPE refund

    The action you want to process.

    Example: payment

  • EXECCODE string(4)

    The operation result code. (See the complete list of execution code)

    Example: 0000

  • MESSAGE string(no length limit)

    The operation result description linked to EXECCODE.

    Example: The transaction has been accepted

  • DESCRIPTOR string

    The transaction label sent to the bank network. The transaction will display with this label on the user’s bank statement.

    Example: myshop.com

  • TRANSACTIONID string(1-32)

    Unique Dalenys transaction ID. Make sure to store this ID in your database.

    Example: A1123456

Notification result parameters

Here is the request result from the platform:

  • IDENTIFIER string(1-32)

    Your processing account technical identifier.

    Example: YOUR_IDENTIFIER

  • OPERATIONTYPE refund

    The action you want to process.

    Example: payment

  • TRANSACTIONID string(1-32)

    Unique Dalenys transaction ID. Make sure to store this ID in your database.

    Example: A1123456

  • CLIENTIDENT string(1-255)

    Unique identifier of the user in your application (e.g. a login or a primary key).

    Example: john.snow

  • CLIENTEMAIL email(5-255)

    The user’s email.

    Example: john.snow@example.com

  • ORDERID string(1-40)

    Unique ID associated to an order in the merchant’s database (as specified in your initial POST request)

    Example: 1234

  • AMOUNT integer

    The transaction amount in the smallest money decimal (e.g. cents for euro).

    Example: 1000

  • VERSION 3.0

    The API protocol version.

    Example: 3.0

  • LANGUAGE fr, en, de, es, it, nl, zh, ru, pt, cs

    Configure the hosted form display language.

    Example: en

  • CURRENCY string(3)

    Currency code (ISO 4217 format).

    Example: EUR

  • EXECCODE string(4)

    The operation result code. (See the complete list of execution code)

    Example: 0000

  • MESSAGE string(no length limit)

    The operation result description linked to EXECCODE.

    Example: The transaction has been accepted

  • DESCRIPTOR string

    The transaction label sent to the bank network. The transaction will display with this label on the user’s bank statement.

    Example: myshop.com

  • EXTERNALENTITYID int (1-10)

    Merchant account’s reference

    Example:

  • EXTERNALREFERENCE int (9)

    Transaction’s reference (string left padded with 0 of 9 digits)

    Example: 19

  • HASH string(64)

    The transaction’s hash as described in the dedicated section.

    Example: 15477dcb8687adf90fa51e418f3c1a2d025f40b177a978c2734514734633b3c4

  • EXTRADATA string(1-255)

    Free field (Dalenys will send you back the content of the EXTRADATA you specified ahead).

    Example: referrer=myshop.com;order=premium

Specific details

Spanish accounts

Accounts related to oney.es are subject to specific rules:

  • parameter PAYMENTOPTION must be valued with “facilypay-3xsansfrais” only
  • parameters BILLINGPHONE and SHIPTOPHONE must respect this specific pattern: “+348 or +349 followed by 8 digits”
  • parameters BILLINGMOBILEPHONE and SHIPTOMOBILEPHONE must respect this specific pattern: “+346 or +347 followed by 8 digits”

Technical validation reports

Oney France - English version to download.

Oney France - French version to download.

Spanish version to download.

MCC 3000-3300 + 4511

Merchants whose activity corresponds to the MCC above are subject to special rules:

  • Merchant must send additional parameters and subparameters dedicated to travel (Please find the list bellow) in their authorization request.
  • Merchant must proceed one capture per passenger (per PNR ticket);
  • Each capture must contain additional parameters as below;

Parameters

The parameters dedicated to travel are grouped into 3 categories:

Optional header parameters about the trip owner
  • TRAVELPASSENGERLASTNAME string(1-50)

    Traveler last name.

    Example: Doe

  • TRAVELPASSENGERFIRSTNAME string(1-50)

    Traveler first name.

    Example: John

  • TRAVELPASSENGERDOB date(YYYY-MM-DD)

    Traveler date of birth.

    Example: 1976-07-06

TRAVELLEGS[X] nested parameters each occurrence of which designates a journey of the trip
  • TRAVELLEGS[X][RANK] int(1-2)

    Journey numbering from the first one to the last one.

    Example: 3

  • TRAVELLEGS[X][DEPARTUREDATE] date(YYYY-MM-DD)

    Departure date.

    Example: 2018-12-01

  • TRAVELLEGS[X][ORIGINLOCATIONCODE] string(3)

    Origin airport/city IATA code (IATA 3-letter codes format).

    Example: CDG

  • TRAVELLEGS[X][DESTINATIONLOCATIONCODE] string(3)

    Destination airport/city IATA code (IATA 3-letter codes format).

    Example: JFK

  • TRAVELLEGS[X][SERVICECLASS] first class, Second class, business, Economic, 0

    Ticket category (“0” if no class)

    Example: first class

  • TRAVELLEGS[X][EXCHANGEABLE] boolean

    Ticket exchangeability flag.

    Example: yes

  • TRAVELLEGS[X][INSURANCE] boolean

    Travel insurance flag.

    Example: yes

  • TRAVELLEGS[X][MEANTRANSPORT] plane, train, road, boat

    Mean of transport.

    Example: plane

  • TRAVELLEGS[X][PASSENGERCOUNT] int(1-3)

    Number of travelers.

    Example: 4

TRAVELSTAYS[X] nested parameters each occurrence of which designates a lodging during the trip
  • TRAVELSTAYS[X][LOCATION] string(1-64)

    Place of residence (City, place…).

    Example: Hotel Central of New York

  • TRAVELSTAYS[X][ARRIVALDATE] date(YYYY-MM-DD)

    Arrival date.

    Example: 2018-12-01

  • TRAVELSTAYS[X][DEPARTUREDATE] date(YYYY-MM-DD)

    Departure date.

    Example: 2018-12-01

  • TRAVELSTAYS[X][VEHICLERENT] boolean

    Vehicle rental flag.

    Example: yes

  • TRAVELSTAYS[X][INSURANCE] boolean

    Travel insurance flag.

    Example: yes

  • TRAVELSTAYS[X][TYPE] hotel, rental, tour/trip, other

    Stay Type

    Example: hotel

  • TRAVELSTAYS[X][PASSENGERCOUNT] int(1-3)

    Number of travelers.

    Example: 4

  • TRAVELSTAYS[X][ROOMCOUNT] string(1-3)

    Number of rooms.

    Example: 2

Example

Let us assume that a family of 4 people (2 adults and 2 children) plans to make this travel:

  • Outward journey: Paris > New York / - Return : San Francisco > Paris
  • Hotel booking in New York
  • A trip from New York to San Francisco by bus
  • Rental of apartment in San Francisco

The request will therefore contain :

  • 3 occurrences of the TRAVELLEGS[X] nested parameters
  • 2 occurences of the TRAVELSTAYS[X] nested parameters

As follows :

$> curl --request POST --url "https://secure-test.be2bill.com/front/service/rest/process" \
--data "method=" \
--data "params[TRAVELPASSENGERLASTNAME]=Doe" \
--data "params[TRAVELPASSENGERFIRSTNAME]=John" \
--data "params[TRAVELPASSENGERDOB]=1976-07-06" \
--data "params[TRAVELLEGS][0][RANK]=1" \
--data "params[TRAVELLEGS][0][DEPARTUREDATE]=2018-12-01" \
--data "params[TRAVELLEGS][0][ORIGINLOCATIONCODE]=CDG" \
--data "params[TRAVELLEGS][0][DESTINATIONLOCATIONCODE]=JFK" \
--data "params[TRAVELLEGS][0][SERVICECLASS]=first class" \
--data "params[TRAVELLEGS][0][EXCHANGEABLE]=true" \
--data "params[TRAVELLEGS][0][INSURANCE]=true" \
--data "params[TRAVELLEGS][0][MEANTRANSPORT]=plane" \
--data "params[TRAVELLEGS][0][PASSENGERCOUNT]=4" \
--data "params[TRAVELSTAYS][0][LOCATION]=Hotel Central of New York" \
--data "params[TRAVELSTAYS][0][ARRIVALDATE]=2018-12-01" \
--data "params[TRAVELSTAYS][0][DEPARTUREDATE]=2018-12-06" \
--data "params[TRAVELSTAYS][0][VEHICLERENT]=true" \
--data "params[TRAVELSTAYS][0][INSURANCE]=true" \
--data "params[TRAVELSTAYS][0][TYPE]=hotel" \
--data "params[TRAVELSTAYS][0][PASSENGERCOUNT]=4" \
--data "params[TRAVELSTAYS][0][ROOMCOUNT]=2" \
--data "params[TRAVELLEGS][1][RANK]=2" \
--data "params[TRAVELLEGS][1][DEPARTUREDATE]=2018-12-06" \
--data "params[TRAVELLEGS][1][ORIGINLOCATIONCODE]=NYC" \
--data "params[TRAVELLEGS][1][DESTINATIONLOCATIONCODE]=SFO" \
--data "params[TRAVELLEGS][1][SERVICECLASS]=first class" \
--data "params[TRAVELLEGS][1][EXCHANGEABLE]=true" \
--data "params[TRAVELLEGS][1][INSURANCE]=true" \
--data "params[TRAVELLEGS][1][MEANTRANSPORT]=bus" \
--data "params[TRAVELLEGS][1][PASSENGERCOUNT]=4" \
--data "params[TRAVELSTAYS][1][LOCATION]=Air Bnb - The big palm tree - San Francisco" \
--data "params[TRAVELSTAYS][1][ARRIVALDATE]=2018-12-07" \
--data "params[TRAVELSTAYS][1][DEPARTUREDATE]=2018-12-12" \
--data "params[TRAVELSTAYS][1][VEHICLERENT]=yes" \
--data "params[TRAVELSTAYS][1][INSURANCE]=yes" \
--data "params[TRAVELSTAYS][1][TYPE]=rental" \
--data "params[TRAVELSTAYS][1][PASSENGERCOUNT]=4" \
--data "params[TRAVELLEGS][2][RANK]=3" \
--data "params[TRAVELLEGS][2][DEPARTUREDATE]=2018-12-12" \
--data "params[TRAVELLEGS][2][ORIGINLOCATIONCODE]=SFO" \
--data "params[TRAVELLEGS][2][DESTINATIONLOCATIONCODE]=CDG" \
--data "params[TRAVELLEGS][2][SERVICECLASS]=first class" \
--data "params[TRAVELLEGS][2][EXCHANGEABLE]=true" \
--data "params[TRAVELLEGS][2][INSURANCE]=true" \
--data "params[TRAVELLEGS][2][MEANTRANSPORT]=plane" \
--data "params[TRAVELLEGS][2][PASSENGERCOUNT]=4" \

Sandbox test card numbers

You can use the following test card numbers (PANs) to trigger specific execution codes depending on your country in the sandbox environment:

CODE card number
0000 FR 4970104444444556

ES 5127290000000012