Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
35458 amit 1
### Pine Labs API
2
 
3
### Get Auth Token
4
POST {{baseUrl}}/api/auth/v1/token
5
Content-Type: application/json
6
X-CLIENT-ID: {{clientId}}
7
X-CLIENT-SECRET: {{clientSecret}}
8
 
9
### Discover Offers
10
POST {{baseUrl}}/api/affordability/v1/offer/discovery
11
Content-Type: application/json
12
Authorization: Bearer {{authToken}}
13
Request-ID: {{$randomUUID}}
14
Request-Timestamp: {{$isoTimestamp}}
15
 
16
{
17
  "order_amount": {
18
    "value": "10000000",
19
    "currency": "INR"
20
  },
21
  "product_details": [
22
    {
23
      "product_amount": {
24
        "value": "10000000",
25
        "currency": "INR"
26
      },
27
      "product_coupon_discount_amount": {
28
        "value": "10000",
29
        "currency": "INR"
30
      },
31
      "product_code": "Alpha_1"
32
    }
33
  ],
34
  "issuer": {
35
    "bin": "12345678"
36
  }
37
}
38
 
39
 
40
### Create Offer
41
POST {{baseUrl}}/api/affordability/v1/offer/create
42
Content-Type: application/json
43
Authorization: Bearer {{authToken}}
44
Request-ID: {{$randomUUID}}
45
Request-Timestamp: {{$isoTimestamp}}
46
 
47
{
48
  "order_id": "ORDER12345",
49
  "offer_details": {
50
    "offer_type": "EMI",
51
    "issuer_id": 1,
52
    "tenure": 6
53
  }
54
}