Create or update a product by external ID
curl --request PUT \
--url https://api.artu.ai/products/external/{externalId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Environment: <api-key>' \
--data '
{
"name": "<string>",
"scopes": [],
"description": "<string>",
"metadata": {},
"scopeData": {
"MX": {
"actividadVulnerable": {
"ARI": {
"operationType": "1501",
"property": {
"value": "<string>",
"calle": "<string>",
"colonia": "<string>",
"numeroExterior": "<string>",
"postalCode": "<string>",
"folioReal": "<string>"
}
},
"AVI": {
"operationType": "<unknown>",
"cryptoCurrency": "<string>"
},
"INM": {
"operationType": "501",
"inmuebles": [
{
"value": "<string>",
"calle": "<string>",
"colonia": "<string>",
"numeroExterior": "<string>",
"numeroInterior": "<string>",
"postalCode": "<string>",
"dimensionTerreno": "<string>",
"dimensionConstruido": "<string>",
"folioReal": "<string>"
}
],
"payments": [
{}
]
},
"JYS": {
"settlementType": "<unknown>",
"branchInformation": {
"type": "<unknown>",
"postalCode": "<string>"
}
},
"MJR": {
"operationPostalCode": "<string>",
"goods": [
{
"quantity": "<string>"
}
],
"paymentDefaults": [
{}
]
},
"MPC": {
"defaultCollateral": {
"postalCode": "<string>"
}
},
"TSC": {
"operationType": "211"
},
"VEH": {
"vehicles": [
{
"kind": "<unknown>",
"marcaFabricante": "<string>",
"modelo": "<string>",
"anio": "<string>",
"vin": "<string>",
"repuve": "<string>",
"placas": "<string>"
}
]
}
},
"cnbv": {
"TRANSMISOR": {
"sucursal": "<string>"
}
}
}
}
}
'{
"data": {
"name": "<string>",
"scopes": [],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"externalId": "<string>",
"metadata": {},
"scopeData": {
"MX": {
"actividadVulnerable": {
"ARI": {
"operationType": "1501",
"property": {
"value": "<string>",
"calle": "<string>",
"colonia": "<string>",
"numeroExterior": "<string>",
"postalCode": "<string>",
"folioReal": "<string>"
}
},
"AVI": {
"operationType": "<unknown>",
"cryptoCurrency": "<string>"
},
"INM": {
"operationType": "501",
"inmuebles": [
{
"value": "<string>",
"calle": "<string>",
"colonia": "<string>",
"numeroExterior": "<string>",
"numeroInterior": "<string>",
"postalCode": "<string>",
"dimensionTerreno": "<string>",
"dimensionConstruido": "<string>",
"folioReal": "<string>"
}
],
"payments": [
{}
]
},
"JYS": {
"settlementType": "<unknown>",
"branchInformation": {
"type": "<unknown>",
"postalCode": "<string>"
}
},
"MJR": {
"operationPostalCode": "<string>",
"goods": [
{
"quantity": "<string>"
}
],
"paymentDefaults": [
{}
]
},
"MPC": {
"defaultCollateral": {
"postalCode": "<string>"
}
},
"TSC": {
"operationType": "211"
},
"VEH": {
"vehicles": [
{
"kind": "<unknown>",
"marcaFabricante": "<string>",
"modelo": "<string>",
"anio": "<string>",
"vin": "<string>",
"repuve": "<string>",
"placas": "<string>"
}
]
}
},
"cnbv": {
"TRANSMISOR": {
"sucursal": "<string>"
}
}
}
},
"tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"color": "<string>"
}
]
}
}Products
Create or update a product by external ID
PUT
/
products
/
external
/
{externalId}
Create or update a product by external ID
curl --request PUT \
--url https://api.artu.ai/products/external/{externalId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Environment: <api-key>' \
--data '
{
"name": "<string>",
"scopes": [],
"description": "<string>",
"metadata": {},
"scopeData": {
"MX": {
"actividadVulnerable": {
"ARI": {
"operationType": "1501",
"property": {
"value": "<string>",
"calle": "<string>",
"colonia": "<string>",
"numeroExterior": "<string>",
"postalCode": "<string>",
"folioReal": "<string>"
}
},
"AVI": {
"operationType": "<unknown>",
"cryptoCurrency": "<string>"
},
"INM": {
"operationType": "501",
"inmuebles": [
{
"value": "<string>",
"calle": "<string>",
"colonia": "<string>",
"numeroExterior": "<string>",
"numeroInterior": "<string>",
"postalCode": "<string>",
"dimensionTerreno": "<string>",
"dimensionConstruido": "<string>",
"folioReal": "<string>"
}
],
"payments": [
{}
]
},
"JYS": {
"settlementType": "<unknown>",
"branchInformation": {
"type": "<unknown>",
"postalCode": "<string>"
}
},
"MJR": {
"operationPostalCode": "<string>",
"goods": [
{
"quantity": "<string>"
}
],
"paymentDefaults": [
{}
]
},
"MPC": {
"defaultCollateral": {
"postalCode": "<string>"
}
},
"TSC": {
"operationType": "211"
},
"VEH": {
"vehicles": [
{
"kind": "<unknown>",
"marcaFabricante": "<string>",
"modelo": "<string>",
"anio": "<string>",
"vin": "<string>",
"repuve": "<string>",
"placas": "<string>"
}
]
}
},
"cnbv": {
"TRANSMISOR": {
"sucursal": "<string>"
}
}
}
}
}
'{
"data": {
"name": "<string>",
"scopes": [],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"externalId": "<string>",
"metadata": {},
"scopeData": {
"MX": {
"actividadVulnerable": {
"ARI": {
"operationType": "1501",
"property": {
"value": "<string>",
"calle": "<string>",
"colonia": "<string>",
"numeroExterior": "<string>",
"postalCode": "<string>",
"folioReal": "<string>"
}
},
"AVI": {
"operationType": "<unknown>",
"cryptoCurrency": "<string>"
},
"INM": {
"operationType": "501",
"inmuebles": [
{
"value": "<string>",
"calle": "<string>",
"colonia": "<string>",
"numeroExterior": "<string>",
"numeroInterior": "<string>",
"postalCode": "<string>",
"dimensionTerreno": "<string>",
"dimensionConstruido": "<string>",
"folioReal": "<string>"
}
],
"payments": [
{}
]
},
"JYS": {
"settlementType": "<unknown>",
"branchInformation": {
"type": "<unknown>",
"postalCode": "<string>"
}
},
"MJR": {
"operationPostalCode": "<string>",
"goods": [
{
"quantity": "<string>"
}
],
"paymentDefaults": [
{}
]
},
"MPC": {
"defaultCollateral": {
"postalCode": "<string>"
}
},
"TSC": {
"operationType": "211"
},
"VEH": {
"vehicles": [
{
"kind": "<unknown>",
"marcaFabricante": "<string>",
"modelo": "<string>",
"anio": "<string>",
"vin": "<string>",
"repuve": "<string>",
"placas": "<string>"
}
]
}
},
"cnbv": {
"TRANSMISOR": {
"sucursal": "<string>"
}
}
}
},
"tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"color": "<string>"
}
]
}
}Authorizations
API key authentication. Obtain your API key from the dashboard.
Target environment for the request. Must be "test" or "live".
Path Parameters
External ID
Minimum string length:
1Body
application/json
Name
Required string length:
1 - 255Minimum array length:
1Available options:
base, MX:AV, MX:AV:ARI, MX:AV:AVI, MX:AV:INM, MX:AV:JYS, MX:AV:MJR, MX:AV:MPC, MX:AV:TSC, MX:AV:VEH, MX:CNBV, MX:CNBV:TRANSMISOR, MX Description
Maximum string length:
1000Metadata
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I
