API Docs


Staging

Endpoint

{warning.fa-link} Please note that the URI for this endpoint will be:
https://pure-anchorage-71659.herokuapp.com

Method URl Headers
GET api/dev/connect Default

URL Params

eventUrl={eventUrl}

Production

Endpoint

{info.fa-link} Please note that the URI for this endpoint will be:
https://jarvis-store.com

Method URl Headers
GET subscription/connect Default

URL Params

eventUrl={eventUrl}

Check Auth

Check Request Connection

Method URl Headers
GET dev/connect Default

Example URL Params

eventUrl=https://api.digitalcore.telkomsel.com/preprod-web/isv_fulfilment/events/f9ccf8e1-c52e-4f37-89f4-a8a79b4ddceb

Response

{success.fa-check-circle} Success Response

Type Connection

{
    "statusCode": 200,
    "success": true,
    "successCode": "CONNECTED",
    "message": "https://api.digitalcore.telkomsel.com/preprod-web/isv_fulfilment/events/f9ccf8e1-c52e-4f37-89f4-a8a79b4ddceb is avaiable"
}

Type subscription_order

{
    "success"               : true,
    "accountIdentifier"     : 2,
    "userIdentifier"        : 2,
    "message"               : "Account example@jarvis.com has successfully subscribed",
    "redirect_url"          : "https://example.jstore.co/admin/login",
    "billing"               : {
        "akunId"        : 1
        "jenisPaket"    : 1
        "tipeBilling"   : 1
        "tglAktivasi"   : "2020-01-01"
        "created_at"    : "2020-01-01 01:01:01"
    }
}

Type subscription_change

{
    "success"               : true,
    "accountIdentifier"     : 2,
    "userIdentifier"        : 2,
    "message"               : "Account example@jarvis.com has successfully change subscription",
    "redirect_url"          : "https://example.jstore.co/admin/login",
    "data"                  : "example@jarvis.com"
}

Type subscription_cancel

{
    "success"               : true,
    "accountIdentifier"     : 2,
    "userIdentifier"        : 2,
    "message"               : "Account example@jarvis.com has successfully unsubscribed",
    "data"                  : "example@jarvis.com"
}

Type subscription_notice

{
    "success"               : true,
    "accountIdentifier"     : 2,
    "userIdentifier"        : 2,
    "message"               : "Subscribe notice from account example@jarvis.com",
    "redirect_url"          : "https://example.jstore.co/admin/login",
    "data"                  : "example@jarvis.com"
}

{danger.fa-exclamation-circle} Error Response

Type Connecting

Reason Fail to connect

{
    "statusCode": 400,
    "success": false,
    "errorCode": "UNAUTHORIZED",
    "message": "You don"t have access"
}

Type Connecting

Reason False API_KEY & API_SECRET

{
    "success"       : false,
    "errorCode"     : "REJECTED",
    "message"       : "There was an error: ",
}

Type subscription_order

Reason user exist

{
    "success"           : true,
    "accountIdentifier" : 2, 
    "userIdentifier"    : 2, 
    "message"           : "Account example@jarvis.com already subscribed same pack",
    "redirect_url"      : "https://example.jstore.co/admin/login",
}

Type subscription_order

Reason REGISTER_ERROR

{
    "success"       : false,
    "errorCode"     : "REGISTER_ERROR", 
    "message"       : "error", 
}

Reason USER_NOT_FOUND

{
    "success"       : false,
    "errorCode"     : "USER_NOT_FOUND", 
    "message"       : "error", 
}