Uploads codes by game key ID.
project_id required | integer Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 |
item_id required | string Item ID. Example: 656 |
Codes loading session information was successfully received.
Basic authentication not passed or wrong. Make sure you used basic authentication or correct credentials.
Game key or region not found.
curl -i -X POST \ -u <merchant_id_or_project_id>:<api_key> \ 'https://store.xsolla.com/api/v2/project/{project_id}/admin/items/game/key/upload/id/{item_id}' \ -H 'Content-Type: multipart/form-data' \ -F file=keys.txt \ -F region_id=1
{- "session_id": "fc7105b6e8ee01339582970b37697242",
- "count_uploaded": 0,
- "count_total": 100,
- "count_skipped": 10,
- "status": "processing"
}