Create top-up invoice
Creates an invoice to top up your balance via USDT transfer (TRC20 network): wallet address, exact transfer amount, and deadline. Funds are credited automatically once the transfer is detected on the blockchain.
POST /deposits
- Key Permission:
deposits:create - Key: only live key sk_live (test key will get 403 test_key_cannot_buy)
- Idempotency-Key: required. Idempotency
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
amount_cents |
integer | yes | Top-up amount in US cents. Limits: error 422 will show min_cents and max_cents. |
Important to know
- Transfer exactly the amount
amount_usdtin a single payment to theaddresson the TRC20 network. The invoice amount is unique and identifies your payment; transfers less than the invoice amount will not be credited. - Crediting is automatic only: when the transfer is found on the blockchain, the status changes to
credited. Funds cannot be credited via the API. - Minimum and maximum amounts are set by the service settings; exceeding these limits returns a 422 with fields
min_centsandmax_cents. - No more than 5 invoices can be open simultaneously. Repeating a request with the same
Idempotency-Keyreturns the same invoice instead of creating a new one. - A webhook event
balance.topupis sent upon crediting; the balance can be checked with theGET /balancemethod.
Request example
curl -X POST https://api.shippickup.com/v1/deposits \
-H "Authorization: Bearer $SHIPPICKUP_API_KEY" \
-H "Idempotency-Key: order-10452-label-v1" \
-H "Content-Type: application/json" \
-d '{
"amount_cents": 10000
}'<?php
$body = [
'amount_cents' => 10000,
];
$ch = curl_init('https://api.shippickup.com/v1/deposits');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('SHIPPICKUP_API_KEY'),
'Idempotency-Key: order-10452-label-v1',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode($body),
]);
$response = json_decode((string) curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
print_r([$status, $response]);
import os
import requests
body = {
"amount_cents": 10000,
}
r = requests.post(
"https://api.shippickup.com/v1/deposits",
headers={
"Authorization": "Bearer " + os.environ["SHIPPICKUP_API_KEY"],
"Idempotency-Key": "order-10452-label-v1",
},
json=body,
timeout=30,
)
print(r.status_code, r.json())
const body = {
"amount_cents": 10000
};
const res = await fetch("https://api.shippickup.com/v1/deposits", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SHIPPICKUP_API_KEY}`,
"Idempotency-Key": "order-10452-label-v1",
"Content-Type": "application/json",
},
body: JSON.stringify(body),
});
console.log(res.status, await res.json());
Response example 201
JSON
{
"data": {
"id": "8c1d0f4e2a7b49e6b3d5a1c0f9",
"status": "pending",
"method": "usdt_trc20",
"network": "TRC20",
"amount_cents": 10000,
"amount_usdt": "100.017000",
"address": "TXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"expires_at": "2026-12-04T11:15:30+00:00",
"received_cents": null,
"tx_hash": null,
"created_at": "2026-12-04T10:15:30+00:00",
"credited_at": null
}
}Possible errors
| HTTP | Code | Description |
|---|---|---|
| 403 | test_key_cannot_buy | Test key does not purchase labels or order pickups, use a live key. |
| 422 | idempotency_key_required | Missing or invalid Idempotency-Key header: must be 16–64 characters A-Za-z0-9_-. |
| 422 | idempotency_key_reused | Этот Idempotency-Key уже использован для другого запроса: для нового запроса нужен новый ключ. |
| 422 | validation_failed | Error in request fields. error.details specifies the reason for each field. |
| 409 | conflict | Action is currently not possible for this order (e.g., order cannot be canceled or pickup already ordered). Reason text in error.message. |
| 503 | provider_unavailable | The carrier is temporarily unavailable. Please try again later. |
| 403 | insufficient_scope | Key lacks the required permission, specified in error.details.required_scope. |
| 429 | rate_limited | Key request limit exceeded. Retry after the time specified in the Retry-After header. |