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.
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.
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.
JIKO_STORE: a storage Pocket with the trading strategies you choose
Pocket deposit trading strategy ID (Example: UST-4W)
- Sandbox serverhttps://your-partner-name.sandbox-api.jikoservices.com/api/v3/customers/{customer_id}/pockets/
- Production serverhttps://your-partner-name.partner-api.jikoservices.com/api/v3/customers/{customer_id}/pockets/
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"
}'Successful Response
Pocket deposit trading strategy ID (Example: UST-4W)
Pocket reinvestment trading strategy ID (Example: UST-4W)
{ "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" }