Update a Pocket's name, or update a Pocket's status. If the intent is to close a Pocket, then there are two requirements: The Pocket needs to be empty, and there has to be at least one other open Pocket belonging to the customer. Additionally, when you close a Pocket, you also need to pass a closure_reason along with the status update.
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.
Pocket deposit trading strategy ID (Example: UST-4W)
- Sandbox serverhttps://your-partner-name.sandbox-api.jikoservices.com/api/v2/customers/{customer_id}/pockets/{pocket_id}/
- Production serverhttps://your-partner-name.partner-api.jikoservices.com/api/v2/customers/{customer_id}/pockets/{pocket_id}/
curl -i -X PATCH \
'https://your-partner-name.sandbox-api.jikoservices.com/api/v2/customers/{customer_id}/pockets/{pocket_id}/' \
-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 '{
"pocket_name": "Savings"
}'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", "status": "OPEN", "attributes": [], "deposit_strategy_id": "UST-4W", "reinvestment_strategy_id": "UST-26W", "customer_id": "62c5272e-ef8c-4d8a-a49d-633432409fd4", "object_type": "CustomerPocket" }