Skip to content

Create Pocket

Request

Creates a single Pocket for a customer. The body is selected by type. A JIKO_STORE Pocket takes its deposit and, optionally, reinvestment trading strategies as Pocket Configuration IDs. A JIKO_PAY Pocket takes a name only: it is always invested in 4-week T-bills, and a strategy field on it is rejected with 422. A JIKO_PAY Pocket also needs the customer to be enabled for third-party payments; otherwise the request is rejected with a 422 JikoPayNotEligibleError listing the compliance blockers. Jiko's compliance team enables third-party payments for a business customer after reviewing its expected payment activity.

Security
HTTPBearer
Path
customer_idstring, (uuid)(Customer Id)required
Headers
x-jiko-idempotencystring, (uuid)(X-Jiko-Idempotency)required

A new UUID that you generate for each request, reads included. It is part of the request signature and prevents replay of a request. A value that was already sent in the last hour is rejected with 409 jiko.errors.DuplicateRequestError, even if the first request failed. When you retry a request, generate a new value and sign the request again.

x-jiko-signaturestring(X-Jiko-Signature)required

Base64-encoded HMAC-SHA256 hash of x-jiko-idempotency + request pathname + body, keyed with your shared secret. See Authentication for the full algorithm and a code sample.

Bodyapplication/jsonrequired
typestring(Type)required

JIKO_STORE: a storage Pocket with the trading strategies you choose

Enum:"JIKO_STORE""JIKO_PAY"
Discriminator
Value:"JIKO_STORE"
pocket_namestring, [ 1 .. 100 ] characters(Pocket Name)required

Pocket name

deposit_strategy_idstring(CreatePocketConfigurationId)required

Pocket deposit trading strategy ID (Example: UST-4W)

Enum:"UST-52W""UST-26W""UST-13W""UST-4W""UST-1W"
reinvestment_strategy_idCreatePocketConfigurationId (string) or null
Any of:

Pocket reinvestment trading strategy ID (Example: UST-4W)

string(CreatePocketConfigurationId)
Enum:"UST-52W""UST-26W""UST-13W""UST-4W""UST-1W"
curl -i -X POST \
  'https://your-partner-name.sandbox-api.jikoservices.com/api/v3/customers/{customer_id}/pockets/' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'x-jiko-idempotency: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  -H 'x-jiko-signature: string' \
  -d '{
    "type": "JIKO_STORE",
    "pocket_name": "4-week T-bills",
    "deposit_strategy_id": "UST-4W",
    "reinvestment_strategy_id": "UST-4W"
  }'

Responses

Successful Response

Bodyapplication/json
idstring, (uuid)(Id)required

ID of the pocket

pocket_namestring(Pocket Name)required

Pocket name

portfolioPortfolio (object) or null
Any of:

Total liquid cash and holdings

statusstring(Status)required

Pocket status

Enum:"PENDING""OPEN""FROZEN""CLOSED"
attributesArray of strings(Attributes)
deposit_strategy_idstring(Deposit Strategy Id)required

Pocket deposit trading strategy ID (Example: UST-4W)

reinvestment_strategy_idstring or null(Reinvestment Strategy Id)required
Any of:

Pocket reinvestment trading strategy ID (Example: UST-4W)

string
typestring or null(Type)
Any of:

Pocket type

string
Enum:"JIKO_PAY""JIKO_STORE"
object_typestring(Object Type)read-onlyrequired
Response
{ "id": "d0e1dd1b-3e21-4cd4-9872-f71ea4967ffd", "pocket_name": "4-week T-bills", "portfolio": { "securities": [], "cash": { … }, "total_value": { … }, "fees": [], "liquidation_value_t0": { … }, "liquidation_value_t1": { … }, "on_us_spendable_t0": { … }, "on_us_spendable_t1": { … } }, "status": "PENDING", "attributes": [], "deposit_strategy_id": "UST-4W", "reinvestment_strategy_id": "UST-4W", "object_type": "Pocket" }