Only submerchants that pass the validations will proceed to the actual onboarding process. Those that fail must be corrected and resubmitted.
status field, which can have one of the following values:INITIALIZED – The request has been received and is being processed.VALIDATION_FAILED – At least one submerchant in the request contains errors, preventing successful processing.requestId, which can be used to track the status of the creation process.submerchantId – A unique identifier assigned to the submerchant.submerchantName – The name of the submerchant.status – Indicates if the submerchant passed validation:VALID – The submerchant was successfully validated.INVALID – The submerchant contains errors and requires correction.Make sure to check the webhook notification. This will confirm whether the validation process was successful or rejected.
curl --location --request POST '/onboarding/v1/submerchants/batch' \
--header 'X-Api-Key;' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"pspCustomerId": "string",
"operationType": "CP",
"operationCountry": "CHL",
"submerchantCountryTaxResidency": "string",
"submerchantTaxId": "string",
"submerchantLegalName": "string",
"submerchantLegalEntityType": "Private",
"submerchantName": "string",
"submerchantAddress": "string",
"submerchantCity": "Lima",
"submerchantPostalCode": "strin",
"submerchantUrl": "string",
"submerchantMcc": "stri",
"legalRepresentativeName": "string",
"legalRepresentativeFirstLastName": "string",
"legalRepresentativeSecondLastName": "string",
"legalRepresentativeDateBirth": "12/07/1990",
"legalRepresentativeIdNumber": "string",
"legalRepresentativeSameAsUbo": true,
"uboName": "string",
"uboFirstLastName": "string",
"uboSecondLastName": "string",
"uboDateBirth": "string",
"ubo2Name": "string",
"ubo2FirstLastName": "string",
"ubo2SecondLastName": "string",
"ubo2DateBirth": "string",
"secondConcurrenceNeeded": true,
"pspNotificationEmail": "test@kushkipagos.com",
"openField": "string"
}
]'{
"status": "INITIALIZED",
"requestId": "5c91b0ee-677f-448e-b2e8-eb13bf2efcab",
"message": "The submerchants are ready to be processed. We will notify you once all have been processed",
"results": [
{
"submerchantId": "5e9a859c-2112-4e8e-b819-2d18bc0f4d29",
"submerchantName": "Kushki Perú",
"status": "VALID",
"message": "The format is valid",
"errors": []
},
{
"submerchantId": "c0d99b38-9590-49fc-b348-899affe20726",
"submerchantName": "Kushki Colombia",
"status": "VALID",
"message": "The format is valid",
"errors": []
}
]
}