Kembali ke dokumentasi
← Kembali ke dokumentasi

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.

get/api/v1/reseller/catalogueScope wajib: catalogue.read

List 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.

NamaLokasiWajib
categoryIdqueryya
qquerytidak

Header otentikasi: Authorization: Bearer nd_rs_...

Request: —

Responses: 200, 400, 401, 403

get/api/v1/reseller/catalogue/categoriesScope wajib: catalogue.read

List 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`.

NamaLokasiWajib
qquerytidak
cursorquerytidak
limitquerytidak

Header otentikasi: Authorization: Bearer nd_rs_...

Request: —

Responses: 200, 401, 403

get/api/v1/reseller/catalogue/categories/{slug}Scope wajib: catalogue.read

Get 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.

NamaLokasiWajib
slugpathya

Header otentikasi: Authorization: Bearer nd_rs_...

Request: —

Responses: 200, 401, 403, 404

get/api/v1/reseller/catalogue/products/{id}Scope wajib: catalogue.read

Get 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.

NamaLokasiWajib
idpathya
categorySlugquerytidak

Header otentikasi: Authorization: Bearer nd_rs_...

Request: —

Responses: 200, 401, 403, 404, 409

get/api/v1/reseller/ordersScope wajib: order.read

List the reseller account orders

Tenant-scoped, newest first, cursor paginated. Includes the public fulfillment status projection.

NamaLokasiWajib
cursorquerytidak
limitquerytidak

Header otentikasi: Authorization: Bearer nd_rs_...

Request: —

Responses: 200, 401, 403

post/api/v1/reseller/ordersScope wajib: order.create

Create 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.

NamaLokasiWajib
Idempotency-Keyheaderya

Header otentikasi: Authorization: Bearer nd_rs_...

Request: CreateResellerOrderDto

Responses: 200, 201, 400, 401, 403, 409

get/api/v1/reseller/orders/{reference}Scope wajib: order.read

Get one reseller order

Returns the commercial order plus the public fulfillment status. Provider identity, references, and cost are never exposed.

NamaLokasiWajib
referencepathya

Header otentikasi: Authorization: Bearer nd_rs_...

Request: —

Responses: 200, 401, 403, 404

get/api/v1/reseller/walletScope wajib: wallet.read

Get 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

get/api/v1/reseller/wallet/transactionsScope wajib: wallet.read

List reseller wallet transactions

Returns the immutable ledger for the authenticated organization. Cursor paginated, newest first.

NamaLokasiWajib
cursorquerytidak
limitquerytidak

Header otentikasi: Authorization: Bearer nd_rs_...

Request: —

Responses: 200, 401, 403, 404