Getting started
Get going and start building your Piriod integration.
Get your API key
Get your Piriod Organization ID
Make an API request
import requests
PIRIOD_API_URL = 'https://api.piriod.com'
PIRIOD_API_KEY = '9bba430e7a8a64c2111bf29f497ec58b15906f47' # replace with your api id
PIRIOD_ORGANIZATION_ID = 'acc_8a64c2111bf29fc5' # replace with your organization id
headers = {
'Authorization': f'Token {PIRIOD_API_KEY}',
'x-simple-workspace': PIRIOD_ORGANIZATION_ID
}
payload = {
'name': 'Acme LLC',
'address': 'Main St 999',
'country': 'US',
'state': 'USAZ',
'email': '[email protected]',
'tax_id': '897-56-9831'
}
r = request.post(f'{PIRIOD_API_URL}/customers/', json=payload, headers=headers)Last updated
Was this helpful?
