Paycose Docs
E2ECreate Prices
POST/prices

Nintendo Switch OLED — One-time (JPY)

Request body: CreatePriceDTO

Responses: 200, 400, 409

Generated from the code contract; no hand-written description yet.

Request

Example

curl -X POST 'https://api.paycose.com/api/v1/app1/platform/wallet/prices/' \
  -H 'X-Session-Token: {{session_token}}' \
  -H 'X-Country: {{country}}' \
  -H 'X-Test-Mode: {{x_test_mode}}' \
  -d '{
  "product": "{{e2e_product_nintendo_console_jp}}",
  "currency": "JPY",
  "amount": 37980,
  "unit_amount_decimal": "<string>",
  "tiers": [
    {
      "up_to": 0,
      "unit_amount": 0
    }
  ],
  "recurring": {
    "interval": "<string>",
    "interval_count": 0
  },
  "usage_based": {
    "event_name": "<string>"
  },
  "metadata": {
    "sticker_price": "¥37,980",
    "currency_note": "JPY is zero-decimal — amount is in whole yen"
  },
  "labels": [
    "<string>"
  ]
}'

Headers

NameValueDescription
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

NameTypeValue
productstring{{e2e_product_nintendo_console_jp}}
currencystringJPY
amountnumber37980
unit_amount_decimalstring<string>
tiersarray[1]
recurringobject{…}
usage_basedobject{…}
metadataobject{…}
labelsarray[1]
{
  "product": "{{e2e_product_nintendo_console_jp}}",
  "currency": "JPY",
  "amount": 37980,
  "unit_amount_decimal": "<string>",
  "tiers": [
    {
      "up_to": 0,
      "unit_amount": 0
    }
  ],
  "recurring": {
    "interval": "<string>",
    "interval_count": 0
  },
  "usage_based": {
    "event_name": "<string>"
  },
  "metadata": {
    "sticker_price": "¥37,980",
    "currency_note": "JPY is zero-decimal — amount is in whole yen"
  },
  "labels": [
    "<string>"
  ]
}

Responses

200200 OK

Headers

NameValue
Content-Typeapplication/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

NameValue
Content-Typeapplication/json

Body

{
  "object": "error",
  "code": "<string>",
  "key": "<string>",
  "i18n_key": "<string>",
  "message": "<string>",
  "request_id": "<string>"
}
409409 Conflict

Headers

NameValue
Content-Typeapplication/json

Body

{
  "object": "error",
  "code": "<string>",
  "key": "<string>",
  "i18n_key": "<string>",
  "message": "<string>",
  "request_id": "<string>"
}

On this page