Divido API
=======
This is the documentation for the Divido API.
Sign up for an account to get instant access to our sandbox environment.
*Current version: v1.9*
Getting started
---------------
There are several distinct parts of a complete integration with the Divido API:
* Deal Calculator
* Finances
* Credit Request
* Finalize Credit Request
* Activation
* Cancellation
* Refund
* List all applications
* Retrieve an application
* Reporting / List all payment batches
* Reporting / Retrieve records from a payment batch
### Deal Calculator
Calculate APR, monthly repayments, duration etc
### Finances
List Rate Card and all financial products available for a specific merchant.
### Credit Request
Create a new credit proposal and return an url to application form
### Finalize Credit Request
Finalize an existing accepted credit application, will update the loan agreement and return an url to the contract signing.
### Activation
Activate whole or part of application
### Cancellation
Cancel a deactivated application
### Refund
Refund a part or whole of an activated application
### List all applications
Returns a list of your applications. The applications are returned sorted by creation date, with the most recently created applications appearing first.
### Retrieve an application
Retrieves the details of an existing application. Supply the application ID and the API will return the corresponding application.
### Reporting / List all payment batches
Retrieves all payment batches.
### Reporting / Retrieve records from a payment batch
Retrieves the content of a payment batch. Supply the batch ID and the API will return all records.
Change log
------------
#### 2016-12-20
- Added Deal Calculator
- Added directSign to Credit Request
- Added Finalize Credit Request
- Added activation status
#### 2016-11-28
- Added reference on activate and refund
- Security enhancement: Added support for signing all api calls with a shared secret, contact Divido Support for more info.
#### 2016-11-16
- Added filter on proposal for List all applications
- Updated the webhook response
- Added reference in Credit Request
#### 2016-11-07
- Added product amount for refund and activation
#### 2016-11-02
- Added product lines for refund and activation
#### 2016-11-01
- Renamed fulfillment to activation
- Added reporting
#### 2016-10-30
- Added refunds, fulfillments, fulfillmentStatus to respones
#### 2016-10-18
- Removed Deal Calculator
- Added new statuses
- Changed the product dataset
- Updated the responses from the API
#### 2016-09-27
- Added partial fulfillment
- Added refund
- Added list all applications
- Added retrieve an application
- Added new statuses
- Bug fixes
#### 2016-06-28
- Added cancellation method
- Checkout URL
- Bug fixes
- Added more community libraries
#### 2016-01-28
- Added fulfillment method
#### 2015-06-21
- Added product to credit request
- Campaigns changed to Finances
Offical Libraries
---------------
We strongly encourage use of our official libraries for accessing the Divido API. Our official libraries are listed below, as well as community supported libraries.
#### PHP
Install from source
`git clone https://github.com/DividoFinancialServices/divido-api-php.git`
Community libraries
---------------
Please submit a pull request to this page to add any missing libraries that should be featured here. Please note that Divido does not offer any support for community libraries.
#### Magento 1.*
- [Divido for Magento 1.*](https://github.com/DividoFinancialServices/divido-magento)
#### Magento 2
- [Divido for Magento 2](https://github.com/DividoFinancialServices/magento2-module)
#### WooCommerce
- [Divido for WooCommerce](https://wordpress.org/plugins/divido-for-woocommerce/)
#### OpenCart
- [Divido for OpenCart](https://github.com/DividoFinancialServices/divido-opencart)
Using the API
===========
API endpoints
---------------
To use the Divido API to query data, you will need to send a request to the correct endpoint. Request endpoints should depend on whether you wish to query the live or sandbox environment:
- Sandbox: `https://secure.sandbox.divido.com/v1/`
- Live: `https://secure.divido.com/v1/`
HTTP response codes
---------------
You may encounter the following response codes. Any unsuccessful response codes will contain more information to help you identify the cause of the problem.
- `200` The request has succeeded.
- `201` The request has been fulfilled and resulted in a new resource being created. The newly created resource can be referenced by the URI(s) returned in the entity of the response, with the most specific URI for the resource given by a Location header field.
- `404` Not Found. The requested resource was not found. The response body will explain which resource was not found.
- `500` Internal Server Error. The server encountered an error while processing your request and failed. Please report this to the Divido support team.
Webhooks
===========
To alert you of any changes in the status of your resources, Divido provides webhooks. These are POST requests to your server that are sent as soon as a resource changes status. The body of the request contains details of the change.
Request
---------------
The API server will send a POST request to the `response_url` associated with the application or `webhook_url` set by Divido support team.
#### Parameters
`application` Application ID
`proposal` Proposal ID
`reference` Third party reference (if supplied as part of the application)
`status` New status
`metadata` Metadata (if supplied as part of the application)
#### Example Request
JSON example
``` json
{
"application": "C84047A6D-89B2-FECF-D2B4-168444F5178C",
"event": "application-status-update",
"metadata": {
"Invoice Number": "844001",
"Order Number": "100019"
},
"name": "John Doe",
"proposal": "PAA717844-EE9D-78AF-D11C-EDCC1D180F87",
"reference": "100019",
"status": "ACCEPTED"
}
```
Possible statuses
---------------
- `DRAFT` - Proposal send to Underwriter, waiting for decision
- `ACCEPTED` - Application accepted by Underwriter
- `DECLINED` - Applicaiton declined by Underwriter
- `REFERRED` - Application referred by Underwriter, waiting for new status
- `INFO-NEEDED` - More information is required before decision
- `ACTION-CUSTOMER` - Waiting for more information from Customer
- `ACTION-RETAILER` - Waiting for more information from Merchant
- `ACTION-LENDER` - Waiting for more information from Underwriter
- `DEPOSIT-PAID` - Deposit paid by customer
- `SIGNED` - Customer has signed all contracts
- `AWAITING-ACTIVATION` - Waiting for confirmation from Underwriter
- `AWAITING-CANCELLATION` - Waiting for confirmation from Underwriter
- `PARTIALLY-ACTIVATED` - Application partially activated by merchant
- `ACTIVATED` - Application activated and confirmed by Underwriter
- `CANCELLED` - Application cancelled
- `REFUNDED` - Whole Application refunded
- `DISPUTED` - Dispute raised by Merchant or Underwriter
- `LOAN-REVERSAL` - Loan reversal in progress
- `COMPLETED` - Application completed (after cool down period)
Resources
===========
Finances
------------------
Returns an array with all finance options available for merchant
#### Example Request
`GET` https://secure.divido.com/v1/finances?merchant={MERCHANT}&country={COUNTRY} `HTTP/1.1`
#### Example Response
JSON example
``` json
{
"finances": [
{
"agreement_duration": 6,
"country": "GB",
"deferral_period": 0,
"id": "F06895E17-EE96-926E-7137-37BCABB9DCF7",
"interest_rate": 0,
"max_deposit": 50,
"min_amount": 150,
"min_deposit": 0,
"text": "6 Month 0% Interest Free"
},
{
"agreement_duration": 12,
没有合适的资源?快使用搜索试试~ 我知道了~
OpenCart3.0中文免费版(opencart.cn出品)
共2000个文件
php:4304个
twig:451个
png:398个
5星 · 超过95%的资源 需积分: 30 6 下载量 185 浏览量
2018-01-10
08:35:24
上传
评论
收藏 18.95MB ZIP 举报
温馨提示
OpenCart v3.0中文社区版(免费版)是基于英文原版3.0.2.1基础上匠心二次开发而来( 由成都光大网络科技公司 opencart.cn 荣誉出品),严格遵循OC的mvc架构,并对其进行大量优化,现已全面支持php7.0及以上版本。同时依据国内用户的使用习惯进行了迄今为止最全面、最彻底的中国本土化开发,在易用性方面做了大量的提升,中文版不止于中文!
资源推荐
资源详情
资源评论
收起资源包目录
OpenCart3.0中文免费版(opencart.cn出品) (2000个子文件)
africa 45KB
antarctica 15KB
random_compat.phar.pubkey.asc 488B
asia 111KB
australasia 68KB
backward 4KB
twig.c 31KB
maxminddb.c 17KB
CHANGELOG 38KB
check-coffee 1KB
check-js 1KB
check-php 2KB
check-python 1010B
coffeelint 2KB
ca-certificates.crt 275KB
trusted-certs.crt 78KB
api_braintreegateway_com.ca.crt 21KB
icons.css 369KB
icons.css 331KB
stylesheet.css 177KB
bootstrap.css 148KB
bootstrap.css 144KB
bootstrap.css 143KB
jquery.mobile.icons.css 124KB
bootstrap.css 123KB
bootstrap.min.css 120KB
bootstrap.min.css 118KB
bootstrap.min.css 100KB
jquery.mobile.structure.css 67KB
ckfinder.css 44KB
font-awesome.min.css 40KB
skin.min.css 39KB
font-awesome.css 37KB
font-awesome.css 37KB
jquery-ui.css 34KB
font-awesome.min.css 30KB
font-awesome.min.css 30KB
jquery-ui.min.css 29KB
ambiance.css 26KB
bootstrap-theme.css 26KB
bootstrap-theme.css 26KB
stylesheet.css 23KB
bootstrap-theme.min.css 23KB
bootstrap-theme.min.css 23KB
font-awesome.css 21KB
swiper.css 20KB
ckfinder.css 20KB
bootstrap-theme.css 19KB
jquery-ui.structure.css 18KB
font-awesome.min.css 17KB
swiper.min.css 17KB
bootstrap-theme.min.css 17KB
jquery-ui.theme.css 16KB
jquery-ui.structure.min.css 14KB
layer.css 14KB
layer.css 14KB
jquery-ui.theme.min.css 13KB
summernote.css 13KB
jquery.mobile.theme.css 12KB
whoops.base.css 11KB
debugbar.css 10KB
normalize.css 9KB
codemirror.css 8KB
scss_css.css 8KB
magnific-popup.css 8KB
widgets.css 7KB
magnific-popup.css 7KB
openhandler.css 7KB
stylesheet.css 6KB
visualblocks.css 5KB
layer.css 5KB
layer.css 5KB
mdn-like.css 5KB
solarized.css 5KB
bootstrap-datetimepicker.min.css 5KB
bootstrap-datetimepicker.min.css 5KB
jquery.fancybox.css 5KB
widget.css 4KB
liquibyte.css 4KB
selectors.css 4KB
content.min.css 3KB
merge.css 3KB
content.inline.min.css 3KB
xq-dark.css 3KB
lint.css 3KB
github.css 3KB
lesser-dark.css 3KB
widget.css 2KB
icecoder.css 2KB
pastel-on-dark.css 2KB
jquery.fancybox-buttons.css 2KB
tomorrow-night-eighties.css 2KB
material.css 2KB
prism.css 2KB
erlang-dark.css 2KB
extends.css 2KB
xq-light.css 2KB
midnight.css 2KB
twilight.css 2KB
builtins.css 2KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
- flyliyang2019-07-03免费版,但是注明了不能用于商业用途. 看看学习一下吧.opencart-cn2020-05-18可以用于商业用途,很多商家已经用它赚了好多钱
opencart-cn
- 粉丝: 2
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Fortran语言教程,详细地介绍了Fortran语言
- (函数)图论中最短路径计算D算法MATLAB源代码,修改网络上D算法的错误,并编写通用的MATLAB函数.rar
- 基于matlab 2Dijkstra最短路径算法的matlab程序,希望对大家有所帮助.zip
- python入门学习,基础语法,用法等.zip
- Swift代码转换指南(Swift Swift Code Convension Guide .)
- Python入门到精通.zip
- 基于QT+C++开发的炫酷九宫格主界面+源码
- python入门代码测试.zip
- 一种基于Python实现中文编码格式转换工具的源码
- 基于matlab dijkstra算法,可以求解图论中的两点间最短路径.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功