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,
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
opencart 完美模板2.3 3.0 (2000个子文件)
cache.currency.1523263541 572B
cache.admin.language.1523264411 345B
cache.store.1523264411 2B
cache.catalog.language.1523264414 345B
africa 46KB
antarctica 16KB
asia 114KB
australasia 70KB
backward 4KB
pscss.bat 113B
check-coffee 1KB
check-js 1KB
check-php 2KB
check-python 1010B
coffeelint 2KB
ca-certificates.crt 275KB
api_braintreegateway_com.ca.crt 21KB
5c3676d264b20f31f3726e5a496c1741.css 557KB
5991f8e07d6828a2051b193a9a7071cb.css 527KB
0e06b3479303721784dea759192e1a87.css 493KB
54983d43e9321d4a0386272afa2f6b48.css 492KB
eb40070c10be0ce3c4e1977e95adea30.css 453KB
17643f6cbcf09930b99e7113fd6e5440.css 314KB
9709fb51004241ff16402d72e3bce7be.css 307KB
211f1f0704d4adfcb5112a446d07c5ee.css 287KB
theme.css 211KB
yellow-rtl.css 194KB
cyan-rtl.css 194KB
blue-rtl.css 194KB
pink-rtl.css 194KB
red-rtl.css 194KB
orange-rtl.css 194KB
yellow.css 193KB
blue.css 193KB
pink.css 193KB
cyan.css 193KB
orange.css 193KB
red.css 193KB
responsive-rtl.css 161KB
bootstrap.css 151KB
bootstrap.css 151KB
bootstrap.css 148KB
bootstrap.css 130KB
4f7cf7b6ce795aa487d2a6ef242a8884.css 120KB
bootstrap.min.css 120KB
bootstrap.min.css 120KB
4f7cf7b6ce795aa487d2a6ef242a8884.css 119KB
bootstrap.rtl.min.css 119KB
bootstrap.min.css 100KB
animate.css 74KB
e2f332c6cb47600dda6d5b48b18e2e11.css 58KB
font-awesome.css 39KB
font-awesome.css 39KB
jquery-ui.css 35KB
bdc01e896c9a9b6d17b2e253a9395c73.css 31KB
font-awesome.min.css 30KB
font-awesome.min.css 30KB
bdc01e896c9a9b6d17b2e253a9395c73.css 30KB
jquery-ui.min.css 29KB
bootstrap-theme.css 26KB
bootstrap-theme.css 26KB
ambiance.css 26KB
ratchet-rtl.css 24KB
ratchet.css 24KB
bootstrap-theme.min.css 23KB
bootstrap-theme.min.css 23KB
font-awesome.css 22KB
swiper.css 21KB
ratchet.min.css 20KB
bootstrap-theme.css 20KB
jquery-ui.structure.css 18KB
font-awesome.min.css 17KB
swiper.min.css 17KB
bootstrap-theme.min.css 17KB
footer1-rtl.css 17KB
select2.css 17KB
footer1.css 17KB
e77dcbec92cd55f8123f2938e29a6354.css 17KB
stylesheet.css 17KB
jquery-ui.theme.css 17KB
stylesheet.css 16KB
select2.min.css 15KB
jquery-ui.structure.min.css 14KB
a0191a5dc03568043363b4553544259d.css 14KB
flexboxgrid.css 14KB
banner-effect.css 14KB
09588d15a90b198e226581b42694fca8.css 14KB
responsive.css 14KB
414026e9cfb67a60e8968f8c9f968aad.css 13KB
jquery-ui.theme.min.css 13KB
summernote.css 13KB
summernote.css 13KB
theme-rtl.css 13KB
theme.css 13KB
3a39b9c0378365255b985b6540c3a9f1.css 11KB
style.css 10KB
normalize.css 9KB
codemirror.css 8KB
237a4c260aab833b4f8d2da706fedb1c.css 8KB
d0c35cd654765d35f200162b7f2f7c1e.css 8KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
- sinat_274857292019-03-27安装好后,后台可以看出是opencart3.0.0.2版本.模板很漂亮,学习中...
- fenghan32019-03-24非常非常非常的好
yapefe2000
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功