cURL
curl --request POST \ --url https://sdk-api.playcamp.io/v1/server/payments/{transactionId}/refund \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "isTest": false } '
{ "data": { "id": 123, "transactionId": "<string>", "userId": "<string>", "productId": "<string>", "productName": "<string>", "amount": 123, "currency": "<string>", "amountUsd": 123, "platform": "iOS", "distributionType": "MOBILE_STORE", "status": "COMPLETED", "campaignId": "<string>", "creatorKey": "<string>", "purchasedAt": "2023-11-07T05:31:56Z", "createdAt": "2023-11-07T05:31:56Z" } }
Processes a payment refund. The refund amount will be deducted from the settlement.
Server API Key (format: {keyId}:{secret})
Test mode (does not create actual data)
Success
Show child attributes