Referensi API
Referensi ini dihasilkan dari kontrak OpenAPI Partner API yang difilter dari implementasi NestJS. Hanya endpoint Partner API yang ditampilkan.
Referensi ini dihasilkan dari kontrak OpenAPI Partner API yang difilter dari implementasi NestJS. Hanya endpoint Partner API yang ditampilkan.
Endpoint
Endpoint admin, customer checkout, webhook gateway, deposit, dan manajemen API key tidak termasuk dalam kontrak publik ini.
/api/v1/reseller/catalogueScope wajib: catalogue.readList the reseller catalogue for one category
Returns every deduplicated product the account can currently purchase in the category, with the account price sorted ascending; ties break on the lowest product id. Products without an eligible provider mapping or a resolved reseller price are excluded, as are equivalence groups with no purchasable candidate. Provider identity, provider cost, and markup are never exposed. The full category is returned in one response — no pagination.
| Nama | Lokasi | Wajib |
|---|---|---|
| categoryId | query | ya |
| q | query | tidak |
Header otentikasi: Authorization: Bearer nd_rs_...
Request: —
Responses: 200, 400, 401, 403
/api/v1/reseller/catalogue/categoriesScope wajib: catalogue.readList resale-eligible catalogue categories
Returns active categories that currently contain at least one product the authenticated account can purchase, including the exact eligible product count. Search by name with `q`; keyset pagination with `cursor`.
| Nama | Lokasi | Wajib |
|---|---|---|
| q | query | tidak |
| cursor | query | tidak |
| limit | query | tidak |
Header otentikasi: Authorization: Bearer nd_rs_...
Request: —
Responses: 200, 401, 403
/api/v1/reseller/catalogue/categories/{slug}Scope wajib: catalogue.readGet a resale-eligible catalogue category
Returns one active category with the exact count of products the account can purchase. A category with zero eligible products is still returned so the browser can show an empty state.
| Nama | Lokasi | Wajib |
|---|---|---|
| slug | path | ya |
Header otentikasi: Authorization: Bearer nd_rs_...
Request: —
Responses: 200, 401, 403, 404
/api/v1/reseller/catalogue/products/{id}Scope wajib: catalogue.readGet a reseller catalogue product and its customer form
Returns the account price and the provider-neutral customer form used to build order input. The returned `totalAmount` is the price displayed at selection; submit it as `expectedTotalAmount` when creating the order. When `categorySlug` is provided, the product must belong to that active category.
| Nama | Lokasi | Wajib |
|---|---|---|
| id | path | ya |
| categorySlug | query | tidak |
Header otentikasi: Authorization: Bearer nd_rs_...
Request: —
Responses: 200, 401, 403, 404, 409
/api/v1/reseller/ordersScope wajib: order.readList the reseller account orders
Tenant-scoped, newest first, cursor paginated. Includes the public fulfillment status projection.
| Nama | Lokasi | Wajib |
|---|---|---|
| cursor | query | tidak |
| limit | query | tidak |
Header otentikasi: Authorization: Bearer nd_rs_...
Request: —
Responses: 200, 401, 403
/api/v1/reseller/ordersScope wajib: order.createCreate a reseller order
Validates the customer input, verifies the customer identifier, debits the prepaid wallet, and hands fulfillment to the provider engine. `expectedTotalAmount` is the account price displayed at selection and is mandatory; a changed price is rejected without any write.
| Nama | Lokasi | Wajib |
|---|---|---|
| Idempotency-Key | header | ya |
Header otentikasi: Authorization: Bearer nd_rs_...
Request: CreateResellerOrderDto
Responses: 200, 201, 400, 401, 403, 409
/api/v1/reseller/orders/{reference}Scope wajib: order.readGet one reseller order
Returns the commercial order plus the public fulfillment status. Provider identity, references, and cost are never exposed.
| Nama | Lokasi | Wajib |
|---|---|---|
| reference | path | ya |
Header otentikasi: Authorization: Bearer nd_rs_...
Request: —
Responses: 200, 401, 403, 404
/api/v1/reseller/walletScope wajib: wallet.readGet the reseller wallet
Returns the prepaid balance for the authenticated organization as a decimal string.
Header otentikasi: Authorization: Bearer nd_rs_...
Request: —
Responses: 200, 401, 403, 404
/api/v1/reseller/wallet/transactionsScope wajib: wallet.readList reseller wallet transactions
Returns the immutable ledger for the authenticated organization. Cursor paginated, newest first.
| Nama | Lokasi | Wajib |
|---|---|---|
| cursor | query | tidak |
| limit | query | tidak |
Header otentikasi: Authorization: Bearer nd_rs_...
Request: —
Responses: 200, 401, 403, 404