Body: JSON Message representing a Transaction object (See Transaction Objects for Details)

Similar documents
PayPal Home Support Search PayPal Developer Central Search. Developer Home Partner Solutions How to Library Training Community

DPD API Reference Documentation

MySagePay User Guide

CyberSource Global Payment Management

FUNCTIONAL SIZE MEASUREMENT USING THE COSMIC METHOD EXAMPLE: ONLINE SHOPPING

CyberSource Global Payment Management for Magento 2

Steps A. Identify version number B. Access configuration page C. Basic settings D. Advance settings E. Front end experience settings F.

CyberSource Global Payment Management for Magento 2

Vantiv ecommerce for Magento 2

PAYMENTADMIN API 1.1 SveaWebPay

PayMorrow Integration Guide. Version As of: About PayMorrow: General information about PayMorrow

SPARROW Gateway. Custom Payment Redirect. Version (Build 7373)

Direct Merchant Notification Guide API v 1.0.0

EWAY RAPID SETUP GUIDE FOR

2Checkout Instant Notification Service

MasterPass Integration Guide. Version 6.2.2

INTEGRATION XML API R2 Rev /06/2016

SPARROW Gateway. Developer API. Version (Build 7373)

Vantiv ecommerce for Magento 1 User Guide. Version 1.0.7

ChinaPay Integration Guide. Version 6.2.2

Connecting VirtueMart To PayPal (Live)

ewallet API integration guide version 5.1 8/31/2015

Copyright 2017 Ingenico epayments. PayPal Express Checkout

Vingd API for PHP Documentation

MySagePay USER GUIDE

Direct Post Integration Guide

Magento Extension User Guide: Web Services Version 3.6.1

Swish Integration Guide. Version 6.2.2

Payolution Integration Guide. Version As of: About Payolution: General information about Payolution

Magento Extension User Guide. This document explains how to install the official Secure Trading extension on your Magento store.

PonyExpress API V1. The PonyExpress API allows you to perform operations that you do with our web client.

Authorize.Net Magento 2.x Payment Module

PostFinance Integration Guide. Version 6.2.2

NAB TRANSACT. Direct Post v2.1.2 Integration Guide

Magento Extension User Guide: Payment Pages. This document explains how to install the official Secure Trading extension on your Magento store.

OKPAY guides INTEGRATION OVERVIEW

Bürgel Integration Guide. Version 6.2.1

Paylane Direct System. Webservice based payment management system

Incarcerated Student Online Ordering Procedures INTRODUCTION

Fyndiq Magento Extension

Hardware One-Time Password User Guide November 2017

HANDEPAY DASHBOARD USER GUIDE HANDEPAY DASHBOARD USER GUIDE. Version:

PayPal Integration Guide. Version 6.2.3

ideal Integration Guide Version 6.2.3

SafetyPay Integration Guide. Version 6.2.2

Payment Center API WEBFORM/GATEWAY MODE v2.6.2

Virtual Terminal. Quick Start Guide. v.01_03/18

Basware Portal for Receiving Basware Commerce Network

Paypal Express Checkout

CSV Download. 2.1 (a) Automatically downloading transactions as Comma Separated Values (CSV). Published: 1 August 2017

INTEGRATION DOCUMENTATION Svea Checkout API v1.12

Int_altapay. Version

