POST /discount-codes/batch

Authentication

Bearer Token API Key (header: X-API-Key)

Responses

201 Codes created

No response body

curl -X POST 'https://platform-api.anyspend.com/api/v1/discount-codes/batch' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://platform-api.anyspend.com/api/v1/discount-codes/batch', {
  method: 'POST',
  headers: {
      "Authorization": "Bearer YOUR_API_TOKEN"
  }
});

const data = await response.json();
console.log(data);
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN'
}

response = requests.post('https://platform-api.anyspend.com/api/v1/discount-codes/batch', headers=headers)
print(response.json())
POST /discount-codes/batch
Ask a question... ⌘I