NNarya Developers
API referenceTrading enrollments

List trading enrollments

GET
/integration/v1/trading-enrollments

Lists the trading enrollments your integration key can reach.

Authorization

integrationKey
headerAuthorizationBearer <token>

Your integration key, sent as Authorization: Bearer nik_<prefix>_<secret>. Narya issues it.

Query Parameters

page?integer
Range1 <= value
Default1
limit?integer
Range1 <= value <= 100
Default20
trading_id?string
Formatuuid
trading_external_ref?string

Your identifier for it, matched exactly; none matching is an empty page.

Match^\S(.*\S)?$
Length1 <= length <= 128
acquirer_id?string
Formatuuid
acquirer_external_ref?string

Your identifier for it, matched exactly; none matching is an empty page.

Match^\S(.*\S)?$
Length1 <= length <= 128
status?string

Defaults to active, or to both active and ended when sort is updated_at or -updated_at, so an enrollment that ended since your last refresh is in it.

Value in"active""ended"
sort?string

Orders by a field, ascending, or descending with a - prefix. Ties break on id. Without it the list is in id order.

Value in"created_at""-created_at""updated_at""-updated_at"

Response Body

A page of enrollments

application/json
  1. response
data*array<>
page*integer
Range1 <= value
limit*integer
Range1 <= value <= 100
total_count*integer
Range0 <= value
total_is_capped*boolean
total_pages*integer
Range0 <= value
has_more*boolean
Example Request
curl -X GET 'https://api-narya-staging.pmadvisors.my/integration/v1/trading-enrollments'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "trading_id": "1697ee0a-d655-4892-9ce3-9e2a05ec9dc1",      "product": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "code": "string",        "name": "string"      },      "vendor": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      },      "acquirer": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string",        "external_ref": "ACQ-MBB"      },      "status": "active",      "activated_at": "2019-08-24T14:15:22Z",      "ended_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "page": 1,  "limit": 1,  "total_count": 0,  "total_is_capped": true,  "total_pages": 0,  "has_more": true}