Create voucher pool
POST
/shops/{id}/vouchers/pools
const url = 'https://example.com/shops/example/vouchers/pools';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","countries":["example"],"visibility":"private","pool_type":"static","webhook_url":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/shops/example/vouchers/pools \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "countries": [ "example" ], "visibility": "private", "pool_type": "static", "webhook_url": "example" }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
Responses
Section titled “ Responses ” Media type application/json
object
Example generated
{ "id": "example", "name": "example", "countries": [ "example" ], "visibility": "example", "pool_type": "example", "webhook_url": "example", "created_at": "example", "updated_at": "example"}