Skip to content

Instantly share code, notes, and snippets.

Created July 2, 2020 16:14
What would you like to do?
Place an order for a printful item
const Axios = require('axios')
method: 'POST',
headers: {
Authorization: 'Basic thisisyourbase64authtoken',
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
data: JSON.stringify({
recipient: {
name: 'Jill Smith',
address1: '123 Main Street',
city: 'Happyton',
state_code: 'FL',
country_code: 'US',
zip: '12345',
items: [{ variant_id: 6882, quantity: 1, files: [{ url: '' }] }],
url: '',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment