Select
Dealer
Contain all the operations related to dealers.
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
system | query | string | true | ‘none’ |
code | query | string | true | ‘none’ |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response. Dealer has been found. | [DealerAccessResponse] |
401 | Unauthorized | Unauthorized | string |
404 | Not Found | Custom information not found | ApiErrorResponse |
200 - instance of DealerAccessResponse
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
dealerId | integer | false | none |
startDate | string | false | none |
endDate | string | false | none |
401 - JsonObject
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
dealerId | integer | false | none |
startDate | string | false | none |
endDate | string | false | none |
404 - instance of ApiErrorResponse
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
restErrors | [ApiError] | false | none |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response. Dealer has been found and the hierarchy up is returned. | [DealerInHierarchyResponse] |
401 | Unauthorized | Unauthorized | string |
200 - instance of DealerInHierarchyResponse
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
dealerCode | string | false | none |
dealerId | integer | false | none |
commercialName | string | false | none |
mainChannelCode | string | false | none |
subchannelCode | string | false | none |
level | integer | false | none |
parentCode | string | false | none |
internalManager | string | false | none |
externalManager | string | false | none |
storeType | string | false | none |
commissioningSection | string | false | none |
companyType | string | false | none |
documentType | string | false | none |
documentNumber | string | false | none |
companyName | string | false | none |
status | string | false | none |
address | string | false | none |
city | string | false | none |
province | string | false | none |
country | string | false | none |
postalCode | string | false | none |
contactInformation | [ContactInformation] | false | none |
segment | string | false | none |
ine | string | false | none |
storeDelivery | boolean | false | none |
deviceReturn | boolean | false | none |
401 - JsonObject
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
dealerCode | string | false | none |
dealerId | integer | false | none |
commercialName | string | false | none |
mainChannelCode | string | false | none |
subchannelCode | string | false | none |
level | integer | false | none |
parentCode | string | false | none |
internalManager | string | false | none |
externalManager | string | false | none |
storeType | string | false | none |
commissioningSection | string | false | none |
companyType | string | false | none |
documentType | string | false | none |
documentNumber | string | false | none |
companyName | string | false | none |
status | string | false | none |
address | string | false | none |
city | string | false | none |
province | string | false | none |
country | string | false | none |
postalCode | string | false | none |
contactInformation | [ContactInformation] | false | none |
segment | string | false | none |
ine | string | false | none |
storeDelivery | boolean | false | none |
deviceReturn | boolean | false | none |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
body | body | object | false | ‘none’ |
Request body - JsonObject
|
|
None
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response. Dealer has been updated. | None |
400 | Bad Request | Bad request | ApiErrorResponse |
401 | Unauthorized | Unauthorized | string |
404 | Not Found | Custom information not found | ApiErrorResponse |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
cancellationStatus | query | string | true | ‘none’ |
cancellationDate | query | string | false | ‘none’ |
Enumerated Values
Property | Values |
---|---|
cancellationStatus | one of [CANC, INAC] |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
201 | Created | Successful response. Everything has been removed. | string |
401 | Unauthorized | Unauthorized | string |
404 | Not Found | Custom information not found | ApiErrorResponse |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
ids | query | string | true | ‘none’ |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response. | [DealerHierarchyResponse] |
401 | Unauthorized | Unauthorized | string |
200 - instance of DealerHierarchyResponse
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
id | integer | false | none |
hierarchy | [DealerInHierarchyResponse] | false | [Dealer hierarchy response ok] |
401 - JsonObject
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
id | integer | false | none |
hierarchy | [DealerInHierarchyResponse] | false | [Dealer hierarchy response ok] |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | DealerRequest | true | ‘none’ |
Request body - instance of DealerRequest
|
|
None
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
201 | Created | Successful response. | DealerResponse |
400 | Bad Request | Bad request | ApiErrorResponse |
401 | Unauthorized | Unauthorized | string |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response. | [DealerAccountingSystemResponse] |
401 | Unauthorized | Unauthorized | string |
404 | Not Found | Custom information not found | ApiErrorResponse |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response. | DealerFullInfoResponse |
401 | Unauthorized | Unauthorized | string |
404 | Not Found | Custom information not found | ApiErrorResponse |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
name | query | string | false | Filters code, commercialName, dealerCode(dealerAccountingSystem), postalCode, province, documentNumber or companyName. |
validAt | query | string | false | Filters by valid at the specified date |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response. | [SummarizedDealerInfo] |
401 | Unauthorized | Unauthorized | string |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response. | [ContactResponse1] |
401 | Unauthorized | Unauthorized | string |
404 | Not Found | Custom information not found | ApiErrorResponse |
200 - instance of ContactResponse1
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
id | integer | false | none |
name | string | false | none |
string | false | none | |
phoneNumber | string | false | none |
purposes | [PurposeResponse] | false | none |
dealers | [SimpleDealerResponse1] | false | [Dealer generic info simplified object.] |
401 - JsonObject
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
id | integer | false | none |
name | string | false | none |
string | false | none | |
phoneNumber | string | false | none |
purposes | [PurposeResponse] | false | none |
dealers | [SimpleDealerResponse1] | false | [Dealer generic info simplified object.] |
404 - instance of ApiErrorResponse
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
restErrors | [ApiError] | false | none |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
contact_id | path | integer | true | ‘none’ |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Successful response. | None |
401 | Unauthorized | Unauthorized | string |
404 | Not Found | Custom information not found | ApiErrorResponse |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | DealerContact | true | ‘none’ |
Request body - instance of DealerContact
|
|
Name | Type | Required | Description |
---|---|---|---|
contactId | integer | false | none |
dealerId | integer | false | none |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
201 | Created | Successful response. | None |
401 | Unauthorized | Unauthorized | string |
404 | Not Found | Custom information not found | ApiErrorResponse |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
body | body | DealerMigrationRequest | true | ‘none’ |
Request body - instance of DealerMigrationRequest
|
|
Name | Type | Required | Description |
---|---|---|---|
migrationDate | string | false | none |
copyGenericInfo | boolean | false | none |
copyContactInfo | boolean | false | none |
copyFiscalData | boolean | false | none |
copyAccountingSystems | boolean | false | none |
copyCustomInfo | boolean | false | none |
migratedSalesBase | boolean | false | none |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
201 | Created | Successful migration. | DealerMigrationResponse |
400 | Bad Request | Bad request | ApiErrorResponse |
401 | Unauthorized | Unauthorized | string |
500 | Internal Server Error | Internal Server Error | ApiErrorResponse |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | The dealer is valid for migration. | None |
400 | Bad Request | Bad request | ApiErrorResponse |
401 | Unauthorized | Unauthorized | string |
500 | Internal Server Error | Internal Server Error | ApiErrorResponse |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response. Dealer has been found and the hierarchy up is returned. | [DealerCustomInfoResponse] |
401 | Unauthorized | Unauthorized | string |
404 | Not Found | Custom information not found | ApiErrorResponse |
200 - instance of DealerCustomInfoResponse
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
id | integer | false | none |
fieldName | string | false | none |
userCreated | string | false | none |
userUpdated | string | false | none |
creationDate | string | false | none |
updateDate | string | false | none |
401 - JsonObject
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
id | integer | false | none |
fieldName | string | false | none |
userCreated | string | false | none |
userUpdated | string | false | none |
creationDate | string | false | none |
updateDate | string | false | none |
404 - instance of ApiErrorResponse
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
restErrors | [ApiError] | false | none |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | DealerCustomInfoRequest | true | ‘none’ |
Request body - instance of DealerCustomInfoRequest
|
|
Name | Type | Required | Description |
---|---|---|---|
fieldId | integer | false | none |
dealerId | integer | false | none |
fieldValue | string | false | none |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
201 | Created | Successful response. | None |
400 | Bad Request | Bad request | ApiErrorResponse |
401 | Unauthorized | Unauthorized | string |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
custom_info_id | path | integer | true | ‘none’ |
body | body | object | false | ‘none’ |
Request body - JsonObject
|
|
None
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response. Dealer has been updated. | None |
400 | Bad Request | Bad request | ApiErrorResponse |
401 | Unauthorized | Unauthorized | string |
404 | Not Found | Custom information not found | ApiErrorResponse |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
custom_info_id | path | integer | true | ‘none’ |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Successful response. Everything has been removed. | None |
401 | Unauthorized | Unauthorized | string |
404 | Not Found | Custom information not found | ApiErrorResponse |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response. | [FiscalDataAssociatedDealer] |
400 | Bad Request | Bad request | ApiErrorResponse |
401 | Unauthorized | Unauthorized | string |
500 | Internal Server Error | Internal Server Error | ApiErrorResponse |
200 - instance of FiscalDataAssociatedDealer
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
id | string | false | none |
code | string | false | none |
commercialName | string | false | none |
level | integer | false | none |
subChannelCode | string | false | none |
400 - instance of ApiErrorResponse
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
restErrors | [ApiError] | false | none |
401 - JsonObject
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
restErrors | [ApiError] | false | none |
500 - instance of ApiErrorResponse
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
restErrors | [ApiError] | false | none |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | No content. | None |
400 | Bad Request | Bad request | ApiErrorResponse |
401 | Unauthorized | Unauthorized | string |
500 | Internal Server Error | Internal Server Error | ApiErrorResponse |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
dealer_id | path | integer | true | ‘none’ |
body | body | DealerChangeStatusRequest | false | ‘none’ |
Request body - instance of DealerChangeStatusRequest
|
|
Name | Type | Required | Description |
---|---|---|---|
status | string | false | none |
Property | Values |
---|---|
status | one of [Activo, Bloqueado, Baja, Inactivo, Pendiente] |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | No content. | None |
400 | Bad Request | Bad request | ApiErrorResponse |
401 | Unauthorized | Unauthorized | string |
500 | Internal Server Error | Internal Server Error | ApiErrorResponse |
Endpoints
Default
Dealer
Fiscal data
Custom information
Campaign
Subchannel
Store
Iam
Request