GET /scrub/api/v1/links
Headers
{"X-Api-Key": <invoice_key>}
Body (application/json)
Returns 200 OK (application/json)
[<pay_link_object>, ...]
Curl example
curl -X GET {{ request.base_url }}scrub/api/v1/links?all_wallets=true
-H "X-Api-Key: {{ user.wallets[0].inkey }}"
GET
/scrub/api/v1/links/<scrub_id>
Headers
{"X-Api-Key": <invoice_key>}
Body (application/json)
Returns 200 OK (application/json)
{"id": <string>, "wallet": <string>, "description":
<string>, "payoraddress": <string>}
Curl example
curl -X GET {{ request.base_url }}scrub/api/v1/links/<pay_id>
-H "X-Api-Key: {{ user.wallets[0].inkey }}"
POST /scrub/api/v1/links
Headers
{"X-Api-Key": <admin_key>}
Body (application/json)
{"wallet": <string>, "description": <string>,
"payoraddress": <string>}
Returns 201 CREATED (application/json)
{"id": <string>, "wallet": <string>, "description":
<string>, "payoraddress": <string>}
Curl example
curl -X POST {{ request.base_url }}scrub/api/v1/links -d '{"wallet":
<string>, "description": <string>, "payoraddress":
<string>}' -H "Content-type: application/json" -H "X-Api-Key: {{
user.wallets[0].adminkey }}"
PUT
/scrub/api/v1/links/<pay_id>
Headers
{"X-Api-Key": <admin_key>}
Body (application/json)
{"wallet": <string>, "description": <string>,
"payoraddress": <string>}
Returns 200 OK (application/json)
{"id": <string>, "wallet": <string>, "description":
<string>, "payoraddress": <string>}
Curl example
curl -X PUT {{ request.base_url }}scrub/api/v1/links/<pay_id>
-d '{"wallet": <string>, "description": <string>,
"payoraddress": <string>}' -H "Content-type: application/json"
-H "X-Api-Key: {{ user.wallets[0].adminkey }}"
DELETE
/scrub/api/v1/links/<pay_id>
Headers
{"X-Api-Key": <admin_key>}
Returns 204 NO CONTENT
Curl example
curl -X DELETE {{ request.base_url
}}scrub/api/v1/links/<pay_id> -H "X-Api-Key: {{
user.wallets[0].adminkey }}"