@@ -2,28 +2,29 @@ const sh = `#!/bin/sh
22url="https://api.paystack.co/transfer/bulk"
33authorization="Authorization: Bearer YOUR_SECRET_KEY"
44content_type="Content-Type: application/json"
5- data='{
6- "currency": "NGN",
7- "source": "balance",
8- "transfers": [
9- {
10- "amount": 20000,
11- "reference": "588YtfftReF355894J",
12- "reason": "Why not?",
13- "recipient": "RCP_2tn9clt23s7qr28"
14- },
15- {
16- "amount": 30000,
17- "reference": "YunoTReF35e0r4J",
18- "reason": "Because I can",
19- "recipient": "RCP_1a25w1h3n0xctjg"
20- },
21- {
22- "amount": 40000,
23- "reason": "Coming right up",
24- "recipient": "RCP_aps2aibr69caua7"
25- }
26- ]
5+ data='{
6+ "currency": "NGN",
7+ "source": "balance",
8+ "transfers": [
9+ {
10+ "amount": 20000,
11+ "reference": "ACV_2627bbfe-1a2a-4a1a-8d0e-9d2ee6c31496",
12+ "reason": "Bonus for the week",
13+ "recipient": "RCP_gd9vgag7n5lr5ix"
14+ },
15+ {
16+ "amount": 35000,
17+ "reference": "ACV_1bd0c1f8-78c2-463b-8bd4-ed9eeb36be50",
18+ "reason": "Bonus for the week",
19+ "recipient": "RCP_zpk2tgagu6lgb4g"
20+ },
21+ {
22+ "amount": 15000,
23+ "reference": "ACV_11bebfc3-18b3-40aa-a4df-c55068c93457",
24+ "reason": "Bonus for the week",
25+ "recipient": "RCP_dfznnod8rwxlwgn"
26+ }
27+ ]
2728}'
2829
2930curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST`
@@ -36,20 +37,21 @@ const params = JSON.stringify({
3637 "transfers": [
3738 {
3839 "amount": 20000,
39- "reference": "588YtfftReF355894J ",
40- "reason": "Why not? ",
41- "recipient": "RCP_2tn9clt23s7qr28 "
40+ "reference": "ACV_2627bbfe-1a2a-4a1a-8d0e-9d2ee6c31496 ",
41+ "reason": "Bonus for the week ",
42+ "recipient": "RCP_gd9vgag7n5lr5ix "
4243 },
4344 {
44- "amount": 30000 ,
45- "reference": "YunoTReF35e0r4J ",
46- "reason": "Because I can ",
47- "recipient": "RCP_1a25w1h3n0xctjg "
45+ "amount": 35000 ,
46+ "reference": "ACV_1bd0c1f8-78c2-463b-8bd4-ed9eeb36be50 ",
47+ "reason": "Bonus for the week ",
48+ "recipient": "RCP_zpk2tgagu6lgb4g "
4849 },
4950 {
50- "amount": 40000,
51- "reason": "Coming right up",
52- "recipient": "RCP_aps2aibr69caua7"
51+ "amount": 15000,
52+ "reference": "ACV_11bebfc3-18b3-40aa-a4df-c55068c93457",
53+ "reason": "Bonus for the week",
54+ "recipient": "RCP_dfznnod8rwxlwgn"
5355 }
5456 ]
5557})
@@ -90,20 +92,21 @@ const php = `<?php
9092 'source' => "balance",
9193 'transfers' => [[
9294 "amount" => 20000,
93- "reference" => "588YtfftReF355894J ",
94- "reason" => "Why not? ",
95- "recipient" => "RCP_2tn9clt23s7qr28 "
95+ "reference" => "ACV_2627bbfe-1a2a-4a1a-8d0e-9d2ee6c31496 ",
96+ "reason" => "Bonus for the week ",
97+ "recipient" => "RCP_gd9vgag7n5lr5ix "
9698 ],
9799 [
98- "amount" => 30000 ,
99- "reference" => "YunoTReF35e0r4J ",
100- "reason" => "Because I can ",
101- "recipient" => "RCP_1a25w1h3n0xctjg "
100+ "amount" => 35000 ,
101+ "reference" => "ACV_1bd0c1f8-78c2-463b-8bd4-ed9eeb36be50 ",
102+ "reason" => "Bonus for the week ",
103+ "recipient" => "RCP_zpk2tgagu6lgb4g "
102104 ],
103105 [
104- "amount" => 40000,
105- "reason" => "Coming right up",
106- "recipient" => "RCP_aps2aibr69caua7"
106+ "amount" => 15000,
107+ "reference" => "ACV_11bebfc3-18b3-40aa-a4df-c55068c93457",
108+ "reason" => "Bonus for the week",
109+ "recipient" => "RCP_dfznnod8rwxlwgn"
107110 ]]
108111 ];
109112
0 commit comments