-
Notifications
You must be signed in to change notification settings - Fork 85
Providers
Emanuel Danci edited this page Dec 22, 2015
·
11 revisions
For resource definition check out Resources page.
- List all providers
- List a specific provider
- Create a new provider
- Update a provider
- Delete a provider
By default this will list all the providers.
GET /providers/
Filters can be used for better results. The available filters are company and email
GET /providers/?company=Presslabs
By default this will list a specific provider.
GET /providers/:id/
POST /providers
{
'name': 'Presslabs',
'company': 'Presslabs SRL',
'email': 'contact@presslabs.com',
'address_1': 'Str. Vasile Alecsandri nr. 3, Etaj 3, Ap. 12 Timișoara,',
'address_2': null,
'country': 'RO',
'city': 'Timisoara',
'state': 'Timis',
'zip_code': 300566,
'extra': 'This can be used as an additional field to include into billing documents',
'flow': 'proforma',
'invoice_series': 'IS1',
'invoice_starting_number': '1',
'proforma_series': 'PS1',
'proforma_starting_number': '1',
'default_document_state': 'draft',
'meta': ''
}
All the provider's fields are editable. Use PATCH for partial updates and PUT for full updates.
PATCH /providers/:id
PUT /providers/:id
Provider deletion is actually a soft delete.
DELETE /providers/:id