Skip to main content
POST
https://api.easycred.in
/
api
/
v1
/
partner
/
journey
/
{journeyId}
/
action
Submit Customer Action
curl --request POST \
  --url https://api.easycred.in/api/v1/partner/journey/{journeyId}/action \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Nonce: <x-nonce>' \
  --header 'X-Signature: <x-signature>' \
  --header 'X-Timestamp: <x-timestamp>' \
  --data '
{
  "payload": {
    "offerId": "<string>",
    "loanAmount": 123
  }
}
'
{
  "success": true,
  "data": {
    "nextAction": {
      "type": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

API key of the form ec_(live|test). Scopes are listed per operation.

Headers

X-Signature
string
required

HMAC-SHA256 signature over method, path, timestamp, nonce and raw body.

X-Timestamp
string
required

Unix epoch seconds. Requests outside the tolerance window are rejected.

X-Nonce
string
required

Unique per-request nonce. Replays are rejected.

Path Parameters

journeyId
string
required

Body

application/json

The payload shape depends on kind:

  • SELECT_OFFER → { offerId, loanAmount }
  • SELECT_GOLD_LOAN_BRANCH → { offerId, branchLocationId } where branchLocationId is an id from data.offers[].branchLocations[] (see GET /{journeyId})
  • SUBMIT_BANK_ACCOUNT → { accHolderName, acctype, accNo, ifscCode }
kind
enum<string>
required
Available options:
SELECT_OFFER,
SELECT_GOLD_LOAN_BRANCH,
SUBMIT_BANK_ACCOUNT
payload
object
required

Payload for kind=SELECT_OFFER.

Response

Success

success
boolean
required
data
object
required