Pluck a voucher from a batch
POST
/shops/{id}/vouchers/batches/{batch_id}/pluck-voucher
const url = 'https://example.com/shops/example/vouchers/batches/example/pluck-voucher';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"example","locale":"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/batches/example/pluck-voucher \ --header 'Content-Type: application/json' \ --data '{ "email": "example", "locale": "example" }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
batch_id
required
string