search

No results found

API Reference chevron_right Items chevron_right Item Detail
info ITEMS

Item Detail

Dapatkan informasi lengkap tentang satu item berdasarkan ID.

GET /v1/item/{'{id}'}

Path Parameters

Parameter Type Description
id integer ID item yang ingin dilihat.

Response Fields

order_process string

Tipe flow item. Gunakan ini sebagai acuan utama integrasi.

h2h_provider string|null

Nama provider jika item ini adalah H2H.

provider_meta object|null

Metadata capability tambahan item, misalnya dukungan open denom.

required_fields array|null

Field-field yang harus diisi saat order, sehingga form client bisa dibangun dinamis.

validation object

Capability cek ID untuk item ini. Jika available false, jangan tampilkan tombol Check.

Example Request

curl --request GET \
                  --url https://sekalipay.com/api/v1/item/123 \
                  --header 'X-APIKEY: YOUR_API_KEY'

Response Sample

200 OK
{
                  "message": "OK",
                  "data": {
                    "id": 123,
                    "name": "Netflix 1 Bulan",
                    "price": 45000,
                    "stock": 50,
                    "order_process": "h2h",
                    "h2h_provider": "h2h",
                    "provider_meta": {
                      "open_denom": true,
                      "min_qty": 10000,
                      "max_qty": 10000000,
                      "step_qty": 1
                    },
                    "required_fields": [
                      {
                        "key": "note",
                        "label": "User ID",
                        "required": true
                      },
                      {
                        "key": "provider_qty",
                        "label": "Nominal",
                        "required": true
                      }
                    ],
                    "validation": {
                      "available": true,
                      "endpoint": "/api/v1/item/validate",
                      "requires_zone_id": true
                    },
                    "description": "..."
                  }
                }
chat_bubble Feedback