API Docs


Staging

Endpoint

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

Production

Endpoint

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

Create

Method URl Headers
GET tmbs/subscription/create Default
GET appdirect/subscription/create Default

URL Params

eventUrl={eventUrl}

Change Subscription

Method URl Headers
GET tmbs/subscription/change Default
GET appdirect/subscription/change Default

URL Params

eventUrl={eventUrl}

Cancel Subscription

Method URl Headers
GET tmbs/subscription/cancel Default
GET appdirect/subscription/cancel Default

URL Params

eventUrl={eventUrl}

Status Subscription

Method URl Headers
GET tmbs/subscription/status Default
GET appdirect/subscription/status Default

URL Params

eventUrl={eventUrl}

Response

{success.fa-check-circle} Success Response

Type subscription_order

{
    "success"               : true,
    "accountIdentifier"     : 2,
    "userIdentifier"        : 2,
    "message"               : 'Account example@jarvis.com has successfully subscribed',
    "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',
    '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',
    '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'
}

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", 
}