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,
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP的MyCnCart开源B2C电子商务程序源码.zip (2000个子文件)
bootstrap.css 148KB
bootstrap.css 144KB
bootstrap.css 144KB
bootstrap.css 123KB
bootstrap.min.css 120KB
bootstrap.min.css 120KB
bootstrap.min.css 100KB
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
bootstrap-theme.min.css 23KB
bootstrap-theme.min.css 23KB
font-awesome.css 21KB
swiper.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
stylesheet.css 16KB
stylesheet.css 15KB
jquery-ui.structure.min.css 14KB
jquery-ui.theme.min.css 13KB
summernote.css 13KB
normalize.css 9KB
codemirror.css 8KB
scss_css.css 8KB
magnific-popup.css 8KB
magnific-popup.css 7KB
stylesheet.css 6KB
mdn-like.css 5KB
solarized.css 5KB
bootstrap-datetimepicker.min.css 5KB
bootstrap-datetimepicker.min.css 5KB
liquibyte.css 4KB
selectors.css 4KB
xq-dark.css 3KB
lesser-dark.css 3KB
icecoder.css 2KB
pastel-on-dark.css 2KB
tomorrow-night-eighties.css 2KB
material.css 2KB
ttcn.css 2KB
erlang-dark.css 2KB
extends.css 2KB
xq-light.css 2KB
midnight.css 2KB
twilight.css 2KB
builtins.css 2KB
base16-light.css 2KB
base16-dark.css 2KB
mbo.css 2KB
vibrant-ink.css 2KB
dracula.css 2KB
paraiso-light.css 2KB
paraiso-dark.css 2KB
3024-night.css 2KB
zenburn.css 2KB
3024-day.css 2KB
seti.css 2KB
abcdef.css 2KB
blackboard.css 2KB
opencart.css 2KB
monokai.css 2KB
the-matrix.css 2KB
yeti.css 2KB
rubyblue.css 2KB
tomorrow-night-bright.css 2KB
jquery-ui.min.css 2KB
examples.css 2KB
night.css 2KB
cobalt.css 2KB
media.css 2KB
colorforth.css 2KB
operators.css 1KB
railscasts.css 1KB
mixins.css 1KB
hopscotch.css 1KB
isotope.css 1KB
bespin.css 1KB
directives.css 1KB
eclipse.css 1KB
kefu.css 1KB
neo.css 947B
interpolation.css 929B
jqvmap.css 880B
elegant.css 781B
neat.css 688B
values.css 655B
looping.css 549B
content.css 539B
filter_effects.css 534B
compass_extract.css 484B
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
毕业_设计
- 粉丝: 1976
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- CheckedElectricalLiftHouseController.java
- (源码)基于Python和MySQL的数据库管理系统.zip
- (源码)基于Python的通信系统误码率计算与可视化工具.zip
- (源码)基于Qt框架的海王网咖管理系统.zip
- (源码)基于Spring Boot和Material You设计语言的论坛管理系统.zip
- (源码)基于Nio的Mycat 2.0数据库代理系统.zip
- 通过go语言实现单例模式(Singleton Pattern).rar
- 通过python实现简单贪心算法示例.rar
- C语言中指针基本概念及应用详解
- (源码)基于Websocket和C++的咖啡机器人手臂控制系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功