The server to server payouts API is used to notify you when a player has completed a task and should be rewarded within your app.
GET
/ https://example.com/example?user_id={user_id}&pd_user={pd_user}&transaction_id={transaction_id}&virtual_currency={virtual_currency}&rev_usd={rev_usd}&secure_hash={secure_hash}
Customized (Example)
GET
/ https://example.com/example?user_id={user_id}&trans={transaction_id}&playback_id={pd_user}&gems={virtual_currency}&revenue={rev_usd}&app={app_name}&event={task_name}&secure_hash={secure_hash}
Parameter | Detail | Format | Type |
---|---|---|---|
user_id | This is the unique user identifier that you append in the URL when sending players to Playback Direct. This will be what you use to identify which player to send the rewards to. | String | Required |
pd_user | This is a unique user_id that Playback Direct assigns to a user. It can be helpful for troubleshooting | String | Required |
transaction_id | The unique transaction ID. | String | Required |
virtual_currency | The amount of virtual currency the user should get. | Integer | Required |
rev_usd | This is the revenue that you will earn for the completion of the particular event. Presented in cents. Example: 498 = $4.98 USD | Integer | Required |
secure_hash | The secure hash, used to verify request authenticity. Requires a token, which will be shared with you by your Playback Direct rep. Detailed setup instructions below. | String | Recommended |
sub_source_id | This is the unique ID we will assign to you to identify users coming from your app. | String | Optional |
app_name | Human readable name of your app the user is from. | String | Optional |
adid | For Android mobile devices, this would be the GAID (google advertising ID). For iOS, this would be the IDFA. | String | Optional |
task_name | The name of the completed task within the offer | String | Optional |
network | This is passed back if it was supplied by you in the orginial URL that the sent the user to Playback Direct. | String | Optional |
manual | If this event was manually triggered by the support team due to an issue that was detected this will return as true , false otherwise. | Boolean | Optional |
https://example.com/example?user_id=f3069c9ef82c4579&trans=e8525f9b-3dd3-4319-bdda-c1e1f375f5bf&playback_id=cvLEJINc5hJzI4R9w0nA&gems=1200&revenue=120&app=MyAppName&event=CompleteTutorial&secure_hash=db951fdd56e3de10894c132108f25b54016a739db67ef3cc630dc56c8332cce5
secure_hash
is generated as a SHA-256 hash of the required query parameters of the request along with the s2s_token
and encoded into a hexadecimal string. The s2s_token
is used as the secret key which your Playback Direct rep will provide to you.
secure_hash
from the URL query params. The resulting value can be compared against the secure_hash
sent in the the URL. You would implement some version of this in your backend.
Typescript