Skip to content

Commit 420140f

Browse files
committed
update create vt code snippet
1 parent 6d2e0c9 commit 420140f

File tree

1 file changed

+6
-9
lines changed
  • src/doc/terminal/virtual-terminal/create-virtual-terminal

1 file changed

+6
-9
lines changed
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
#!/bin/sh
2-
3-
url="https://api.paystack.co/virtual_terminal"
4-
authorization="Authorization: Bearer YOUR_SECRET_KEY"
5-
content_type="Content-Type: application/json"
6-
data='{
1+
curl "https://api.paystack.co/virtual_terminal" \
2+
-H "Authorization: Bearer YOUR_SECRET_KEY" \
3+
-H "Content-Type: application/json" \
4+
-d '{
75
"name": "Sales Point #1",
86
"destinations": [
97
{"target": "+2347081234567"}
108
]
11-
}'
12-
13-
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST
9+
}' \
10+
-X POST

0 commit comments

Comments
 (0)