SortMyBooks API (Application programming

My Tennis making membership easy. My Tennis. Club Administration User Manual Version 3.0. Making membership easy

ekashu Payment Page Developer s Integration Guide

Finland Online Bank Transfer Integration Guide. Version 6.2.2

Quick Setup Guide BY: AEXXIS LLC

eshop Installation and Data Setup Guide for Microsoft Dynamics 365 Business Central

eps Integration Guide Version 6.2.2

CyberSource Business Center

ebay Connector Features Module Configuration

Smart Bulk SMS & Voice SMS Marketing Script with 2-Way Messaging. Quick-Start Manual

Phone-Based One-Time Password User Guide November 2017

Table des matières. 1. Introduction. 2. Payment process. 3. Registration. 4. Configuration. 5. Integration. 6. Reporting. 7.

giropay Integration Guide Version 6.2.2

Instant Payment Notification Guide

Overview. Guide for the Authorized User

2. Fill in the blanks; fill your RETAILER/BRAND for Retail Merchant. When all filled, click on: Submit.

ARELLO.COM Licensee Verification Web Service v2.0 (LVWS v2) Documentation. Revision: 8/22/2018

TIS HELP VCCS TECHNICAL INFORMATION SHOP (TIS) INSTRUCTION FOR INDEPENDENT OPERATORS

Generic Platform. Installation Guide 01/28/2015. Version Yotpo Ltd.

Swagelok Eastern Australia and New Zealand QUICK LOOK GUIDE USER-FRIENDLY GUIDE TO USING SWAGELOK.COM CONTENTS >

STORE CREDIT USER GUIDE

TABLE OF CONTENTS ACCOUNT REGISTRATION

Hardware One-Time Password User Guide August 2018

FedEx Office Print Online Corporate

SecureBill. Integration Guide. Version: 1.2

SEGPAY WooCommerce Plugin SETUP

Welcome to the Goddess Purchasing Portal!

How to Order a Four Panel Brochure through Print Services. Go to the Print Services Web Page and select the Online Store link.

Make online payments with peace of mind. HBL DebitCard enables enhanced security on internet-based transactions

Version Event Protect Platform RESTfull API call

Technical Proposal. Website Integration (API v2) Document #IPT-002

CyberSource Secure Acceptance Web/Mobile

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Magento

Newegg Elite Seller Program Guide

Preorder Payment Gateway Extension

Magento 2 Community / Enterprise Plugin

FedEx Office Print Online Corporate

Valitor Salesforce Commerce Cloud SFRA Module

ProPay API Appendix Response Values and Simulated Responses Version

Hosted Payment Form. Credit & Debit Card Processing v

SIMnet Online Student Registration Guide School Name

WooCommerce REST API Integration. October 27, 2018

Code Value Notes 00 Success The API request was successful 20 Invalid username The value <userid /> is already in use in ProPay s system

VIRTUAL TERMINAL GUIDE

Project Design T-Shirt Sale Website University of British Columbia Okanagan. COSC Fall 2017

Donation Cart. User Guide

CS 453 Electronic Commerce Technologies. Homework # 4 PHP-based E-Store

Dell Premier. Shopping and Ordering Guide. Logging into your Premier Page. Managing your personal profile

Transcription:

Overview SixthCents API is REST based and exposes HTTP endpoints. The API has several URLs and all responses are standard HTTP codes so you easily know what the outcome of an operation was. Authentication Before you can access our main endpoints you must first retrieve a valid token from our Token Endpoint. The required details for this endpoint can be found below. ENDPOINTS API/TOKEN Purpose: This endpoint is used to generate an authentication token based on a trusted username and password. The provided token can be used to authenticate to all other SixthCents endpoints. Header Input parameters: username and password Output: Authentication Token and an HTTP Response API/SUBMIT Purpose: This endpoint is used to submit a transaction to SixthCents and retrieve a SixthCents decision. A valid authorisation token must be provided. Header Input parameters: Valid SixthCents token. Body: JSON Message representing a Transaction object (See Transaction Objects for Details) Output: A SixthCents decision object in XML or JSON and an HTTP Response API/UPDATE Purpose: This endpoint is used to update a previously submitted transaction s outcome. For example to notify SixthCents that a transaction has been cancelled, refunded or charged back. A unique id from a previously submitted transaction should be included in the URL. A special Transaction Outcome object is required by this endpoint Header Input Parameters: Valid SixthCents token Body: JSON Message representing a Transaction Outcome Output: an HTTP Response indicating the result of operations

API/HISTORICAL Purpose: This endpoint is used to submit historical transactions to SixthCents in batches on 50 or less. Header Input Parameters: Valid SixthCents token Body: JSON Message representing a collection of Transaction objects(see Transaction Objects for Details) Output: an HTTP Response indicating the result of operations API/GETTRANSACTION/{ID}/{CLIENTID}/{SUBCLIENTID} Purpose: This endpoint is used to retrieve a transaction from the SixthCents database. A JSON object containing all relevant data fields pertaining to that transaction will be output, including all of the fields in SixthCents extensive data enrichment process as well as the SixthCents decision. This endpoint is useful for internal reporting. Header Input Parameters: Valid SixthCents token Body: NULL Output: an HTTP Response indicating the result of operations and a JSON object representing the SixthCents transaction HTTP Response messages SixthCents uses standard HTTP response codes to communicate the outcome of operations. A list of HTTP response codes and their corresponding meanings is listed below. HTTP Status 200 indicates request success. HTTP Status 400 indicates an error that resulted from the provided information (e.g. a required parameter was missing, a parameter was given in the wrong format, etc.) HTTP Status 401 indicates a missing or invalid Authentication token HTTP Status 404 indicates that the requested endpoint does not exist. HTTP Status 500 indicates an internal error with SixthCents servers. Transaction Objects The SixthCents API requires Transaction data to be submitted in JSON or XML data representations of hierarchical object models. Full details of these objects can be seen below. Some of the fields are mandatory while others are optional. API/SUBMIT Transaction (Parent Object) An object containing information about the transaction (Contains child objects)

Id: String Mandatory A unique identifier for the transaction ShopAddress: String Optional The URL of your website ClientID: String Mandatory Your unique Client id provided by SixthCents SubClientID: String Mandatory Your unique Sub Client id provided by SixthCents CheckoutId: String Optional The checkout ID associated with this transaction Email: String Optional The email address the customer supplied DateTimeCreated: DateTime Mandatory The date and time the Transaction was created (yyyy-mm-dd hh-mm-ss) DateTimeClosed: DateTime Otional The date and time the Transaction was closed (yyyy-mm-dd hh-mm-ss) Currency: String Mandatory The three letter code of the currency used for payment (ISO 4217) UpdatedOn: DateTime Optional The date and time that the transaction was last modified Gateway: String Optional The payment gateway used for the transaction. BrowserIP: String Mandatory The IP Address of the customer s browser. TotalPrice: Float Mandatory The total value of the Transaction CancelReason: Enum Optional The reason why the transaction was cancelled (null if not cancelled) If the transaction has been cancelled, the reason will be one of the following: Customer: The customer cancelled the order Fraud: The order was fraudulent Inventory: Items were out of stock

Other: The order was cancelled for other reasons PaymentType: Enum Required The payment type for the transaction. One of the below values must be used. Card Paypal TransactionItems: Collection of TransactionItem Optional A collection of TransactionItem objects that represent purchased products Addresses: Collection Of Address Optional A collection of Address objects that represent billing or shipping addresses. SocialDetails: Collection of SocialDetails Optional A collection of SocialDetails objects CardPaymentDetails: CardPaymentDetails object Mandatory if PaymentType is Card A CardPaymentDetails object PayPalPaymentDetails: PayPalPaymentDetails object Mandatory if PaymentType is Paypal A PayPalPaymentDetails object CustomerDetails: CustomerDetails object Mandatory A CustomerDetails object ClientDetails: ClientDetails object Optional A ClientDetails object TransactionItem (Child Object) Price: Float Mandatory The price of the Transaction Item ShippingRequired: Boolean Mandatory Indicates if shipping is required for the TransactionItem Quantity: Integer Optional The quantity of the TransactionItems purchased Description: String Optional A description of the Item Purchased ProductId: String Optional

The id associate with the product SKU: String Optional The SKU of the product Condition: String Optional The condition of the item purchased Brand: String Optional The Brand name of the item purchased Address (Child Object) An Object containing information about the customer s addresses AddressType: Enum Mandatory The address type for the address. One of the below values must be used. Billing Shipping FirstName: String Mandatory The First Name of the recipient LastName: String Mandatory The Last Name of the recipient Address1: String Mandatory The street address Address2: String Optional An optional additional field for the address Company: String Optional The company associated with the address Country: String Optional The country the address is located in CountryCode: String Optional The two letter abbreviation of the country StateOrProvince: String Optional The name of the state or province the address is located in StateOrProvinceCode: String Optional

The two-letter abbreviation of the state or province of the address. PostCode: String Mandatory The post or zip code of the address SocialDetails (Child Object) An object containing information about the customer s social media account(s) NetworkName: String Mandatory The name of the social network PublicUserName: String Mandatory The customer s public username CommunityScore: Integer Optional Community Score for the customer ProfilePicture: String optional URL of the customer s profile picture Email: String Optional Customer s email that is registered on the social network Bio: String optional AccountURL Short biography of the customer on the social network URL of the customer s homepage on the social network Following: Integer Optional Number of users following the customer on the social network Followed: Integer Optional Number of users followed by the customer on the social network Posts: Integer Optional Number of posts made by the customer on the social network CardPaymentDetails (Child Object) An object containing information about card payment details CardBin: String Mandatory

The first six digits of the card number used in the payment CardNumberHash: String Optional A SHA256 Hash of the CardNumber AVSResultCode: String Optional Address verification system response code (Single letter) CVVResultCode: String Optional Card Verification Value Response Code (Single Letter) CardCompany: String Optional The company that issued the customer card AuthorisationCode String Optional The authorisation code issued by the Acquirer PayPalPaymentDetails An object containing information about a paypal payment PaypalEmail: String Mandatory The payer email assigned to his paypal account as received from paypal PayerStatus: String Mandatory The payer status as received from paypal PayerAddressStatus: String Mandatory The payer address status as received from paypal ProtectionEligibility: String Mandatory The merchant s protection eligibility for the order as received from paypal. PaymentStatus: String Optional The payment status as recieved from paypal. PendingReason: String Optional The pending reason received from paypal. AuthorisationCode: String Optional The authorization Id received from paypal CustomerDetails(Child Object) email: String Mandatory

The customer's email address. FirstName: String Mandatory The customer's first name. LastName: String Mandatory The customer's last name. id: String required A unique numeric identifier for the customer. CreatedAt: DateTime Optional The date and time when the customer record was created. FirstPurchaseDate: DateTime optional The date and time when the customer first purchased items in the shop. VerifiedEmail: Boolean required Whether the customer's email was verified. ClientDetails(Child Object) An object containing Technical information regarding the customer's browsing session. accept_language: String optional List of two-letter language codes sent from the client. user_agent: String optional The full User-Agent sent from the client. API/UPDATE TransactionOutcome ClientID: String mandatory Your six digit client id SubClientID: String mandatory Your six digit sub client id Id: String mandatory The transaction reference supplied in the original transaction Outcome: enum

The new status of the transaction selected from the below values 0 = Completed, 1 = RejectedFraud, 2 = RejectedAuthFailure, 3 = RejectedSuspicious, 4 = Cancelled, 5 = ChargebackFraud, 6 = ChargebackOther, 7 = Refunded, 8 = OnHoldReview, 9 = ReportedFraud EXAMPLE JSON TRANSACTION To be used in the body of the api/submit endpoint { "TransactionItems":[ ], { } "Price":10, "ShippingRequired":false, "Quantity":1, "Description":"ACME Toy", "ProductId":"1234", "sku":"1234", "Condition":"New", "Brand":"ACME" "Addresses":[ { "AddressType":0,

"FirstName":"Dave", "LastName":"Smith", "Address1":"42 Roady Road", "Address2":"Roadington", "Company":"ACME", "Country":"United Kingdom", "CountryCode":"UK", "StateOrProvince":"London", "StateOrProvinceCode":EN, "PostCode":"SE13 5LP" }, { "AddressType":1, "FirstName":"Dave", "LastName":"Smith", "Address1":"42 Roady Road", "Address2":"Roadington", "Company":"ACME", "Country":"United Kingdom", "CountryCode":"UK", "StateOrProvince":"London", "StateOrProvinceCode":EN, "PostCode":"SE13 5LP" } ], "SocialDetails":null, "CardPaymentDetails":{ "CardBin":"411111", "AVSResultCode":"F", "CVVResultCode":"M", "CardCompany":"VISA",

"AuthorisationCode":"123456", "CardNumberSHA256":"ana7347rbfjkf8894u74hff9785yhjr4kf" }, "paypalpaymentdetails":null, "customerdetails":{ "email":"dave@acme.co.uk", "CreatedAt": 2017-01-01 00:00.000, "FirstName":"Dave", "LastName":"Smith", "id":"123456", "FirstPurchaseDate": 2017-01-01 00:00.000, "VerifiedEmail":true }, "TransactionDecision":{ "TransactionStatus":0, "DecidedAt": 2017-01-01 00:00.000,, "Reason":null, "Amount":0, "Currency":GBP, "Notes": All good }, "ClientDetails":null, "id":"12345678", "ShopAddress":"acme.co.uk", "ClientId":"000010", "SubClientID":"000001", "CheckoutId":"123456", "Email":"dave@acme.co.uk", "DateTimeCreated":"2016-10-04 08:46:06.350", "DateTimeClosed":null, "Currency":"GBP",

"UpdatedOn":null, "Gateway":"Realex", "BrowserIP":"10.0.2.15", "TotalPrice":10.00, "CancelReason":null, "PaymentType":0 } EXAMPLE TRANSACTION OUTCOME JSON To be used in the body of api/update endpoint { } "ClientID": "000010", "SubClientId": "000001", "id": "123456", "Outcome": 4