浏览文档并开始使用 Skinify
Set your handler address in the Withdraw callback URL field in project settings. As with Result URL, Skinify sends notifications using POST requests. This is a separate setting for skin withdrawals; deposit notifications continue to use Result URL.
Currently, notifications are sent only for rollback statuses:
rollback_user — the user rolled back an accepted trade.rollback_provider — the provider rolled back an accepted trade.Other statuses do not trigger notifications yet. HTTP/HTTPS URLs up to 500 characters are supported. Leave the field empty to disable notifications; events that occur while notifications are disabled are not sent retroactively.
POST <Withdraw callback URL>
Body: application/x-www-form-urlencoded, as with deposit IPN. Nested fields use names such as skin[id] and skin[properties][classid]. Fields with null values are omitted.
The body contains the current purchase state, matching one items entry in withdraw/info, plus token_md5.
| Parameter | Description |
|---|---|
| token_md5 | MD5 of the current project API token. Compare it with the md5 of the token from project settings before processing. |
| purchase_id | Purchase ID returned by withdraw/buy. |
| purchase_status | Purchase status: currently, notifications are created only for rollback_user and rollback_provider. |
| skin[id] | Skin ID. |
| skin[name] | Skin name. |
| skin[price] | Skin price in USD. |
| skin[properties][classid] | Steam item Class ID. |
| steam_id | User Steam ID 64. |
| date | Purchase creation date, Unix timestamp. |
| balance_debited_amount | Amount debited from the project balance, in USD. |
| refund_amount | Amount refunded to the project balance, in USD. |
| refund_percent | Refunded percentage of the debited amount. |
| trade_offer_id | Steam Trade Offer ID, if a trade was created. |
| custom_id | Your ID, if supplied when purchasing. |
| settlement | End of Steam trade protection, Unix timestamp, if set. |
| reserved_until | End of the reservation, Unix timestamp, if set. |
Return HTTP 200 or 201 after successful processing. Other codes, including 204, and network errors trigger retries at 10-minute intervals for 24 hours after the notification was created.
Processing must be idempotent: receiving a notification again must not credit the refund a second time. Identify duplicates by the combination of purchase_id and purchase_status.
Delivery order is not guaranteed. Each attempt contains the current purchase state at sending time and uses the current project URL and API token. If the URL is cleared, pending notifications are skipped. Use withdraw/info to check the purchase state when needed.