E2ECreate Products
POST
/productsNintendo Switch — OLED Model (Japan)
Request body: CreateProductDTO
Responses: 200, 400
Generated from the code contract; no hand-written description yet.
Request
Example
curl -X POST 'https://api.paycose.com/api/v1/app1/platform/wallet/products/' \
-H 'X-Session-Token: {{session_token}}' \
-H 'X-Country: {{country}}' \
-H 'X-Test-Mode: {{x_test_mode}}' \
-d '{
"name": "Nintendo Switch — OLED Model (Japan)",
"active": true,
"description": "Nintendo Switch OLED Model — 7-inch OLED screen, enhanced audio, 64GB storage. Sold in Japan via Yodobashi / Amazon JP.",
"erp_reference": "PHYS-NINTENDO-SWITCH-OLED-JP",
"image": "https://www.nintendo.co.jp/hardware/switch/img/oled_top.jpg",
"metadata": {
"category": "electronics",
"brand": "Nintendo",
"region": "JP"
},
"labels": [
"<string>"
]
}'Headers
| Name | Value | Description |
|---|---|---|
| X-Session-Token | {{session_token}} | |
| X-Country | {{country}} | |
| X-Test-Mode | {{x_test_mode}} | true=wallet_test, false=wallet_live (default). Toggle the x_test_mode collection variable to flip every applicable request. |
Body
| Name | Type | Value |
|---|---|---|
| name | string | Nintendo Switch — OLED Model (Japan) |
| active | boolean | true |
| description | string | Nintendo Switch OLED Model — 7-inch OLED screen, enhanced au… |
| erp_reference | string | PHYS-NINTENDO-SWITCH-OLED-JP |
| image | string | https://www.nintendo.co.jp/hardware/switch/img/oled_top.jpg |
| metadata | object | {…} |
| labels | array | [1] |
{
"name": "Nintendo Switch — OLED Model (Japan)",
"active": true,
"description": "Nintendo Switch OLED Model — 7-inch OLED screen, enhanced audio, 64GB storage. Sold in Japan via Yodobashi / Amazon JP.",
"erp_reference": "PHYS-NINTENDO-SWITCH-OLED-JP",
"image": "https://www.nintendo.co.jp/hardware/switch/img/oled_top.jpg",
"metadata": {
"category": "electronics",
"brand": "Nintendo",
"region": "JP"
},
"labels": [
"<string>"
]
}Responses
200200 OK
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"id": "<string>",
"object": "<string>",
"resource": "<string>",
"created_at": "<RFC3339 timestamp>",
"errors": [
{
"code": "<string>",
"message": "<string>"
}
],
"next_action": [
{
"type": "<string>",
"title": "<string>",
"description": "<string>",
"i18n_key": "<string>",
"url": "<string>",
"client_secret": "<string>",
"payment_method": "<string>",
"qr_data": "<string>"
}
]
}400400 Bad Request
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"object": "error",
"code": "<string>",
"key": "<string>",
"i18n_key": "<string>",
"message": "<string>",
"request_id": "<string>"
}