Contacts API
Imported API domain.
- Production server (public)
- Staging server (public)
- Develop server (private)
- Authentication
- Bearer · JWT
About this API
This API provides methods to manage dealer contacts information.
Resources 10
- dealer 26 endpoints
Contain all the operations related to dealers.
- GET Get dealer identifier
/dealers /id - GET Get information from received dealer and hierarchy up.
/dealers /{dealer_id} - PATCH Partial update from dealerId.
/dealers /{dealer_id} - DELETE Set a dealer as cancelled or inactive
/dealers /{dealer_id} - GET Get information from received dealers and hierarchy up.
/dealers
- GET Get dealer identifier
- fiscal data 5 endpoints
Contain all the operations related to fiscal data.
- GET Returns a list with the fiscall data in the system.
/fiscal-data - POST Create a new fiscal data
/fiscal-data - GET Retrieves the detail of a fiscal data.
/fiscal-data /{fiscal_data_id} - PATCH Updates the information of a fiscal data
/fiscal-data /{fiscal_data_id} - DELETE Deletes a fiscal data.
/fiscal-data /{fiscal_data_id}
- GET Returns a list with the fiscall data in the system.
- custom information 5 endpoints
Contain all the operations related to custom information.
- GET Get custom information.
/custom-information - POST Create a new custom information.
/custom-information - PATCH Update custom information from received customInfo.
/custom-information /{custom_info_id} - DELETE Delete custom information from received customInfo.
/custom-information /{custom_info_id} - GET Get dealers from customInfo.
/custom-information /{custom_info_id} /dealers
- GET Get custom information.
- campaign 7 endpoints
Contain all the operations related to campaigns.
- POST Create a new campaign
/campaigns - GET Gets the campaign with its details.
/campaigns /{campaign_id} - PUT Update a campaign.
/campaigns /{campaign_id} - POST Change campaign status
/campaigns /{campaign_id} /change-status - POST Returns the list of campaigns that match with the filter provided
/campaigns /search
- POST Create a new campaign
- subchannel 1 endpoint
Contain all the operations related to subchannel.
- store 1 endpoint
Contain all the operations related to stores.
- Other 7 endpoints
- GET Get contacts
/contacts - POST Create contact
/contacts - GET Get information from received contact.
/contacts /{contactId} - PATCH Partial update from contactId.
/contacts /{contactId} - DELETE Delete from contactId.
/contacts /{contactId}
- GET Get contacts
- iam 1 endpoint
- brand 2 endpoints
- Request 3 endpoints
Contacts API
Imported API domain.
- Production server (public)
- Staging server (public)
- Develop server (private)
- Authentication
- Bearer · JWT
About this API
This API provides methods to manage dealer contacts information.
Resources 10
- dealer 26 endpoints
Contain all the operations related to dealers.
- GET Get dealer identifier
/dealers /id - GET Get information from received dealer and hierarchy up.
/dealers /{dealer_id} - PATCH Partial update from dealerId.
/dealers /{dealer_id} - DELETE Set a dealer as cancelled or inactive
/dealers /{dealer_id} - GET Get information from received dealers and hierarchy up.
/dealers
- GET Get dealer identifier
- fiscal data 5 endpoints
Contain all the operations related to fiscal data.
- GET Returns a list with the fiscall data in the system.
/fiscal-data - POST Create a new fiscal data
/fiscal-data - GET Retrieves the detail of a fiscal data.
/fiscal-data /{fiscal_data_id} - PATCH Updates the information of a fiscal data
/fiscal-data /{fiscal_data_id} - DELETE Deletes a fiscal data.
/fiscal-data /{fiscal_data_id}
- GET Returns a list with the fiscall data in the system.
- custom information 5 endpoints
Contain all the operations related to custom information.
- GET Get custom information.
/custom-information - POST Create a new custom information.
/custom-information - PATCH Update custom information from received customInfo.
/custom-information /{custom_info_id} - DELETE Delete custom information from received customInfo.
/custom-information /{custom_info_id} - GET Get dealers from customInfo.
/custom-information /{custom_info_id} /dealers
- GET Get custom information.
- campaign 7 endpoints
Contain all the operations related to campaigns.
- POST Create a new campaign
/campaigns - GET Gets the campaign with its details.
/campaigns /{campaign_id} - PUT Update a campaign.
/campaigns /{campaign_id} - POST Change campaign status
/campaigns /{campaign_id} /change-status - POST Returns the list of campaigns that match with the filter provided
/campaigns /search
- POST Create a new campaign
- subchannel 1 endpoint
Contain all the operations related to subchannel.
- store 1 endpoint
Contain all the operations related to stores.
- Other 7 endpoints
- GET Get contacts
/contacts - POST Create contact
/contacts - GET Get information from received contact.
/contacts /{contactId} - PATCH Partial update from contactId.
/contacts /{contactId} - DELETE Delete from contactId.
/contacts /{contactId}
- GET Get contacts
- iam 1 endpoint
- brand 2 endpoints
- Request 3 endpoints
dealer
Get dealer identifier
/dealers /id This service receives external system code and dealer code in that system and returns dealerId asociated to mas-dealers.
Query parameters
systemstringRequiredcodestringRequired
Responses
Successful response. Dealer has been found.
-
dealerIdinteger -
startDatestring -
endDatestring
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Get information from received dealer and hierarchy up.
/dealers /{dealer_id} This service receives dealerId and returns dealer detail and the hierarchy up.
Path parameters
dealer_idintegerRequired
Responses
Successful response. Dealer has been found and the hierarchy up is returned.
-
dealerCodestring -
dealerIdinteger -
commercialNamestring -
mainChannelCodestring -
subchannelCodestring -
levelinteger -
parentCodestring -
internalManagerstring -
externalManagerstring -
storeTypestring -
commissioningSectionstring -
companyTypestring -
documentTypestring -
documentNumberstring -
companyNamestring -
statusstring -
addressstring -
citystring -
provincestring -
countrystring -
postalCodestring -
contactInformationobject[]-
contactNamestring -
contactEmailstring -
contactPhonestring -
contactPurposesstring[]
-
-
segmentstring -
inestring -
storeDeliveryboolean -
deviceReturnboolean
Unauthorized
dealer
Partial update from dealerId.
/dealers /{dealer_id} This service receives dealerId and body with fields to update.
Path parameters
dealer_idintegerRequired
Request body application/json
-
codestring -
commercialNamestring -
levelinteger -
statusstring -
parentCodestring -
subchannelstring -
commissioningSectionstring -
storeTypestring -
addressstring -
citystring -
provincestring -
postalCodestring -
countrystring -
startDatestring (date-time) -
endDatestring (date-time) -
internalManagerIdinteger -
externalManagerIdinteger -
fiscalDataIdinteger -
storeDeliveryboolean -
deviceReturnboolean
Responses
Successful response. Dealer has been updated.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Set a dealer as cancelled or inactive
/dealers /{dealer_id} This service receives the id of a dealer and a cancellation status (cancelled or inactive), and sets it as the dealer's status, setting as well the end date for itself and all his brands. This operation is also performed for all the hierarchy under the dealer.
Path parameters
dealer_idintegerRequired
Query parameters
cancellationStatusstringRequiredcancellationDatestring
Responses
Successful response. Everything has been removed.
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Get information from received dealers and hierarchy up.
/dealers This service receives multiple dealerId (ids) and returns dealer details and the hierarchy up.
Query parameters
idsstringRequired
Responses
Successful response.
-
idinteger -
hierarchyobject[]-
dealerCodestring -
dealerIdinteger -
commercialNamestring -
mainChannelCodestring -
subchannelCodestring -
levelinteger -
parentCodestring -
internalManagerstring -
externalManagerstring -
storeTypestring -
commissioningSectionstring -
companyTypestring -
documentTypestring -
documentNumberstring -
companyNamestring -
statusstring -
addressstring -
citystring -
provincestring -
countrystring -
postalCodestring -
contactInformationobject[]-
contactNamestring -
contactEmailstring -
contactPhonestring -
contactPurposesstring[]
-
-
segmentstring -
inestring -
storeDeliveryboolean -
deviceReturnboolean
-
Unauthorized
dealer
Create a new dealer and hierarchy up.
/dealers .
Request body application/json Required
-
addressstring -
citystring -
provincestring -
postalCodestring -
countrystring -
codestring Required -
commercialNamestring Required -
levelinteger Required -
statusCodestring Required -
parentCodestring -
subchannelstring Required -
internalManagerinteger -
externalManagerinteger -
commissioningSectionstring -
storeTypestring -
fiscalDataIdinteger -
startDatestring -
endDatestring -
segmentstring -
inestring -
storeDeliveryboolean -
deviceReturnboolean
Responses
Successful response.
-
addressstring -
citystring -
provincestring -
postalCodestring -
countrystring -
codestring -
commercialNamestring -
levelinteger -
statusCodestring -
parentCodestring -
subchannelstring -
internalManagerinteger -
externalManagerinteger -
commissioningSectionstring -
storeTypestring -
fiscalDataIdinteger -
startDatestring -
endDatestring -
segmentstring -
inestring -
storeDeliveryboolean -
deviceReturnboolean -
dealerIdinteger -
migratedFromDealerIdinteger -
migratedToDealerIdinteger
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
dealer
Create a new accounting-system information of a dealer
/dealers /accounting-system This operation creates a dealer's accounting-system with the information received.
Request body application/json Required
-
dealerIdinteger -
systemIdinteger -
dealerCodestring -
exampleany
Responses
Successful response.
No body.
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Delete accounting-system information of a dealer
/dealers /accounting-system /{dealer_accounting_system_id} This service receives a dealer accounting system id and deletes it.
Path parameters
dealerAccSysIdintegerRequired
Responses
Successful response.
No body.
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Get accounting system information from specified dealer
/dealers /{dealer_id} /accounting-system This service receive a dealer Id and returns the accounting system information
Path parameters
dealer_idintegerRequired
Responses
Successful response.
-
idinteger -
dealerIdinteger -
systemIdinteger -
systemCodestring -
systemDescriptionstring -
dealerCodestring
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Updates the accounting-system information of a dealer
/dealers /{dealer_id} /accounting-system This operation updates the dealer's accounting-system with the information received.
Path parameters
dealer_idintegerRequired
Request body application/json Required
-
systemIdinteger -
dealerCodestring
Responses
Successful response.
No body.
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Get full information from specified dealer.
/dealers /full-info /{dealer_id} This service receives a dealer Id and returns its generic info.
Path parameters
dealer_idintegerRequired
Responses
Successful response.
-
genericInfoobjectDealer generic info simplified object.
-
idinteger -
codestring -
commercialNamestring -
levelinteger -
levelDescriptionstring -
statusstring -
parentIdinteger -
parentCodestring -
subchannelCodestring -
internalManagerFullNamestring -
externalManagerFullNamestring -
internalManagerCodestring -
externalManagerCodestring -
commissioningSectionstring -
storeTypestring -
addressstring -
citystring -
provincestring -
countrystring -
postalCodestring -
startDatestring -
endDatestring -
userCreatedstring -
userUpdatedstring -
creationDatestring -
updateDatestring -
channelTypestring -
sellTypestring -
subchannelGroupstring -
segmentstring -
inestring -
migratedFromDealerIdinteger -
migratedToDealerIdinteger -
migratedFromDealerCodestring -
migratedToDealerCodestring -
storeDeliveryboolean -
deviceReturnboolean -
documentTypestring -
documentNumberstring
-
-
fiscalDataInfoobject-
companyTypestring -
companyNamestring -
documentTypestring -
documentNumberstring -
addressstring -
citystring -
provincestring -
postalCodestring -
countrystring -
idinteger
-
-
billingInfoobjectBilling info object.
-
dealerIdinteger -
codestring -
commercialNamestring -
documentTypestring -
documentNumberstring
-
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Retrieve the list of dealers by the filter indicated.
/dealers /simple-list This operation only returns the information necessary to identify each dealer in the list, to know who his parent is and to which sub-channel he belongs. This operation does not provide the detail of a dealer. A search filter can be defined in this operation. If the filter is not defined, it returns the last 100 updated or modified dealers sorted by date.
Query parameters
namestringFilters code, commercialName, dealerCode(dealerAccountingSystem), postalCode, province, documentNumber or companyName.
validAtstringFilters by valid at the specified date
Responses
Successful response.
-
idinteger -
codestring -
commercialNamestring -
levelinteger -
statusstring -
parentCodestring -
subchannelCodestring -
emailstring
Unauthorized
dealer
Get list of the contacts of dealer.
/dealers /{dealer_id} /contacts This service receives dealerId and returns a contact list of that dealer.
Path parameters
dealer_idintegerRequired
Responses
Successful response.
-
idinteger -
namestring -
emailstring -
phoneNumberstring -
purposesobject[]-
idinteger -
namestring
-
-
dealersobject[]-
idinteger -
codestring -
commercialNamestring -
levelinteger -
levelDescriptionstring -
statusstring -
parentIdinteger -
parentCodestring -
subchannelCodestring -
internalManagerFullNamestring -
externalManagerFullNamestring -
internalManagerCodestring -
externalManagerCodestring -
commissioningSectionstring -
storeTypestring -
addressstring -
citystring -
provincestring -
countrystring -
postalCodestring -
startDatestring -
endDatestring -
userCreatedstring -
userUpdatedstring -
creationDatestring -
updateDatestring -
channelTypestring -
sellTypestring -
subchannelGroupstring -
segmentstring -
inestring -
migratedFromDealerIdinteger -
migratedToDealerIdinteger -
migratedFromDealerCodestring -
migratedToDealerCodestring -
storeDeliveryboolean -
deviceReturnboolean -
documentTypestring -
documentNumberstring
-
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Delete a dealer's contact
/dealers /{dealer_id} /contacts /{contact_id} This service receives dealerId and contactId and delete this relationship.
Path parameters
dealer_idintegerRequiredcontact_idintegerRequired
Responses
Successful response.
No body.
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Create a dealer's contact
/dealers /contacts This service receives dealerId and contactId and create this relationship.
Request body application/json Required
-
contactIdinteger -
dealerIdinteger
Responses
Successful response.
No body.
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Check whether a dealer is migratable.
/dealers /{dealer_id} /migration Check whether a dealer is migratable
Path parameters
dealer_idintegerRequired
Responses
The dealer is valid for migration.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Migrate a dealer.
/dealers /{dealer_id} /migration Migrate a dealer
Path parameters
dealer_idintegerRequired
Request body application/json Required
-
codestring Required -
commercialNamestring -
levelinteger -
subchannelstring Required -
parentCodestring -
migrationDatestring -
copyGenericInfoboolean -
copyContactInfoboolean -
copyFiscalDataboolean -
copyAccountingSystemsboolean -
copyCustomInfoboolean -
migratedSalesBaseboolean
Responses
Successful migration.
-
addressstring -
citystring -
provincestring -
postalCodestring -
countrystring -
codestring -
commercialNamestring -
levelinteger -
statusCodestring -
parentCodestring -
subchannelstring -
internalManagerinteger -
externalManagerinteger -
commissioningSectionstring -
storeTypestring -
fiscalDataIdinteger -
startDatestring -
endDatestring -
segmentstring -
inestring -
storeDeliveryboolean -
deviceReturnboolean -
dealerIdinteger -
migratedFromDealerIdinteger -
migratedToDealerIdinteger
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Get custom information from received dealer.
/dealers /{dealer_id} /custom-information This service receives dealerId and returns dealer custom information.
Path parameters
dealer_idintegerRequired
Responses
Successful response. Dealer has been found and the hierarchy up is returned.
-
fieldIdinteger -
dealerIdinteger -
fieldValuestring -
idinteger -
fieldNamestring -
userCreatedstring -
userUpdatedstring -
creationDatestring -
updateDatestring
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Create a new custom information from received dealer.
/dealers /custom-information .
Request body application/json Required
-
fieldIdinteger -
dealerIdinteger -
fieldValuestring
Responses
Successful response.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
dealer
Update custom information from received dealer and customInfo.
/dealers /{dealer_id} /custom-information /{custom_info_id} This service receives dealerId and body with fields to update.
Path parameters
dealer_idintegerRequiredcustom_info_idintegerRequired
Request body application/json
-
fieldValuestring
Responses
Successful response. Dealer has been updated.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Delete custom information from received dealer.
/dealers /{dealer_id} /custom-information /{custom_info_id} .
Path parameters
dealer_idintegerRequiredcustom_info_idintegerRequired
Responses
Successful response. Everything has been removed.
No body.
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Children dealers.
/dealers /{dealer_id} /children Obtain all children of a dealer.
Path parameters
dealer_idintegerRequired
Responses
Successful response.
-
idstring -
codestring -
commercialNamestring -
levelinteger -
subChannelCodestring
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Block Dealer and offspring.
/dealers /{dealer_id} /block Block dealer and offspring
Path parameters
dealer_idintegerRequired
Responses
No content.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Change the status of a dealer
/dealers /{dealer_id} /change-status This endpoint currently only makes status changes to 'Active'. That is, it is used to activate or reactivate a dealer.
Path parameters
dealer_idintegerRequired
Request body application/json
-
statusstring
Responses
No content.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Get the brands of a dealer_id
/dealers /{dealer_id} /brands This service returns a list of all the brands of a dealer
Path parameters
dealer_idintegerRequired
Responses
Successful response.
-
idinteger -
dealerIdinteger -
brandIdinteger -
brandCodestring -
brandDescriptionstring
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
dealer
Update the brands
/dealers /{dealer_id} /brands This service update a list of brands of a dealer
Path parameters
dealer_idintegerRequired
Request body application/json
-
idinteger -
startDatestring (date-time) -
endDatestring (date-time)
Responses
Successful response. Brand has been updated.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
fiscal data
Returns a list with the fiscall data in the system.
/fiscal-data This operation returns a list with all the fiscall data in the system.
Responses
Successful response.
-
companyTypestring -
companyNamestring -
documentTypestring -
documentNumberstring -
addressstring -
citystring -
provincestring -
postalCodestring -
countrystring -
idinteger
No content.
No body.
Unauthorized
fiscal data
Create a new fiscal data
/fiscal-data This operation create a new fiscal data from the input data.
Request body application/json Required
-
companyTypestring Required -
companyNamestring Required -
documentTypestring Required -
documentNumberstring Required -
addressstring Required -
citystring Required -
provincestring Required -
postalCodestring Required -
countrystring Required -
idinteger
Responses
Successful creation.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
fiscal data
Retrieves the detail of a fiscal data.
/fiscal-data /{fiscal_data_id} Retrieves the detail of a fiscal data for a given id.
Path parameters
fiscal_data_idintegerRequired
Responses
Successful response.
-
dealersobject[]-
idstring -
codestring -
commercialNamestring -
levelinteger -
subChannelCodestring
-
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
fiscal data
Updates the information of a fiscal data
/fiscal-data /{fiscal_data_id} This operation updates the fiscal data with the information received.
Path parameters
fiscal_data_idintegerRequired
Request body application/json Required
-
addressstring -
citystring -
provincestring -
postalCodestring -
countrystring -
companyNamestring
Responses
Successful response.
No body.
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
fiscal data
Deletes a fiscal data.
/fiscal-data /{fiscal_data_id} This operation deletes a fiscal data for a given id and also delete the relationship with its associated dealers.
Path parameters
fiscal_data_idintegerRequired
Responses
Successful delete. Not content.
No body.
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
custom information
Get custom information.
/custom-information This service returns custom information.
Responses
Successful response. Custom information has been found.
-
fieldNamestring -
fieldDescriptionstring -
fieldTypestring -
idinteger -
valuesstring -
userCreatedstring -
userUpdatedstring -
creationDatestring -
updateDatestring
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
custom information
Create a new custom information.
/custom-information .
Request body application/json Required
-
fieldNamestring -
fieldDescriptionstring -
fieldTypestring
Responses
Successful response. Custom information has been created.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
custom information
Update custom information from received customInfo.
/custom-information /{custom_info_id} This service receives customInfoId and body with fields to update.
Path parameters
custom_info_idintegerRequired
Request body application/json
-
fieldNamestring -
fieldDescriptionstring -
fieldTypestring
Responses
Successful response. Custom information has been updated.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
custom information
Delete custom information from received customInfo.
/custom-information /{custom_info_id} .
Path parameters
custom_info_idintegerRequired
Responses
Successful response. Everything has been removed.
No body.
Unauthorized
Dealer not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
custom information
Get dealers from customInfo.
/custom-information /{custom_info_id} /dealers This service receives customInfoId and returns a list of dealers that use this custom information.
Path parameters
custom_info_idintegerRequired
Responses
Successful response.
-
dealerIdinteger -
dealerCodestring -
dealerCommercialNamestring -
fieldValuestring
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
campaign
Create a new campaign
/campaigns Create a new active campaign. Returns the created campaign. It can be associated with one or more subchannels, using the subchannel code.
Header parameters
x-retool-groupsstring
Request body application/json
-
namestring Required -
commercialProfilestring Required -
subchannelsstring[] Required -
conditionsobject[]-
idinteger -
conceptstring -
operatorstring -
valuesstring -
typestring
-
Responses
Created
-
idinteger -
namestring -
commercialProfilestring -
activeboolean -
subchannelsobject[]-
idinteger -
codestring -
namestring
-
-
conditionsobject[]-
idinteger -
conceptstring -
operatorstring -
valuesstring -
typestring
-
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
campaign
Gets the campaign with its details.
/campaigns /{campaign_id} Obtains the indicated campaign, the associated subchannels and the list of conditions that said campaign has.
Path parameters
campaign_idintegerRequired
Responses
OK
-
idinteger -
namestring -
commercialProfilestring -
activeboolean -
subchannelsobject[]-
idinteger -
codestring -
namestring
-
-
conditionsobject[]-
idinteger -
conceptstring -
operatorstring -
valuesstring -
typestring
-
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
campaign
Update a campaign.
/campaigns /{campaign_id} Update campaign. It can be associated with one or more subchannels, using the subchannel code.
Path parameters
campaign_idintegerRequired
Header parameters
x-retool-groupsstring
Request body application/json
-
namestring Required -
commercialProfilestring Required -
subchannelsstring[] Required -
conditionsobject[]-
idinteger -
conceptstring -
operatorstring -
valuesstring -
typestring
-
Responses
No Content
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Custom information not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
campaign
Change campaign status
/campaigns /{campaign_id} /change-status Change the status of a campaign. If the campaign goes from active to inactive: all dealers associated with the campaign (if any) will no longer be associated, that is, the dealers would not have any associated campaign. Additionally, the business profile in the IAM is deleted.
Path parameters
campaign_idintegerRequired
Header parameters
x-retool-groupsstring
Request body application/json
-
statusstring
Responses
No content.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
campaign
Returns the list of campaigns that match with the filter provided
/campaigns /search Returns the list of campaigns that match with the filter provided.
Header parameters
x-retool-groupsstring
Request body application/json
-
activeboolean -
subchannelsstring[] -
dealersinteger[]
Responses
Successful response.
-
idinteger -
namestring -
commercialProfilestring -
activeboolean -
subchannelsobject[]-
idinteger -
codestring -
namestring
-
-
conditionsobject[]-
idinteger -
conceptstring -
operatorstring -
valuesstring -
typestring
-
No content.
No body.
Unauthorized
campaign
Returns the list of users (dealers with Agents account) that match with the filter provided.
/campaigns /users Returns the list of users (dealers with Agents account) matching the specified filter. If the campaignManager role is specified in the 'x-retool-groups' header, the users assigned to the manager itself or one of its descendants in the hierarchy will be returned.
Query parameters
usersstringsubchannelstringcampaignstring
Header parameters
x-retool-groupsstring
Responses
Successful response.
-
idinteger Required -
codestring Required -
commercialNamestring -
subchannelstring -
systemAccountsobject[]-
idinteger -
accountstring -
accountingSystemobjectAn accounting system
-
idinteger -
codestring -
descriptionstring
-
-
-
campaignobjectA commercial campaign
-
idinteger -
namestring -
commercialProfilestring -
activeboolean -
subchannelsobject[]-
idinteger -
codestring -
namestring -
mainChannelobjectA subchannel
-
idinteger -
codestring -
namestring -
channelTypestring
-
-
sellTypestring -
subchannelGroupstring
-
-
conditionsany
-
No content.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
campaign
modifies a dealer's campaign
/users /change-campaign modifies a dealer's campaign
Request body application/json Required
-
campaignIdinteger -
requestIdinteger -
dealerIdinteger[]
Responses
No content.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
subchannel
Get list of subchannel
/subchannels Return the list of subchannel. If the 'x-retool-groups' header is received with the value campaignManager, the result is filtered. Only the subchannels of the dealers of said manager or his hierarchy are returned.
Header parameters
x-retool-groupsstring
Responses
List of subchannel
-
idinteger -
codestring -
namestring -
mainChannelobjectA subchannel
-
idinteger -
codestring -
namestring -
channelTypestring
-
-
sellTypestring -
subchannelGroupstring
No content.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
store
Get stores
/stores This service returns the N nearest stores to the postal code given as a parameter. The list can be filtered by the rest of the parameters.
Query parameters
limitstringMaximum number of stores to be returned.
postalCodestringRequiredPostal code to obtain the N nearest stores.
storeDeliverybooleanIndicates that the shop must have a store delivery service.
deviceReturnbooleanIndicates that the shop must have a device return service.
subchannelsstringList of subchannels to which the shops to be consulted should belong.
brandsstringList of brands sold by the shops to be returned.
Responses
Successful response. Stores has been found.
-
dealerCodestring -
commercialNamestring -
addressInfoobject-
addressstring -
citystring -
provincestring -
postalCodestring -
countrystring
-
-
phoneNumberstring -
emailstring -
locationobject-
latitudenumber (double) -
longitudenumber (double)
-
-
distancenumber (double) -
storeDeliveryboolean -
deviceReturnboolean -
brandsobject[]-
codestring -
descriptionstring
-
-
customInformationobject[]-
fieldIdinteger -
dealerIdinteger -
fieldValuestring
-
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Get contacts
/contacts This service returns all contacts. Always return empty dealers.
Responses
Successful response. Contacts have been found.
-
idinteger -
namestring -
emailstring -
phoneNumberstring -
purposesobject[]-
idinteger -
namestring
-
-
dealersobject[]-
idinteger -
codestring -
commercialNamestring -
levelinteger -
levelDescriptionstring -
statusstring -
parentIdinteger -
parentCodestring -
subchannelCodestring -
internalManagerFullNamestring -
externalManagerFullNamestring -
internalManagerCodestring -
externalManagerCodestring -
commissioningSectionstring -
storeTypestring -
addressstring -
citystring -
provincestring -
countrystring -
postalCodestring -
startDatestring -
endDatestring -
userCreatedstring -
userUpdatedstring -
creationDatestring -
updateDatestring -
channelTypestring -
channelCodestring -
channelNamestring -
sellTypestring -
subchannelGroupstring -
segmentstring -
inestring -
migratedFromDealerIdinteger -
migratedFromDealerCodestring -
migratedToDealerIdinteger -
migratedToDealerCodestring -
storeDeliveryboolean -
deviceReturnboolean
-
Unauthorized
Dealer not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Create contact
/contacts This service returns all contacts.
Request body application/json
-
namestring -
emailstring -
phoneNumberstring -
purposesobject[]-
idinteger
-
-
dealersobject[]-
idinteger
-
Responses
Successful response. Contact has been created.
-
idinteger -
namestring -
emailstring -
phoneNumberstring -
purposesobject[]-
idinteger -
namestring
-
-
dealersobject[]-
idinteger -
codestring -
commercialNamestring -
levelinteger -
levelDescriptionstring -
statusstring -
parentIdinteger -
parentCodestring -
subchannelCodestring -
internalManagerFullNamestring -
externalManagerFullNamestring -
internalManagerCodestring -
externalManagerCodestring -
commissioningSectionstring -
storeTypestring -
addressstring -
citystring -
provincestring -
countrystring -
postalCodestring -
startDatestring -
endDatestring -
userCreatedstring -
userUpdatedstring -
creationDatestring -
updateDatestring -
channelTypestring -
channelCodestring -
channelNamestring -
sellTypestring -
subchannelGroupstring -
segmentstring -
inestring -
migratedFromDealerIdinteger -
migratedFromDealerCodestring -
migratedToDealerIdinteger -
migratedToDealerCodestring -
storeDeliveryboolean -
deviceReturnboolean
-
Unauthorized
Dealer not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Get information from received contact.
/contacts /{contactId} This service receives contactId and returns contact detail.
Path parameters
contactIdintegerRequired
Responses
Successful response. Contact has been found.
-
idinteger -
namestring -
emailstring -
phoneNumberstring -
purposesobject[]-
idinteger -
namestring
-
-
dealersobject[]-
idinteger -
codestring -
commercialNamestring -
levelinteger -
levelDescriptionstring -
statusstring -
parentIdinteger -
parentCodestring -
subchannelCodestring -
internalManagerFullNamestring -
externalManagerFullNamestring -
internalManagerCodestring -
externalManagerCodestring -
commissioningSectionstring -
storeTypestring -
addressstring -
citystring -
provincestring -
countrystring -
postalCodestring -
startDatestring -
endDatestring -
userCreatedstring -
userUpdatedstring -
creationDatestring -
updateDatestring -
channelTypestring -
channelCodestring -
channelNamestring -
sellTypestring -
subchannelGroupstring -
segmentstring -
inestring -
migratedFromDealerIdinteger -
migratedFromDealerCodestring -
migratedToDealerIdinteger -
migratedToDealerCodestring -
storeDeliveryboolean -
deviceReturnboolean
-
Unauthorized
Partial update from contactId.
/contacts /{contactId} This service receives contactId and body with fields to update. The fields that are specified will be overwritten. In the case of the fields of purposes and distributors, they require a list of IDs. If they are empty, they will overwrite the previous empty.
Path parameters
contactIdintegerRequired
Request body application/json
-
namestring -
emailstring -
phoneNumberstring -
purposesobject[]-
idinteger
-
-
dealersobject[]-
idinteger
-
Responses
Successful response. Contact has been updated.
-
idinteger -
namestring -
emailstring -
phoneNumberstring -
purposesobject[]-
idinteger -
namestring
-
-
dealersobject[]-
idinteger -
codestring -
commercialNamestring -
levelinteger -
levelDescriptionstring -
statusstring -
parentIdinteger -
parentCodestring -
subchannelCodestring -
internalManagerFullNamestring -
externalManagerFullNamestring -
internalManagerCodestring -
externalManagerCodestring -
commissioningSectionstring -
storeTypestring -
addressstring -
citystring -
provincestring -
countrystring -
postalCodestring -
startDatestring -
endDatestring -
userCreatedstring -
userUpdatedstring -
creationDatestring -
updateDatestring -
channelTypestring -
channelCodestring -
channelNamestring -
sellTypestring -
subchannelGroupstring -
segmentstring -
inestring -
migratedFromDealerIdinteger -
migratedFromDealerCodestring -
migratedToDealerIdinteger -
migratedToDealerCodestring -
storeDeliveryboolean -
deviceReturnboolean
-
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Dealer not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Delete from contactId.
/contacts /{contactId} This service receives contactId to delete.
Path parameters
contactIdintegerRequired
Responses
Successful response. Contact has been deleted.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Dealer not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Delete a dealer's contact
/contacts /{contactId} /dealers /{dealerId} This service receives dealerId and contactId and delete this relationship.
Path parameters
contactIdintegerRequireddealerIdintegerRequired
Responses
Successful response.
No body.
Unauthorized
Dealer not found
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Get managers
/managers This service returns all managers, regardless if it receives the filter by manager type.
Query parameters
typestringfilter by manager type
Responses
Successful response. Managers has been found.
-
idinteger -
codestring -
namestring -
surnamestring -
typestringINT -> Interno EXT -> Externo
-
parentobjectContact generic info simplified object.
-
idinteger -
codestring
-
Unauthorized
iam
Get list of commercial profiles for IAM.
/commercial-profiles This service returns a list of commercial profiles.
Responses
Successful response.
Unauthorized
Commercial profiles not found into config.yaml
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
brand
Get all the brands
/brands This service returns a list of all the brands
Responses
Successful response.
-
codestring -
descriptionstring
Unauthorized
brand
Get all the accounting systems
/accounting-system This service returns a list of all the accounting systems
Responses
Successful response.
-
idinteger -
codestring -
descriptionstring
Unauthorized
Request
Create request
/requests Create a record of the requested request
Request body application/json Required
-
dealerIdinteger Required -
platformstring Required -
issuestring -
requestTypestring Required -
statusstring Required -
requestDetailobject | object
Responses
Created.
-
idinteger -
dealerIdinteger -
platformstring -
issuestring -
requestTypestring -
commentstring -
statusstring
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Request
Approves and processes requests.
/requests /approve Approves the given requests and includes the users in the groups indicated in the detail of each request. If the users do not exist, they will be created and if there is any incompatibility with the groups, the existing incompatible groups will be deleted and the user will be included in those indicated in the request.
Request body application/json Required
Responses
No content.
No body.
Some request couldn't be processed.
-
idinteger -
dealerIdinteger Required -
dealerCodestring -
platformstring Required -
statusstring Required -
userCreatedstring -
creationDatestring -
requestDetailsobject-
emailstring -
orgUnitstring -
salesRolestring -
commercialProfilestring[] -
simReplacementboolean -
eSIMReplacementboolean
-
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Request
Update status request or comment request
/requests /{requestId} The only data that will be modified from the request entity will be status and comment, the other data if sent will be ignored.
Path parameters
requestIdintegerRequired
Request body application/json
-
statusstring -
commentstring
Responses
Successful response.
No body.
Bad request
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-
Unauthorized
Internal Server Error
-
restErrorsobject[]-
codestring Requiredcode of the error
-
titlestring Requiredtitle of the error
-
refstring Requiredref of the error
-
detailsstring Requireddetails of the error
-